/* ============================================================
   HEDAYAT BRAND IDENTITY - Official Colors & Typography
   ============================================================ */

@font-face {
  font-family: 'OYMandisa';
  src: url('/fonts/OYMandisa.woff2') format('woff2'), url('/fonts/OYMandisa.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Year of Handicrafts';
  src: url('/fonts/TheYearofHandicrafts-Regular.woff2') format('woff2'), url('/fonts/TheYearofHandicrafts-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Year of Handicrafts';
  src: url('/fonts/TheYearofHandicrafts-Medium.woff2') format('woff2'), url('/fonts/TheYearofHandicrafts-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Year of Handicrafts';
  src: url('/fonts/TheYearofHandicrafts-SemiBold.woff2') format('woff2'), url('/fonts/TheYearofHandicrafts-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Year of Handicrafts';
  src: url('/fonts/TheYearofHandicrafts-Bold.woff2') format('woff2'), url('/fonts/TheYearofHandicrafts-Bold.otf') format('opentype');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Year of Handicrafts';
  src: url('/fonts/TheYearofHandicrafts-Black.woff2') format('woff2'), url('/fonts/TheYearofHandicrafts-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OYMandisa';
  src: url('/fonts/OYMandisa.woff2') format('woff2'), url('/fonts/OYMandisa.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OYMandisa';
  src: url('/fonts/OYMandisa.woff2') format('woff2'), url('/fonts/OYMandisa.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Primary Colors — matched exactly from الهوية البصرية (هوية_هدايات.pdf) */
  --brand-olive: #647550;
  --brand-gold: #BEAE59;
  --brand-peach: #E69D74;
  --brand-coral: #E06659;
  --brand-sage: #96BDBC;
  --brand-teal: #286583;

  /* Site Theme */
  --primary: #647550;
  --primary-soft: #75865f;
  --accent: #BEAE59;
  --accent-dark: #9C8E45;

  /* Light theme derived from the official palette */
  --deep-bg: #F7F4EE;
  --nav-beige: #F6F2EA;
  --bg-main: #F7F4EE;
  --bg-card: #FFFDFC;
  --bg-footer: #F1EEE7;

  --soft-olive: #EEF2E8;
  --soft-gold: #F7F2DD;
  --soft-peach: #FBE9DE;
  --soft-coral: #F9E3DF;
  --soft-sage: #E8F2F1;
  --soft-teal: #E7F0F4;

  --text-main: #3E4C42;
  --text-card-main: #3E4C42;
  --text-card-muted: #66736B;
  --text-muted: #6C7770;
  --border-soft: #E2E5DE;

  --shadow-soft: 0 10px 28px rgba(62, 76, 66, 0.08);
  --shadow-strong: 0 18px 42px rgba(62, 76, 66, 0.14);

  --radius-card: 14px;
  --nav-h: 66px;
  --font-family-arabic: 'The Year of Handicrafts', sans-serif;
  --font-family-title: 'OYMandisa', serif;
}

.brand-ribbon {
  width: 100%;
  height: 16px;
  margin-top: var(--nav-h);
  background-image: url("/brand-ribbon.svg");
  background-repeat: repeat-x;
  background-size: 80px 16px;
}

.site-footer { position: relative; overflow: hidden; }
.footer-watermark {
  position: absolute;
  inset-inline-end: -40px;
  bottom: -40px;
  width: 240px;
  height: 338px;
  object-fit: contain;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.footer-top, .footer-divider, .footer-bottom { position: relative; z-index: 1; }

/* عمودية: الزخرفة الجانبية داخل بعض الأقسام فقط */
.vertical-decor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 130px;
  background-image: url("/identity-corner.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
.vertical-decor--start { inset-inline-start: -10px; }
.vertical-decor--end { inset-inline-start: auto; inset-inline-end: -10px; transform: scaleX(-1); }

/* النقشة الكاملة: فاصل خفيف بين قسمين */
.pattern-divider {
  width: 100%;
  height: 130px;
  background-image: url("/identity-grid.png");
  background-repeat: repeat;
  background-size: 260px auto;
  opacity: 0.055;
}

@media (max-width: 1024px) {
  .vertical-decor { width: 90px; opacity: 0.7; }
  .footer-watermark { width: 170px; height: 240px; }
}

@media (max-width: 768px) {
  .vertical-decor { display: none; }
  .pattern-divider { height: 80px; background-size: 180px auto; }
}

@media (max-width: 480px) {
  .footer-watermark { width: 120px; height: 170px; opacity: 0.05; }
}

html, body { max-width: 100vw; overflow-x: hidden; }

* { box-sizing: border-box; }

html {
  font-family: var(--font-family-arabic);
  font-synthesis: none;
}

body {
  font-family: var(--font-family-arabic);
  font-feature-settings: "rlig" 1, "calt" 1;
  font-variant-ligatures: common-ligatures contextual;
  line-height: 1.8;
  direction: inherit;
  text-align: start;
  margin: 0;
  padding: 0;
  color: var(--text-main);
  background-color: var(--deep-bg);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  font-feature-settings: inherit;
}

a { text-decoration: none; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }


/* Official Hedayat logo image — keep the original transparent artwork visible. */
.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
}
.brand-logo-shell-nav {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brand-logo-nav {
  height: 48px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.20));
}
.brand-logo-shell-hero {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brand-logo-hero {
  width: min(78vw, 560px);
  height: auto;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,.22));
}
.brand-logo-shell-footer { background: transparent; }
.brand-logo-footer { width: min(72vw, 320px); height: auto; }

/* ============================================================
   NAVBAR
   ============================================================ */
.hdr.navbar {
  background: linear-gradient(to bottom, rgba(38,58,55,0.52), rgba(38,58,55,0.20), rgba(38,58,55,0.0));
  padding-block: 0.55rem;
  transition: background-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  box-shadow: none;
  min-height: 66px;
  z-index: 20;
}
.hdr.scrolled {
  background: rgba(246,242,234,0.96);
  box-shadow: 0 4px 22px rgba(62,76,66,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  color: currentColor;
  background: transparent;
  font-family: var(--font-family-title);
  font-feature-settings: "rlig" 1, "calt" 1, "ss01" 1, "ss02" 1;
  line-height: 1;
}
.brand-wordmark {
  display: block;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: normal;
}
.brand-tagline {
  display: block;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: normal;
}
.brand-lockup-nav { color: #111111; }
.brand-lockup-nav .brand-wordmark { font-size: 2.35rem; }
.brand-lockup-nav .brand-tagline { font-size: .42rem; margin-top: .12rem; }
.hdr:not(.scrolled) .brand-lockup-nav { color: #ffffff; }

.nav-rtl { display: flex; align-items: center; }
.nav-rtl .nav-link { font-weight: 700; position: relative; padding-inline: 0.48rem; font-size: 0.82rem; }
.hdr:not(.scrolled) .nav-link { color: #ffffff !important; }
.hdr.scrolled .nav-link { color: var(--text-card-main) !important; }

.nav-rtl .nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  inset-inline-end: 0;
  height: 2px;
  width: 0;
  background: var(--brand-olive);
  transition: width 0.25s;
}
.nav-rtl .nav-link:hover::after,
.nav-rtl .nav-link:focus::after { width: 100%; }

.navbar-toggler { border-color: rgba(255,255,255,0.6); }
.hdr.scrolled .navbar-toggler { border-color: rgba(0,0,0,0.2); }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(85,107,47,0.25); }

.navbar-toggler-icon {
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.hdr.scrolled .navbar-toggler-icon {
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(85,107,47,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.whatsapp-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: #25D366; color: #ffffff !important;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.whatsapp-btn:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37,211,102,0.45);
}

@media (max-width: 991.98px) {
  .hdr .navbar-collapse {
    background: rgba(255,253,250,0.97);
    border: 1px solid rgba(100,117,80,0.12);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(62,76,66,0.14);
    padding: 0.75rem;
    margin-top: 0.75rem;
  }
  .hdr.scrolled .navbar-collapse { background: rgba(255,253,250,0.98); }
  .hdr:not(.scrolled) .navbar-collapse .nav-link { color: var(--text-card-main) !important; }
  .nav-rtl .nav-link { padding: 0.5rem 0.75rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 84px;
  padding-bottom: 70px;
  color: #ffffff;
  background:
    linear-gradient(to bottom, rgba(18,43,53,.52) 0%, rgba(50,67,55,.46) 54%, rgba(247,244,238,.92) 100%),
    var(--hero-bg) center center / cover no-repeat;
}

@media (max-width: 768px) {
  .hero-section { background-attachment: scroll; min-height: 620px; padding-top: 82px; padding-bottom: 4.5rem; }
}

.hero-section .container { position: relative; z-index: 2; }

/* v7: improve official logo readability over the photograph without a white card. */
.official-logo-hero-wrap {
  position: relative;
  isolation: isolate;
}
.official-logo-hero-wrap::before {
  content: "";
  position: absolute;
  inset: -18% 8% -20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(19,42,50,.46) 0%, rgba(19,42,50,.22) 48%, rgba(19,42,50,0) 76%);
  pointer-events: none;
}
.official-logo-hero {
  filter: drop-shadow(0 3px 2px rgba(13,29,35,.36)) drop-shadow(0 12px 22px rgba(13,29,35,.22));
}

.hero-logo-img {
  width: fit-content;
  max-width: min(92vw, 620px);
  margin-bottom: 1.45rem !important;
  margin-inline: auto;
}
.brand-lockup-hero .brand-wordmark { font-size: clamp(5.3rem, 9vw, 8.2rem); }
.brand-lockup-hero .brand-tagline { font-size: clamp(.78rem, 1.5vw, 1.25rem); margin-top: .42rem; }
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-family-title);
  font-feature-settings: "rlig" 1, "calt" 1, "ss01" 1, "ss02" 1;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: normal;
  -webkit-text-stroke: 0.5px rgba(255,255,255,0.3);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-lead { color: #f9f7f1; max-width: 620px; margin-inline: auto; font-size: .95rem; line-height: 1.9; }

.hero-wave { position: absolute; bottom: -76px; left: 0; width: 100%; height: 150px; display: block; z-index: 1; pointer-events: none; }

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.btn-cta-primary, .btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta-primary {
  background: var(--brand-olive);
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 800;
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta-primary:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
  color: #ffffff;
}

.btn-cta-secondary {
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 700;
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: 0.86rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta-secondary:hover {
  background: #ffffff;
  color: var(--brand-olive);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 575.98px) {
  .btn-cta-primary, .btn-cta-secondary { width: 100%; margin-bottom: 0.5rem; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.ref-wrap { background: var(--bg-main); position: relative; z-index: 0; }
#about { background: #F7F4EE; }
#vision { background: var(--soft-olive); }
#goals { background: #FCF7F2; }
#values { background: var(--soft-sage); }
#board { background: var(--soft-gold); }
#reports { background: #F4F6EF; }
#contact { background: #FAF7F2; }
.ref-section { max-width: 1080px; margin: 0 auto; padding: 4.25rem 1.5rem; }

.ref-section-header { text-align: center; margin-bottom: 2.55rem; }
.ref-section-title {
  font-family: var(--font-family-title);
  font-feature-settings: "rlig" 1, "calt" 1, "ss01" 1, "ss02" 1;
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-main);
  position: relative;
  display: inline-block;
  line-height: 1.35;
  letter-spacing: normal;
  -webkit-text-stroke: 0.3px rgba(0,0,0,0.15);
}
.ref-section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(50%);
  width: 64px;
  height: 3px;
  background: var(--brand-olive);
  border-radius: 2px;
}
.ref-section-subtitle { color: var(--text-muted); font-size: 0.86rem; margin-top: 1rem; max-width: 560px; margin-inline: auto; }

/* ============================================================
   CARDS
   ============================================================ */
.ref-card {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid rgba(100,117,80,0.10);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  color: var(--text-card-main);
}
.ref-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); }

.ref-grid-2, .ref-grid-3, .ref-grid-4 { display: grid; gap: 1.45rem; }
.ref-grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ref-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ref-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ============================================================
   FEATURE ITEMS
   ============================================================ */
.ref-feature { padding: 1.5rem 1.35rem; min-height: 180px; }
.ref-feature .icon {
  width: 50px; height: 50px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--soft-peach), var(--soft-coral));
  color: #B9574D;
  border: 1px solid rgba(224,102,89,0.14);
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}
.ref-feature h3 {
  font-family: var(--font-family-arabic);
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text-card-main);
  margin: 0.25rem 0 0.45rem;
}
.ref-feature p { color: var(--text-card-muted); margin: 0; font-size: 0.80rem; line-height: 1.85; }

/* reveal */
html.js .reveal-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   LINK CARDS
   ============================================================ */
.ref-link-card {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-card-main);
  border: 1px solid rgba(100,117,80,0.12);
  background: var(--bg-card);
  border-radius: 12px;
}
.ref-link-card .left { display: flex; align-items: center; gap: 1rem; }
.ref-link-card .left .icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--soft-sage), var(--soft-teal));
  color: var(--brand-teal);
  border: 1px solid rgba(40,101,131,0.12);
  font-size: 1.15rem;
}
.ref-link-card .title { font-weight: 800; }
.ref-link-card small { color: var(--text-card-muted); }
.ref-link-card:hover { border-color: var(--brand-olive); }
#board .mx-auto, #reports .mx-auto { max-width: 520px !important; }

/* ============================================================
   ABOUT
   ============================================================ */
.report-about-card { max-width: 760px; margin-inline: auto; }
.report-about-card .rounded-3 { border-radius: 12px !important; background-color: var(--soft-sage) !important; border: 1px solid rgba(40,101,131,0.10); }


/* ============================================================
   CONTACT
   ============================================================ */
.report-contact {
  max-width: 760px;
  margin-inline: auto;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.contact-form {
  background: var(--bg-card);
  padding: 1.3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  color: var(--text-card-main);
}
.form-group { margin-bottom: 0.72rem; }
.form-label { display: block; margin-bottom: 0.2rem; font-weight: 700; color: var(--text-card-main); font-size: 0.78rem; }
.form-input, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border-soft);
  border-radius: 7px;
  font-size: 0.80rem;
  background: #ffffff;
  color: var(--text-card-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-olive);
  box-shadow: 0 0 0 3px rgba(100,117,80,0.12);
}
.form-textarea { min-height: 118px; resize: vertical; }
.btn-form-submit {
  background: var(--brand-olive);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.66rem 1rem;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  width: 100%;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
}
.btn-form-submit:hover { background: var(--primary-soft); transform: translateY(-1px); box-shadow: var(--shadow-strong); }

.contact-container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: flex-start; }
.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-item {
  background: var(--bg-card);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(100,117,80,0.09);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text-card-main);
}
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--soft-gold), var(--soft-peach));
  color: #8A7440;
  border: 1px solid rgba(190,174,89,0.18);
  font-size: 1rem;
}
.contact-details h3 { font-size: 0.82rem; margin: 0 0 0.15rem; color: var(--text-card-main); }
.contact-details p { color: var(--text-card-muted); margin: 0; font-size: 0.75rem; word-break: break-word; }

@media (max-width: 992px) {
  .report-contact { grid-template-columns: 1fr; max-width: 560px; }
}

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.social-icons-row { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-start; }
.social-icon-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--soft-sage);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--brand-teal);
  border: 1px solid rgba(40,101,131,0.14);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social-icon-circle:hover {
  transform: translateY(-2px);
  background-color: var(--brand-teal);
  color: #ffffff;
  border-color: var(--brand-teal);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--bg-footer);
  color: var(--text-card-main);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.footer-top { max-width: 900px; margin: 0 auto 1.5rem; display: flex; flex-direction: column; align-items: center; }
.footer-logos { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-bottom: 0.75rem; }
.footer-logo { height: 70px; width: auto; max-width: min(78vw, 300px); object-fit: contain; }
.footer-logos .footer-logo:first-child { height: auto; }
.brand-lockup-footer .brand-wordmark { font-size: 4.2rem; }
.brand-lockup-footer .brand-tagline { font-size: .72rem; margin-top: .25rem; }
.footer-license { margin: 0; font-size: 0.95rem; color: var(--text-card-muted); }
.footer-divider { border: 0; border-top: 1px solid rgba(0,0,0,0.08); margin: 1.5rem auto; max-width: 1100px; }
.footer-bottom { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; font-size: 0.85rem; text-align: center; }

@media (max-width: 575.98px) {
  :root { --nav-h: 60px; }
  .hdr.navbar { min-height: 60px; }
  .brand-lockup-nav .brand-wordmark { font-size: 1.95rem; }
  .brand-lockup-nav .brand-tagline { font-size: .35rem; }
  .hero-section { min-height: 590px; padding-top: 82px; }
  .hero-logo-img { width: fit-content; max-width: 92vw; }
  .brand-logo-nav { height: 41px; }
  .brand-logo-shell-nav { padding: 0; border-radius: 0; }
  .brand-logo-shell-hero { padding: 0; border-radius: 0; }
  .brand-logo-hero { width: min(82vw, 430px); }
  .brand-logo-footer { width: min(74vw, 280px); }
  .brand-lockup-hero .brand-wordmark { font-size: clamp(4.1rem, 24vw, 6.2rem); }
  .brand-lockup-hero .brand-tagline { font-size: clamp(.68rem, 3.2vw, .95rem); }
  .ref-section { padding: 3.4rem 1rem; }
  .ref-feature { min-height: auto; }
}


/* ============================================================
   v11 — MOBILE HEADER / HERO POLISH
   Keep the first mobile screen clean, compact and focused on the hero.
   ============================================================ */
@media (max-width: 767.98px) {
  :root { --nav-h: 68px; }

  /* A single compact header row instead of the tall floating composition. */
  .hdr.navbar,
  .hdr.navbar.scrolled {
    min-height: var(--nav-h);
    padding: 7px 12px;
    background: rgba(248, 246, 240, 0.92) !important;
    box-shadow: 0 3px 18px rgba(42, 58, 51, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .hdr.navbar > .container {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    grid-template-areas:
      "toggle brand whatsapp"
      "collapse collapse collapse";
    align-items: center;
    column-gap: 8px;
    width: 100%;
    max-width: none;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hdr .navbar-toggler {
    grid-area: toggle;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100,117,80,.28) !important;
    border-radius: 12px;
    background: rgba(255,255,255,.56);
  }
  .hdr .navbar-toggler-icon,
  .hdr:not(.scrolled) .navbar-toggler-icon,
  .hdr.scrolled .navbar-toggler-icon {
    width: 25px;
    height: 25px;
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(100,117,80,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e") !important;
  }

  .hdr .navbar-brand {
    grid-area: brand;
    justify-self: center;
    min-width: 0;
    width: 100%;
    justify-content: center;
    margin: 0 !important;
  }
  .hdr .official-logo-nav {
    height: 39px !important;
    width: auto !important;
    max-width: min(48vw, 190px) !important;
    filter: none !important;
  }

  .hdr > .container > .whatsapp-btn.d-lg-none {
    grid-area: whatsapp;
    justify-self: end;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    font-size: 1.08rem;
    box-shadow: 0 5px 14px rgba(37,211,102,.24);
  }

  .hdr .navbar-collapse {
    grid-area: collapse;
    width: 100%;
    margin-top: 8px;
  }

  /* The patterned strip looked like a second header on phones. */
  .brand-ribbon { display: none !important; }

  /* Start the hero immediately below the compact header and keep the content high. */
  .hero-section {
    min-height: max(690px, 100svh);
    align-items: flex-start;
    padding-top: calc(var(--nav-h) + 34px) !important;
    padding-bottom: 78px;
    background-position: center 42%;
  }
  .hero-section .container { width: 100%; }
  .official-logo-hero-wrap {
    margin-bottom: 22px !important;
  }

  /* v13: keep the hero logo exactly where it is, but give the copy breathing room below it. */
  .hero-copy {
    margin-top: 44px;
  }
  .official-logo-hero {
    width: min(84vw, 410px) !important;
    max-height: 190px;
    object-fit: contain;
  }
  .hero-title {
    margin-top: 0 !important;
    font-size: clamp(2.1rem, 10vw, 3rem) !important;
    line-height: 1.35;
  }
  .hero-lead {
    font-size: .98rem;
    line-height: 1.9;
    max-width: 92%;
  }
}

@media (max-width: 390px) {
  .hdr.navbar > .container {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    column-gap: 6px;
  }
  .hdr .navbar-toggler,
  .hdr > .container > .whatsapp-btn.d-lg-none {
    width: 40px;
    height: 40px;
  }
  .hdr .official-logo-nav {
    height: 36px !important;
    max-width: 50vw !important;
  }
  .hero-section { padding-top: calc(var(--nav-h) + 28px) !important; }
  .hero-copy { margin-top: 36px; }
}


/* ============================================================
   v14 — MOBILE FOOTER CLARITY
   Stack the two official marks on phones and give the legal copy room.
   ============================================================ */
@media (max-width: 767.98px) {
  .site-footer {
    padding: 3.2rem 1.25rem calc(2.4rem + env(safe-area-inset-bottom));
  }

  .footer-watermark {
    display: none !important;
  }

  .footer-top {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.6rem;
    gap: 0;
  }

  .footer-logos {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.65rem;
    margin: 0 0 1.65rem;
  }

  .official-logo-footer {
    width: min(58vw, 220px) !important;
    max-width: 220px !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .footer-logos .footer-logo {
    width: min(52vw, 190px) !important;
    max-width: 190px !important;
    height: auto !important;
    max-height: 92px;
    margin: 0 auto;
    object-fit: contain;
  }

  .footer-license {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    padding: 0 .35rem;
    font-size: .98rem;
    line-height: 1.9;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .footer-divider {
    width: min(82%, 310px);
    margin: 1.65rem auto 1.35rem;
  }

  .footer-bottom {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    padding: 0 .35rem;
    font-size: .92rem;
    line-height: 1.7;
  }
}

@media (max-width: 390px) {
  .site-footer {
    padding-inline: 1rem;
  }
  .official-logo-footer {
    width: min(62vw, 205px) !important;
  }
  .footer-logos .footer-logo {
    width: min(56vw, 178px) !important;
  }
  .footer-license {
    font-size: .93rem;
  }
}


/* ============================================================
   v15 — CONTACT, PRIVACY & MOBILE WHATSAPP POLISH
   ============================================================ */
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-privacy-note {
  margin: .8rem .2rem 0;
  color: var(--text-card-muted);
  font-size: .72rem;
  line-height: 1.8;
  text-align: center;
}
.form-privacy-note a,
.contact-link {
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.contact-link:hover,
.form-privacy-note a:hover { color: var(--brand-olive); }

.privacy-page {
  min-height: 100vh;
  background: var(--bg-main);
  padding: 4rem 1.25rem;
  color: var(--text-main);
}
.privacy-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(100,117,80,.10);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
.privacy-logo { display:block; width:min(250px, 70vw); height:auto; margin:0 auto 1.6rem; }
.privacy-page h1 { text-align:center; color:var(--brand-olive); margin:0 0 .75rem; font-size:clamp(1.8rem, 6vw, 2.5rem); }
.privacy-intro { text-align:center; color:var(--text-card-muted); margin:0 auto 2rem; max-width:620px; }
.privacy-page h2 { color:var(--text-card-main); font-size:1.15rem; margin:1.6rem 0 .45rem; }
.privacy-page p, .privacy-page li { color:var(--text-card-muted); line-height:1.95; }
.privacy-page ul { margin:.4rem 0 0; padding-inline-start:1.3rem; }
.privacy-back { display:flex; justify-content:center; margin-top:2rem; }
.privacy-back a { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:.65rem 1.25rem; border-radius:999px; background:var(--brand-olive); color:white; font-weight:700; }

@media (max-width: 767.98px) {
  .hdr.navbar > .container {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
  .hdr > .container > .whatsapp-btn.d-lg-none {
    width: 36px !important;
    height: 36px !important;
    font-size: .95rem !important;
    box-shadow: 0 4px 12px rgba(37,211,102,.20) !important;
  }
  .form-privacy-note { font-size: .70rem; padding-inline:.25rem; }
}

@media (max-width: 390px) {
  .hdr.navbar > .container {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }
  .hdr > .container > .whatsapp-btn.d-lg-none {
    width: 34px !important;
    height: 34px !important;
    font-size: .9rem !important;
  }
}


/* ============================================================
   v16 — SMART WHATSAPP, FOOTER LINKS, STABLE OFFICIAL LOGO & 404
   ============================================================ */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  margin-top: 1.15rem;
  font-size: .9rem;
}
.footer-links a {
  color: var(--brand-olive);
  text-decoration: none;
  font-weight: 700;
  padding: .22rem .12rem;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-links span { color: rgba(38, 50, 44, .34); }

.national-center-footer-logo {
  display: block;
  width: 190px;
  height: auto;
  aspect-ratio: 733 / 340;
  object-fit: contain;
  flex: 0 0 auto;
  margin-inline: auto;
}

.not-found-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(2rem, env(safe-area-inset-top)) 1.2rem max(2rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 15% 20%, rgba(220, 176, 114, .17), transparent 34%),
    radial-gradient(circle at 86% 80%, rgba(55, 120, 118, .13), transparent 32%),
    #F7F4EE;
}
.not-found-card {
  width: min(100%, 620px);
  text-align: center;
  padding: clamp(2rem, 7vw, 3.5rem) clamp(1.25rem, 6vw, 3rem);
  border: 1px solid rgba(95, 103, 76, .13);
  border-radius: 28px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 22px 70px rgba(43, 55, 48, .10);
}
.not-found-logo-link { display: inline-flex; justify-content: center; margin-bottom: 1.25rem; }
.not-found-logo { display: block; width: min(235px, 70vw); height: auto; }
.not-found-code {
  font-family: var(--font-family-arabic);
  color: var(--brand-gold, #B98A50);
  font-size: clamp(3.4rem, 16vw, 6rem);
  font-weight: 800;
  line-height: 1;
  opacity: .9;
}
.not-found-card h1 {
  margin: .7rem 0 .6rem;
  color: var(--brand-olive);
  font-size: clamp(1.7rem, 7vw, 2.5rem);
  font-weight: 800;
}
.not-found-card p {
  max-width: 470px;
  margin: 0 auto 1.6rem;
  color: var(--text-card-muted);
  line-height: 1.95;
}
.not-found-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  background: var(--brand-olive);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(74, 82, 60, .18);
}
.not-found-home-btn:hover,
.not-found-home-btn:focus-visible { color:#fff; transform: translateY(-1px); }

@media (max-width: 767.98px) {
  .footer-links {
    max-width: 320px;
    margin: 1.25rem auto 0;
    font-size: .88rem;
  }
  .footer-logos .national-center-footer-logo {
    display: block !important;
    width: 180px !important;
    max-width: calc(100vw - 72px) !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 733 / 340;
    object-fit: contain !important;
    flex: 0 0 auto !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 360px) {
  .footer-logos .national-center-footer-logo {
    width: 168px !important;
    max-width: calc(100vw - 64px) !important;
  }
  .footer-links { gap: .35rem .55rem; font-size: .84rem; }
}


/* ============================================================
   v17 — MOBILE CENTERING, MAP + LINKTREE CONTACT LINKS
   ============================================================ */
.hero-copy {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}
.hero-copy .hero-title,
.hero-copy .hero-lead {
  text-align: center !important;
  margin-inline: auto !important;
}
.hero-copy > .d-flex {
  width: 100%;
  justify-content: center !important;
}

.contact-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  margin-top: .45rem;
  color: var(--brand-teal);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.7;
}
.contact-action-link:hover,
.contact-action-link:focus-visible {
  color: var(--brand-olive);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 991.98px) {
  .hdr .navbar-collapse {
    text-align: center;
  }
  .hdr .navbar-collapse .nav-rtl {
    width: 100%;
    align-items: stretch;
    text-align: center;
  }
  .hdr .navbar-collapse .nav-link {
    width: 100%;
    text-align: center !important;
  }
}

@media (max-width: 767.98px) {
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: .65rem;
  }
  .hero-copy .hero-title {
    width: min(100%, 620px);
  }
  .hero-copy .hero-lead {
    width: min(100%, 560px);
    max-width: 560px !important;
  }
  .contact-details {
    min-width: 0;
  }
}


/* ============================================================
   v19 — EXACT REQUESTED HEADER STRUCTURE ONLY
   1 عن المؤسسة → 6 subitems
   2 البرامج
   3 الشركاء
   4 الحوكمة → 4 subitems
   5 المركز الإعلامي → 3 subitems
   6 تواصل معنا
   No page-content placeholders are added by this change.
   ============================================================ */
.nav-dropdown-toggle {
  background: transparent !important;
  border: 0 !important;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}
.nav-dropdown-toggle.dropdown-toggle::before { display: none !important; }
.nav-dropdown-toggle.dropdown-toggle::after {
  display: inline-block !important;
  width: .42em !important;
  height: .42em !important;
  margin-inline-start: .42rem !important;
  vertical-align: .16em !important;
  border: solid currentColor !important;
  border-width: 0 0 1.8px 1.8px !important;
  transform: rotate(-45deg) !important;
  content: "" !important;
}
.hedayat-dropdown {
  min-width: 250px;
  padding: .55rem;
  border: 1px solid rgba(100,117,80,.14);
  border-radius: 14px;
  background: rgba(255,253,250,.99);
  box-shadow: 0 16px 38px rgba(62,76,66,.14);
  text-align: start;
  direction: inherit;
}
.hedayat-dropdown .dropdown-item {
  color: var(--text-card-main);
  font-weight: 700;
  font-size: .86rem;
  padding: .64rem .82rem;
  border-radius: 9px;
  text-align: start;
  white-space: normal;
}
.hedayat-dropdown .dropdown-item:hover,
.hedayat-dropdown .dropdown-item:focus {
  color: var(--primary);
  background: var(--soft-olive);
}
#vision-item,
#mission-item {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
@media (min-width: 992px) {
  .hdr .hedayat-nav-group > .dropdown-menu {
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
  .hdr .hedayat-nav-group:hover > .dropdown-menu,
  .hdr .hedayat-nav-group:focus-within > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}
@media (max-width: 991.98px) {
  .nav-rtl { align-items: stretch !important; }
  .nav-rtl .nav-item { width: 100%; }
  .nav-rtl .nav-link,
  .nav-dropdown-toggle {
    width: 100%;
    text-align: center !important;
  }
  .hedayat-dropdown {
    position: static !important;
    transform: none !important;
    width: calc(100% - 1.2rem);
    min-width: 0;
    margin: .1rem auto .6rem !important;
    padding: .35rem;
    box-shadow: none;
    background: var(--soft-olive);
    border-color: rgba(100,117,80,.10);
  }
  .hedayat-dropdown .dropdown-item {
    text-align: center !important;
    padding-block: .72rem;
    font-size: .9rem;
  }
}

/* ============================================================
   v20 — PREMIUM INSTITUTIONAL / GOVERNMENT-INSPIRED NAVIGATION
   Visual-only refinement. Keeps the exact v19 information architecture.
   ============================================================ */

/* Calm official header: warm ivory, restrained shadow, identity rail. */
.hdr.navbar,
.hdr.navbar.scrolled,
.hdr.navbar:not(.scrolled) {
  background: rgba(250, 248, 243, .97) !important;
  box-shadow: 0 8px 28px rgba(49, 62, 54, .075) !important;
  border-bottom: 1px solid rgba(95, 111, 79, .13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-block: .52rem;
}
.hdr.navbar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg,
    #687A55 0 24%,
    #C6B45C 24% 42%,
    #E79B72 42% 61%,
    #E56356 61% 76%,
    #92B7B6 76% 89%,
    #2B6A84 89% 100%);
  opacity: .92;
  pointer-events: none;
}

/* Logo stays clean and prominent without looking oversized. */
.hdr .navbar-brand {
  position: relative;
  z-index: 2;
}
.hdr .official-logo-nav {
  filter: none !important;
}

/* Main navigation: dignified spacing and soft institutional hover state. */
.nav-rtl {
  gap: .16rem !important;
}
.nav-rtl .nav-item {
  display: flex;
  align-items: center;
}
.nav-rtl .nav-link,
.nav-dropdown-toggle {
  color: #34443D !important;
  font-size: .84rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.2;
  padding: .72rem .64rem !important;
  border-radius: 10px;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.hdr:not(.scrolled) .nav-link,
.hdr.scrolled .nav-link,
.hdr:not(.scrolled) .nav-dropdown-toggle,
.hdr.scrolled .nav-dropdown-toggle {
  color: #34443D !important;
}
.nav-rtl .nav-link:hover,
.nav-rtl .nav-link:focus-visible,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.hedayat-nav-group.show > .nav-dropdown-toggle {
  color: #526842 !important;
  background: rgba(104, 122, 85, .085) !important;
}
.nav-rtl .nav-link::after {
  display: none !important;
}

/* Chevron: small and quiet, like an official portal rather than a retail menu. */
.nav-dropdown-toggle.dropdown-toggle::after {
  width: .38em !important;
  height: .38em !important;
  margin-inline-start: .46rem !important;
  border-width: 0 0 1.6px 1.6px !important;
  opacity: .72;
  transition: transform .18s ease;
}
.hedayat-nav-group.show > .nav-dropdown-toggle.dropdown-toggle::after {
  transform: rotate(135deg) translate(-1px,-1px) !important;
}

/* Desktop dropdown: formal panel with a restrained identity accent. */
.hedayat-dropdown {
  min-width: 286px !important;
  padding: .52rem !important;
  margin-top: .62rem !important;
  border: 1px solid rgba(91, 107, 78, .16) !important;
  border-radius: 16px !important;
  background: rgba(255, 254, 251, .995) !important;
  box-shadow: 0 22px 54px rgba(44, 58, 49, .14) !important;
  overflow: hidden;
}
.hedayat-dropdown::before {
  content: "";
  display: block;
  height: 3px;
  margin: -.52rem -.52rem .46rem;
  background: linear-gradient(90deg, #687A55, #C6B45C, #E79B72);
}
.hedayat-dropdown li + li {
  border-top: 1px solid rgba(95, 111, 79, .08);
}
.hedayat-dropdown .dropdown-item {
  position: relative;
  color: #34443D !important;
  font-size: .88rem !important;
  font-weight: 750 !important;
  line-height: 1.55;
  padding: .72rem .88rem .72rem 1rem !important;
  border-radius: 9px !important;
  background: transparent !important;
  transition: background-color .18s ease, color .18s ease, padding-inline-start .18s ease;
}
.hedayat-dropdown .dropdown-item::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-end: .58rem;
  border-radius: 50%;
  background: #B6A756;
  vertical-align: .12em;
  opacity: .82;
}
.hedayat-dropdown .dropdown-item:hover,
.hedayat-dropdown .dropdown-item:focus-visible {
  color: #4D633F !important;
  background: #F4F1E8 !important;
  padding-inline-start: 1.02rem !important;
}

/* WhatsApp stays available, but no longer visually overpowers the institution. */
.hdr .whatsapp-btn {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(37, 211, 102, .26);
  background: #FFFFFF !important;
  color: #1FAE55 !important;
  box-shadow: 0 6px 18px rgba(40, 73, 52, .10) !important;
}
.hdr .whatsapp-btn:hover,
.hdr .whatsapp-btn:focus-visible {
  background: #F1FBF5 !important;
  color: #168C45 !important;
  transform: translateY(-1px);
}

/* Menu button matches the brand instead of generic Bootstrap chrome. */
.hdr .navbar-toggler,
.hdr.scrolled .navbar-toggler,
.hdr:not(.scrolled) .navbar-toggler {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(91, 107, 78, .22) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 5px 16px rgba(49, 62, 54, .06);
}
.hdr .navbar-toggler-icon,
.hdr.scrolled .navbar-toggler-icon,
.hdr:not(.scrolled) .navbar-toggler-icon {
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(82,104,66,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.9' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e") !important;
}

@media (min-width: 992px) {
  .hdr.navbar > .container {
    max-width: 1320px;
  }
  .hdr .hedayat-nav-group > .dropdown-menu {
    margin-top: .6rem !important;
  }
}

/* Mobile: institutional sheet with clear hierarchy, not a stack of floating buttons. */
@media (max-width: 991.98px) {
  .hdr.navbar,
  .hdr.navbar.scrolled,
  .hdr.navbar:not(.scrolled) {
    background: rgba(250,248,243,.985) !important;
  }
  .hdr .navbar-collapse {
    margin-top: .72rem !important;
    padding: .45rem .58rem .66rem !important;
    border: 1px solid rgba(91,107,78,.14) !important;
    border-radius: 16px !important;
    background: #FFFDF9 !important;
    box-shadow: 0 24px 58px rgba(44,58,49,.14) !important;
    max-height: calc(100vh - var(--nav-h) - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .hdr .navbar-collapse .nav-rtl {
    gap: 0 !important;
  }
  .hdr .navbar-collapse .nav-item {
    display: block;
    border-bottom: 1px solid rgba(91,107,78,.09);
  }
  .hdr .navbar-collapse .nav-item:last-child {
    border-bottom: 0;
  }
  .hdr .navbar-collapse .nav-link,
  .hdr .navbar-collapse .nav-dropdown-toggle {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px !important;
    font-size: .97rem !important;
    padding: .72rem .76rem !important;
  }
  .hedayat-dropdown {
    width: calc(100% - .5rem) !important;
    margin: .04rem auto .58rem !important;
    padding: .3rem .5rem .44rem !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #F4F1E8 !important;
    box-shadow: inset 0 0 0 1px rgba(91,107,78,.08) !important;
  }
  .hedayat-dropdown::before {
    height: 2px;
    margin: -.3rem -.5rem .25rem;
    opacity: .72;
  }
  .hedayat-dropdown li + li {
    border-top-color: rgba(91,107,78,.075);
  }
  .hedayat-dropdown .dropdown-item {
    text-align: center !important;
    font-size: .9rem !important;
    padding: .65rem .55rem !important;
  }
  .hedayat-dropdown .dropdown-item::before {
    width: 4px;
    height: 4px;
    margin-inline-end: .44rem;
  }
}

@media (max-width: 420px) {
  .hdr .official-logo-nav {
    height: 36px !important;
    max-width: min(44vw, 164px) !important;
  }
  .hdr .whatsapp-btn {
    width: 36px !important;
    height: 36px !important;
  }
  .hdr .navbar-toggler {
    width: 43px;
    height: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-rtl .nav-link,
  .nav-dropdown-toggle,
  .hedayat-dropdown .dropdown-item,
  .hdr .whatsapp-btn {
    transition: none !important;
  }
}


/* ============================================================
   V21 — DESKTOP NAV VISIBILITY / DROPDOWN POSITION FIX
   The previous Popper placement could lift dropdown panels over the
   navbar, hiding the parent item and adjacent navigation links.
   ============================================================ */
@media (min-width: 992px) {
  .hdr.navbar,
  .hdr.navbar.scrolled,
  .hdr.navbar:not(.scrolled) {
    overflow: visible !important;
  }

  .hdr.navbar > .container {
    max-width: 1460px !important;
    width: min(96%, 1460px) !important;
    gap: 1rem;
  }

  .hdr .navbar-collapse {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0;
    overflow: visible !important;
  }

  .hdr .nav-rtl {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .28rem !important;
    white-space: nowrap;
    min-width: 0;
  }

  .hdr .nav-rtl .nav-item,
  .hdr .hedayat-nav-group {
    position: relative !important;
    flex: 0 0 auto;
  }

  .hdr .nav-rtl .nav-link,
  .hdr .nav-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px;
    padding: .72rem .72rem !important;
    font-size: .96rem !important;
    font-weight: 800 !important;
    color: #2F4039 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Keep Bootstrap/Popper from lifting the menu over the header. */
  .hdr .hedayat-nav-group > .dropdown-menu,
  .hdr .hedayat-nav-group > .dropdown-menu[data-bs-popper] {
    position: absolute !important;
    top: calc(100% + .58rem) !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    inset: auto auto auto 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 2100 !important;
  }

  .hdr .hedayat-dropdown {
    min-width: 300px !important;
    max-width: min(360px, 92vw) !important;
  }

  .hdr .hedayat-dropdown .dropdown-item {
    font-size: .96rem !important;
    font-weight: 750 !important;
    padding-block: .78rem !important;
  }

  .hdr .navbar-brand {
    flex: 0 0 auto;
  }

  .hdr .official-logo-nav {
    height: 52px !important;
    max-width: 220px !important;
  }

  .hdr .whatsapp-btn {
    flex: 0 0 auto;
  }
}

/* Intermediate laptops: retain all six items without making the text tiny. */
@media (min-width: 992px) and (max-width: 1240px) {
  .hdr.navbar > .container {
    width: 98% !important;
    gap: .45rem;
  }
  .hdr .official-logo-nav {
    height: 45px !important;
    max-width: 175px !important;
  }
  .hdr .nav-rtl {
    gap: .05rem !important;
  }
  .hdr .nav-rtl .nav-link,
  .hdr .nav-dropdown-toggle {
    font-size: .82rem !important;
    padding-inline: .43rem !important;
  }
  .hdr .whatsapp-btn {
    width: 34px !important;
    height: 34px !important;
  }
}


/* ============================================================
   V22 — MOBILE NAV VISIBILITY / GOVERNMENT-STYLE SHEET
   Keeps all six top-level items visible and makes submenus behave
   like clear nested sections instead of closing the whole menu.
   ============================================================ */
@media (max-width: 991.98px) {
  .hdr.navbar,
  .hdr.navbar.scrolled,
  .hdr.navbar:not(.scrolled) {
    overflow: visible !important;
  }

  .hdr.navbar > .container {
    position: relative !important;
  }

  .hdr .navbar-collapse,
  .hdr .navbar-collapse.collapsing,
  .hdr .navbar-collapse.show {
    position: fixed !important;
    top: calc(var(--nav-h) + 10px) !important;
    inset-inline: 12px !important;
    width: auto !important;
    margin: 0 !important;
    padding: .55rem .65rem .72rem !important;
    border: 1px solid rgba(91,107,78,.16) !important;
    border-radius: 18px !important;
    background: rgba(255,253,249,.995) !important;
    box-shadow: 0 22px 58px rgba(44,58,49,.18) !important;
    max-height: calc(100dvh - var(--nav-h) - 26px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    z-index: 2050 !important;
  }

  .hdr .navbar-collapse .nav-rtl {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hdr .navbar-collapse .nav-item,
  .hdr .navbar-collapse .hedayat-nav-group {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(91,107,78,.10) !important;
  }

  .hdr .navbar-collapse .nav-item:last-child {
    border-bottom: 0 !important;
  }

  .hdr .navbar-collapse .nav-link,
  .hdr .navbar-collapse .nav-dropdown-toggle {
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: start !important;
    direction: inherit !important;
    padding: .78rem .9rem !important;
    border-radius: 10px !important;
    color: #2F4039 !important;
    background: transparent !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
  }

  .hdr .navbar-collapse .nav-dropdown-toggle {
    justify-content: space-between !important;
  }

  .hdr .navbar-collapse .nav-link:hover,
  .hdr .navbar-collapse .nav-link:focus-visible,
  .hdr .navbar-collapse .nav-dropdown-toggle:hover,
  .hdr .navbar-collapse .nav-dropdown-toggle:focus-visible,
  .hdr .navbar-collapse .hedayat-nav-group.show > .nav-dropdown-toggle {
    color: #526842 !important;
    background: #F4F1E8 !important;
  }

  .hdr .hedayat-nav-group > .dropdown-menu,
  .hdr .hedayat-nav-group > .dropdown-menu[data-bs-popper] {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    width: calc(100% - .7rem) !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: .05rem auto .62rem !important;
    padding: .34rem .42rem .4rem !important;
    border: 1px solid rgba(91,107,78,.10) !important;
    border-radius: 12px !important;
    background: #F7F4ED !important;
    box-shadow: none !important;
  }

  .hdr .hedayat-dropdown::before {
    height: 2px !important;
    margin: -.34rem -.42rem .25rem !important;
    opacity: .72;
  }

  .hdr .hedayat-dropdown .dropdown-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 44px !important;
    text-align: start !important;
    direction: inherit !important;
    padding: .67rem .78rem !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: #3B4A43 !important;
    border-radius: 8px !important;
    white-space: normal !important;
  }

  .hdr .hedayat-dropdown .dropdown-item::before {
    flex: 0 0 auto;
    width: 5px !important;
    height: 5px !important;
    margin-inline-end: .55rem !important;
  }

  .hdr .nav-dropdown-toggle.dropdown-toggle::after {
    flex: 0 0 auto;
    margin-inline-start: .8rem !important;
  }

  .hdr .whatsapp-btn {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 420px) {
  .hdr .navbar-collapse,
  .hdr .navbar-collapse.collapsing,
  .hdr .navbar-collapse.show {
    inset-inline: 9px !important;
    padding-inline: .52rem !important;
    border-radius: 16px !important;
  }

  .hdr .navbar-collapse .nav-link,
  .hdr .navbar-collapse .nav-dropdown-toggle {
    min-height: 50px !important;
    font-size: .96rem !important;
    padding-inline: .78rem !important;
  }

  .hdr .hedayat-dropdown .dropdown-item {
    font-size: .89rem !important;
  }
}

/* ============================================================
   V24 — DESKTOP DROPDOWN CLIPPING FIX
   Keep every submenu fully below the header, compact and readable.
   ============================================================ */
@media (min-width: 992px) {
  .hdr .hedayat-nav-group {
    position: relative !important;
  }

  .hdr .hedayat-nav-group > .dropdown-menu,
  .hdr .hedayat-nav-group > .dropdown-menu[data-bs-popper] {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    inset: 100% auto auto 50% !important;
    transform: translateX(-50%) translateY(8px) !important;
    margin: 0 !important;
    min-width: 248px !important;
    width: max-content !important;
    max-width: min(290px, 88vw) !important;
    max-height: min(70vh, 430px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 5000 !important;
  }

  .hdr .hedayat-dropdown {
    padding: .38rem !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 42px rgba(44,58,49,.16) !important;
  }

  .hdr .hedayat-dropdown::before {
    height: 3px !important;
    margin: -.38rem -.38rem .28rem !important;
  }

  .hdr .hedayat-dropdown .dropdown-item {
    min-height: 39px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: .56rem .72rem !important;
    font-size: .88rem !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }

  .hdr .hedayat-dropdown .dropdown-item::before {
    width: 4px !important;
    height: 4px !important;
    margin-inline-end: .48rem !important;
  }
}


/* ============================================================
   V26 — DIRECT OFFICIAL SOCIAL ACCOUNTS
   Individual platform links replace the Linktree dependency.
   ============================================================ */
.contact-social-item {
  align-items: flex-start;
}

.social-contact-details {
  min-width: 0;
  width: 100%;
}

.social-username {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  margin: .12rem 0 .62rem !important;
  font-weight: 700;
  letter-spacing: .015em;
  color: var(--brand-teal) !important;
}

.official-social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  width: min(100%, 420px);
  margin-top: .15rem;
}

.official-social-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  padding: .52rem .62rem;
  border-radius: 12px;
  border: 1px solid rgba(99, 126, 75, .18);
  background: rgba(255, 255, 255, .72);
  color: var(--text-card-main);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.official-social-link i {
  font-size: 1rem;
  line-height: 1;
  color: var(--brand-teal);
}

.official-social-link:hover,
.official-social-link:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(99, 126, 75, .38);
  box-shadow: 0 8px 18px rgba(44, 58, 49, .09);
  color: var(--text-card-main);
}

@media (min-width: 560px) {
  .official-social-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .official-social-links {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   v28 — ABOUT COPY PLACEMENT + BALANCED FOOTER IDENTITY
   ============================================================ */
#about .ref-section-header {
  margin-bottom: 2.9rem;
}

#about .ref-section-subtitle {
  max-width: 880px;
  margin-top: 1.35rem;
  font-size: clamp(.98rem, 1.45vw, 1.12rem);
  line-height: 2.05;
  color: #58615b;
  text-wrap: pretty;
}

/* Use the identity motif as a quiet frame on both sides instead of one
   oversized mark floating in a single corner. */
.site-footer {
  isolation: isolate;
}

.footer-watermark {
  bottom: -72px;
  width: clamp(250px, 22vw, 340px);
  height: auto;
  opacity: .055;
  z-index: 0;
}

.footer-watermark--start {
  inset-inline-start: -82px;
  inset-inline-end: auto;
  transform: scaleX(-1);
}

.footer-watermark--end {
  inset-inline-end: -82px;
  inset-inline-start: auto;
}

.footer-top {
  max-width: 980px;
}

.footer-logos {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  gap: clamp(2rem, 5vw, 4.25rem);
  justify-content: center;
}

.official-logo-footer {
  width: min(25vw, 285px) !important;
  max-width: 285px !important;
}

.footer-logos .national-center-footer-logo {
  width: min(22vw, 225px) !important;
  max-width: 225px !important;
  height: auto !important;
  max-height: none !important;
}

@media (max-width: 767.98px) {
  #about .ref-section-header {
    margin-bottom: 2.25rem;
  }

  #about .ref-section-subtitle {
    max-width: 100%;
    font-size: .98rem;
    line-height: 1.95;
    padding-inline: .2rem;
  }

  /* Keep the phone footer clean; the paired decorative marks are desktop/tablet only. */
  .footer-watermark {
    display: none !important;
  }

  .official-logo-footer {
    width: min(58vw, 220px) !important;
    max-width: 220px !important;
  }

  .footer-logos .national-center-footer-logo {
    width: min(54vw, 190px) !important;
    max-width: 190px !important;
  }
}


/* ===== Reliability + responsive additions (local UI assets / working nav destinations) ===== */
.bi-twitter-x::before { content: "𝕏" !important; font-family: Arial, sans-serif !important; font-weight: 700; }
#programs, #partners, #contact, #about, #vision, #goals, #values { scroll-margin-top: 92px; }
.institutional-info-section .ref-section { max-width: 1040px; }
.institutional-info-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:22px; padding:28px 30px; }
.institutional-info-icon { width:64px; height:64px; display:grid; place-items:center; border-radius:18px; background:var(--soft-sage); color:var(--primary); font-size:1.75rem; }
.institutional-info-copy h3 { margin:0 0 8px; font-family:var(--font-family-arabic); color:var(--primary); font-weight:800; font-size:1.28rem; }
.institutional-info-copy p { margin:0; color:var(--text-card-muted); line-height:1.9; }
.institutional-info-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border-radius:999px; background:var(--primary); color:#fff; text-decoration:none; font-weight:800; white-space:nowrap; transition:transform .18s ease, opacity .18s ease; }
.institutional-info-action:hover { color:#fff; transform:translateY(-1px); opacity:.94; }
.institutional-info-action:focus-visible { outline:3px solid rgba(11,95,114,.22); outline-offset:3px; }
@media (max-width: 767.98px) {
  .institutional-info-card { grid-template-columns:auto minmax(0,1fr); gap:15px; padding:22px 18px; }
  .institutional-info-icon { width:52px; height:52px; border-radius:15px; font-size:1.4rem; }
  .institutional-info-action { grid-column:1/-1; width:100%; margin-top:3px; }
}
@media (max-width: 380px) {
  .institutional-info-card { grid-template-columns:1fr; text-align:center; }
  .institutional-info-icon { margin-inline:auto; }
}

/* Contact form runtime status — Railway self-hosted endpoint */
.form-status{margin-top:.8rem;min-height:1.35rem;font-size:.88rem;line-height:1.7;font-weight:700}
.form-status.is-pending{color:#6c757d}
.form-status.is-success{color:#236c4b}
.form-status.is-error{color:#9b2c2c}
.btn-form-submit:disabled{opacity:.65;cursor:not-allowed}


/* Local X mark: the bundled Bootstrap Icons version does not include bi-twitter-x. */
.social-x-mark{display:inline-grid;place-items:center;width:1.15em;height:1.15em;font-family:Arial,Helvetica,sans-serif;font-size:1.05em;font-weight:700;line-height:1;color:currentColor}

/* ============================================================
   ACCESSIBILITY UTILITIES
   ============================================================ */
.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: 10px;
  z-index: 99999;
  transform: translateY(-160%);
  background: #111;
  color: #fff !important;
  border: 2px solid #fff;
  border-radius: 10px;
  padding: .65rem .9rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

.a11y-tools {
  position: fixed;
  inset-inline-start: 14px;
  bottom: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(40,101,131,.2);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(31,59,67,.14);
  backdrop-filter: blur(10px);
}
.a11y-tools button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(40,101,131,.16);
  border-radius: 9px;
  background: #fff;
  color: #254c5c;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.a11y-tools button:hover { background: #eef5f5; }
.a11y-tools button[aria-pressed="true"] { background: #173f4e; color: #fff; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid #BEAE59 !important;
  outline-offset: 3px !important;
}

.a11y-high-contrast {
  --text-main: #111111;
  --text-card-main: #111111;
  --text-card-muted: #242424;
  --text-muted: #2f2f2f;
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --deep-bg: #ffffff;
  --border-soft: #555555;
  --primary: #274500;
  --primary-soft: #385f00;
  --accent: #6c5600;
}
.a11y-high-contrast body { background: #fff !important; color: #111 !important; }
.a11y-high-contrast a:not(.btn-form-submit):not(.whatsapp-btn) { text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .16em; }
.a11y-high-contrast .ref-card,
.a11y-high-contrast .contact-item,
.a11y-high-contrast .contact-form,
.a11y-high-contrast .site-footer,
.a11y-high-contrast .hdr.scrolled { border-color: #444 !important; box-shadow: none !important; }

@media (max-width: 560px) {
  .a11y-tools { inset-inline-start: 8px; bottom: 8px; gap: 3px; padding: 4px; }
  .a11y-tools button { min-width: 34px; min-height: 34px; font-size: .84rem; }
}

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

/* Official trust bar at the end of the page, immediately before the footer */
.official-trust-bar {
  position: relative;
  z-index: 4;
  padding: 30px 20px 36px;
  margin-top: 0;
  background: #FAF7F2;
  border-top: 1px solid rgba(100,117,80,.08);
}
.official-trust-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr)) auto;
  overflow: hidden;
  border: 1px solid rgba(40,101,131,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 38px rgba(54,71,61,.10);
}
.trust-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 17px 15px;
  border-inline-end: 1px solid rgba(100,117,80,.10);
}
.trust-item>i { grid-row: 1 / 3; color: var(--brand-teal); font-size: 1.25rem; }
.trust-item span { display:block; color:#6c7a72; font-size:.75rem; font-weight:700; }
.trust-item strong { display:block; color:#344b40; font-size:.92rem; font-weight:900; overflow-wrap:anywhere; }
.trust-verify {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width: 185px;
  padding: 15px 18px;
  background: var(--brand-teal);
  color:#fff !important;
  font-weight:900;
  text-align:center;
}
.trust-verify:hover { background:#1f526d; }
@media(max-width: 980px){
  .official-trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom:1px solid rgba(100,117,80,.10); }
  .trust-verify { grid-column:1 / -1; min-height:52px; }
}
@media(max-width: 560px){
  .official-trust-bar { padding:24px 0 0; margin-top:0; background:#FAF7F2; }
  .official-trust-inner { grid-template-columns:1fr; border-radius:0; border-inline:0; }
  .trust-item { padding:14px 18px; border-inline-end:0; }
  .trust-verify { grid-column:auto; border-radius:0; }
}


/* Visitor feedback — lightweight, bilingual and accessible */
.page-feedback { position: relative; z-index: 1200; }
.feedback-launcher {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(40,101,131,.18);
  border-radius: 999px;
  background: #fff;
  color: #24566c;
  box-shadow: 0 10px 28px rgba(31,59,67,.16);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.feedback-launcher:hover { background: #eef5f5; transform: translateY(-1px); }
.feedback-launcher.feedback-sent::after {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2d6a4f;
  color: #fff;
  font-size: .72rem;
}
.feedback-dialog {
  width: min(92vw, 520px);
  max-height: min(88vh, 720px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(40,101,131,.18);
  border-radius: 20px;
  background: #fff;
  color: #243e49;
  box-shadow: 0 24px 70px rgba(20,49,60,.28);
  overflow: auto;
}
.feedback-dialog::backdrop { background: rgba(20,38,43,.48); backdrop-filter: blur(2px); }
.feedback-form { padding: 22px; }
.feedback-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.feedback-head h2 { margin:0; color:#214e61; font-size:1.25rem; font-weight:900; }
.feedback-head p { margin:5px 0 0; color:#61757d; font-size:.94rem; }
.feedback-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #d9e5e6;
  border-radius: 50%;
  background: #f8fbfb;
  color:#365c6a;
  font: 700 1.45rem/1 Arial,sans-serif;
  cursor:pointer;
}
.feedback-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:0 0 18px; padding:0; border:0; }
.feedback-choices label { min-width:0; cursor:pointer; }
.feedback-choices input { position:absolute; opacity:0; pointer-events:none; }
.feedback-choices span {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:48px;
  padding:9px 8px;
  border:1px solid #d5e1e3;
  border-radius:12px;
  background:#fbfdfd;
  color:#365965;
  font-weight:850;
  text-align:center;
  transition:.15s ease;
}
.feedback-choices input:checked + span { border-color:#286583; background:#eaf4f7; color:#174e68; box-shadow:0 0 0 2px rgba(40,101,131,.08); }
.feedback-choices input:focus-visible + span { outline:3px solid #BEAE59; outline-offset:3px; }
.feedback-comment-label { display:block; margin-bottom:7px; font-weight:850; color:#344f58; }
.feedback-form textarea {
  width:100%;
  min-height:104px;
  resize:vertical;
  border:1px solid #d0dddf;
  border-radius:12px;
  background:#fff;
  color:#263f48;
  padding:11px 12px;
  font:inherit;
}
.feedback-form textarea:focus { border-color:#286583; box-shadow:0 0 0 3px rgba(40,101,131,.09); outline:0; }
.feedback-honeypot {position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
.feedback-privacy { display:flex; align-items:center; gap:7px; margin:10px 0 14px; color:#6b7c81; font-size:.82rem; }
.feedback-privacy i { color:#3e7257; }
.feedback-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.feedback-submit {
  min-height:43px;
  padding:9px 18px;
  border:0;
  border-radius:10px;
  background:#286583;
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.feedback-submit:hover { background:#1f526d; }
.feedback-submit:disabled { opacity:.62; cursor:wait; }
.feedback-status { flex:1 1 180px; min-height:24px; font-size:.88rem; font-weight:800; }
.feedback-status[data-state="success"] { color:#286746; }
.feedback-status[data-state="error"] { color:#9b2c2c; }
.feedback-status[data-state="loading"] { color:#66777d; }
.a11y-high-contrast .feedback-launcher,
.a11y-high-contrast .feedback-dialog,
.a11y-high-contrast .feedback-choices span,
.a11y-high-contrast .feedback-form textarea { border-color:#222 !important; box-shadow:none !important; }
.a11y-high-contrast .feedback-launcher { background:#fff !important; color:#111 !important; }
.a11y-high-contrast .feedback-choices input:checked + span { background:#111 !important; color:#fff !important; }
@media(max-width:560px){
  .feedback-launcher { inset-inline-end:8px; bottom:58px; min-height:40px; padding:8px 12px; font-size:.86rem; }
  .feedback-dialog { width:calc(100vw - 20px); border-radius:16px; }
  .feedback-form { padding:17px; }
  .feedback-choices { grid-template-columns:1fr; }
  .feedback-choices span { min-height:44px; }
  .feedback-actions { align-items:stretch; }
  .feedback-submit { width:100%; }
}
@media(prefers-reduced-motion:reduce){ .feedback-launcher:hover { transform:none; } }
.feedback-center-link{display:inline-flex;align-items:center;gap:7px;margin:0 0 14px;color:#315f70;font-weight:900;text-decoration:none;border-bottom:1px solid transparent}.feedback-center-link:hover{border-bottom-color:#315f70}.a11y-high-contrast .feedback-center-link{color:#111!important;border-bottom-color:#111!important}

/* ============================================================
   INSTITUTIONAL STORY — distinct layouts for vision, goals & values
   These sections intentionally avoid repeating the generic card grid.
   ============================================================ */
.institution-statements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin-inline: auto;
}
.institution-statement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding: 1.7rem 1.6rem;
  border-inline-start: 4px solid var(--brand-olive);
  border-radius: 12px;
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 10px 28px rgba(54, 65, 55, .055);
}
.institution-statement:nth-child(2) { border-inline-start-color: var(--brand-teal); }
.institution-statement-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-olive);
  border: 1px solid rgba(100, 117, 80, .14);
  font-size: 1.2rem;
}
.institution-statement:nth-child(2) .institution-statement-icon { color: var(--brand-teal); }
.institution-statement-kicker {
  display: block;
  margin-bottom: .18rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
}
.institution-statement h3,
.strategic-goal h3,
.core-value h3 {
  margin: 0 0 .42rem;
  font-family: var(--font-family-arabic);
  color: var(--text-card-main);
  font-weight: 900;
}
.institution-statement h3 { font-size: 1.12rem; }
.institution-statement p,
.strategic-goal p,
.core-value p {
  margin: 0;
  color: var(--text-card-muted);
  line-height: 1.9;
}
.institution-statement p { font-size: .86rem; }

.strategic-goals-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 940px;
  margin-inline: auto;
  border-block: 1px solid rgba(100, 117, 80, .14);
}
.strategic-goal {
  display: grid;
  grid-template-columns: 44px 46px minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  padding: 1.55rem 1.35rem;
  min-height: 150px;
}
.strategic-goal:nth-child(odd) { border-inline-end: 1px solid rgba(100, 117, 80, .14); }
.strategic-goal:nth-child(-n+2) { border-block-end: 1px solid rgba(100, 117, 80, .14); }
.strategic-goal-number {
  padding-top: .1rem;
  color: rgba(100, 117, 80, .42);
  font-family: Arial, sans-serif;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.strategic-goal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(100, 117, 80, .09);
  color: var(--brand-olive);
  font-size: 1.05rem;
}
.strategic-goal h3 { font-size: .96rem; }
.strategic-goal p { font-size: .79rem; }

.core-values-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
  max-width: 980px;
  margin-inline: auto;
}
.core-value {
  position: relative;
  min-width: 0;
  padding: 1.25rem .95rem 1.15rem;
  text-align: center;
  border-top: 2px solid rgba(100, 117, 80, .26);
}
.core-value-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto .8rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-teal);
  border: 1px solid rgba(40, 101, 131, .12);
  font-size: 1rem;
}
.core-value h3 { font-size: .9rem; }
.core-value p { font-size: .75rem; line-height: 1.82; }

@media (max-width: 991.98px) {
  .core-values-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; }
  .core-value:last-child { grid-column: 1 / -1; max-width: 340px; width: 100%; margin-inline: auto; }
}
@media (max-width: 767.98px) {
  .institution-statements,
  .strategic-goals-list { grid-template-columns: 1fr; max-width: 520px; }
  .institution-statement { padding: 1.4rem 1.2rem; }
  .strategic-goal { grid-template-columns: 36px 42px minmax(0, 1fr); min-height: auto; padding: 1.25rem .8rem; }
  .strategic-goal:nth-child(odd) { border-inline-end: 0; }
  .strategic-goal:nth-child(-n+3) { border-block-end: 1px solid rgba(100, 117, 80, .14); }
}
@media (max-width: 520px) {
  .institution-statement { grid-template-columns: 1fr; text-align: center; }
  .institution-statement-icon { margin-inline: auto; }
  .core-values-list { grid-template-columns: 1fr; max-width: 390px; gap: .2rem; }
  .core-value,
  .core-value:last-child { grid-column: auto; max-width: none; width: auto; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: .8rem; text-align: start; align-items: start; padding: 1rem .25rem; }
  .core-value-icon { margin: 0; }
  .core-value-copy { min-width: 0; }
  .core-value h3 { margin-top: .05rem; }
}

html[lang="en"] .institution-statement,
html[lang="en"] .strategic-goal,
html[lang="en"] .core-value { text-align: left; }
html[lang="en"] .institution-statement { border-inline-start-color: var(--brand-olive); }
html[lang="en"] .institution-statement:nth-child(2) { border-inline-start-color: var(--brand-teal); }
@media (max-width: 520px) {
  html[lang="en"] .core-value,
  html[lang="en"] .core-value:last-child { text-align: left; }
}


/* ===== Hedayat professional refinement v31 ===== */
.media-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.media-home-card{min-height:150px;display:flex;align-items:center;gap:16px;padding:24px;border:1px solid rgba(89,111,70,.13);border-radius:22px;background:#fff;color:#35433a;text-decoration:none;box-shadow:0 14px 38px rgba(48,69,56,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.media-home-card:hover,.media-home-card:focus-visible{transform:translateY(-2px);box-shadow:0 18px 44px rgba(48,69,56,.1);border-color:rgba(89,111,70,.26);color:#35433a}.media-home-card-icon{flex:0 0 54px;width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:#eef3e9;color:#5e734a;font-size:24px}.media-home-card-copy{display:grid;gap:5px;min-width:0}.media-home-card-copy strong{font-size:1.12rem;color:#34463a}.media-home-card-copy small{font-size:.92rem;line-height:1.7;color:#6b776e}.media-home-arrow{margin-inline-start:auto;font-size:1.5rem;color:#7e8b78}.site-footer .footer-links{max-width:950px;justify-content:center}.site-footer .footer-license{max-width:760px;text-align:center;line-height:1.8}
@media(max-width:767.98px){.media-home-grid{grid-template-columns:1fr;gap:11px}.media-home-card{min-height:auto;padding:17px 18px;border-radius:17px}.media-home-card-icon{width:46px;height:46px;flex-basis:46px;border-radius:13px;font-size:20px}.media-home-card-copy strong{font-size:1rem}.media-home-card-copy small{font-size:.84rem}.ref-section-title{font-size:clamp(1.8rem,8.8vw,2.45rem)!important;line-height:1.35}.ref-section-subtitle{font-size:.94rem!important;line-height:1.8!important}.institutional-info-card{padding:22px 18px!important}.navbar-collapse.show,.navbar-collapse.collapsing{padding-top:8px!important;padding-bottom:10px!important}.navbar-nav .nav-link{padding-block:.68rem!important}.hedayat-dropdown .dropdown-item{padding-block:.62rem!important}.footer-links{gap:.42rem .65rem!important}.footer-links span{display:none}.site-footer{padding-bottom:84px!important}}
@media(max-width:560px){.a11y-tools{inset-inline-start:8px!important;bottom:8px!important;gap:2px!important;padding:3px!important;border-radius:12px!important}.a11y-tools button{min-width:31px!important;min-height:31px!important;padding:0 5px!important;font-size:.75rem!important;border-radius:8px!important}.feedback-launcher{inset-inline-end:8px!important;bottom:48px!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;justify-content:center!important;gap:0!important}.feedback-launcher span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.feedback-launcher i{font-size:1.15rem}.feedback-dialog{width:min(94vw,500px)!important;max-height:84vh!important;border-radius:17px!important}.feedback-form{padding:18px!important}}
@media(max-width:390px){.ref-section{padding-inline:15px!important}.footer-links{font-size:.8rem!important}.official-logo-footer{width:min(54vw,205px)!important}}

/* ============================================================
   V32 — FULL RESPONSIVE HARDENING
   Supports narrow phones, tablets, laptops, large/ultra-wide screens,
   browser zoom and short landscape viewports without horizontal clipping.
   ============================================================ */

/* Predictable sizing and resilient media everywhere. */
*, *::before, *::after { box-sizing: border-box; }
html {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: clip;
}
img, picture, video, canvas, svg, iframe {
  max-width: 100%;
}
img, video, svg { height: auto; }
iframe { width: 100%; }
input, textarea, select, button { max-width: 100%; }

/* Prevent Arabic/English long strings, URLs and document titles from forcing overflow. */
p, li, a, span, strong, small, h1, h2, h3, h4, h5, h6,
.ref-card, .contact-item, .institutional-info-copy,
.media-home-card-copy, .trust-item, .footer-links {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Bootstrap containers remain comfortably fluid at every viewport width. */
.container,
.container-fluid,
.ref-section,
.section-container,
.media-content,
.media-shell,
.participation-shell,
.participation-section,
.official-trust-inner,
.footer-top,
.footer-bottom {
  min-width: 0;
}

/* All grid/flex children are allowed to shrink instead of pushing the viewport. */
.row > *,
[class*="grid"] > *,
.d-flex > *,
.navbar > .container > *,
.navbar > .container-fluid > *,
.footer-logos > *,
.footer-links > *,
.contact-item > *,
.institutional-info-card > *,
.media-home-card > * {
  min-width: 0;
}

/* Fluid type/spacing on large displays without becoming oversized. */
:root {
  --responsive-page-gutter: clamp(14px, 3vw, 32px);
}
.ref-section {
  width: min(100%, 1120px);
  padding-inline: var(--responsive-page-gutter);
}
.ref-section-title {
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  text-wrap: balance;
}
.ref-section-subtitle { text-wrap: pretty; }

/* Navigation: never let brand/actions collide at in-between widths. */
.hdr .navbar > .container,
.hdr .navbar > .container-fluid {
  width: 100%;
  min-width: 0;
  gap: clamp(8px, 1.5vw, 18px);
}
.hdr .navbar-brand,
.hdr .navbar-brand img { min-width: 0; }

/* Tables/document-like blocks remain usable instead of widening the page. */
.table-responsive,
.responsive-table,
[role="region"][aria-label*="جدول"],
[role="region"][aria-label*="table" i] {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table { max-width: 100%; }

/* Media-center tabs adapt gracefully when translated labels become longer. */
.media-tabs {
  width: min(calc(100% - (2 * var(--responsive-page-gutter))), 760px);
  min-width: 0;
}
.media-tabs a {
  min-width: 0;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
}

/* Dialogs use dynamic viewport units, important on iOS Safari and landscape phones. */
.feedback-dialog {
  max-width: calc(100dvw - 20px);
  max-height: calc(100dvh - 20px);
}

/* Fixed utilities respect notches/home indicators where supported. */
.a11y-tools {
  inset-inline-start: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
}
.feedback-launcher {
  inset-inline-end: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
}

/* Very large screens: keep readable line lengths and centered composition. */
@media (min-width: 1600px) {
  .container { max-width: 1440px; }
  .ref-section { max-width: 1180px; }
  .hero-content, .hero-inner { max-width: 1180px; margin-inline: auto; }
}

/* Tablet / compact desktop transition. */
@media (max-width: 1199.98px) {
  .core-values-list { gap: .55rem; }
  .media-home-grid { gap: 13px; }
}

/* Phones and tablets: eliminate hard assumptions about available width. */
@media (max-width: 767.98px) {
  :root { --responsive-page-gutter: clamp(14px, 4vw, 22px); }

  .ref-section,
  .participation-section,
  .media-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-section {
    min-height: min(620px, 100svh);
  }

  .hero-logo-img,
  .official-logo-footer,
  .footer-logos .national-center-footer-logo {
    height: auto !important;
    object-fit: contain;
  }

  .media-tabs {
    width: calc(100% - 28px);
    margin-inline: auto;
  }

  .media-tabs a {
    padding-inline: clamp(7px, 2.8vw, 13px);
    font-size: clamp(.78rem, 3.3vw, .95rem);
  }

  .feedback-dialog {
    width: calc(100dvw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    margin: auto;
  }

  .feedback-form textarea {
    min-width: 0;
  }
}

/* Narrow phones, including 320px devices and zoomed layouts. */
@media (max-width: 420px) {
  :root { --responsive-page-gutter: 13px; }

  .ref-section { padding-inline: 13px !important; }

  .strategic-goal {
    grid-template-columns: 30px 38px minmax(0, 1fr);
    gap: .62rem;
    padding-inline: .35rem;
  }
  .strategic-goal-icon { width: 38px; height: 38px; }

  .media-home-card {
    gap: 12px;
    padding-inline: 14px;
  }

  .media-tabs {
    width: calc(100% - 18px);
    gap: 4px;
    padding: 5px;
  }

  .feedback-form { padding: 14px !important; }
  .feedback-head { gap: 9px; }
  .feedback-choices { gap: 7px; }

  .a11y-tools {
    inset-inline-start: max(6px, env(safe-area-inset-left)) !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
  }
  .feedback-launcher {
    inset-inline-end: max(6px, env(safe-area-inset-right)) !important;
    bottom: max(46px, calc(env(safe-area-inset-bottom) + 42px)) !important;
  }
}

/* Extreme narrow width: keep controls and cards usable down to ~280px. */
@media (max-width: 340px) {
  :root { --responsive-page-gutter: 10px; }

  .hdr .navbar-collapse,
  .hdr .navbar-collapse.collapsing,
  .hdr .navbar-collapse.show { inset-inline: 5px !important; }

  .strategic-goal {
    grid-template-columns: 26px 34px minmax(0, 1fr);
    gap: .45rem;
  }
  .strategic-goal-icon { width: 34px; height: 34px; }

  .media-home-card-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .a11y-tools button {
    min-width: 28px !important;
    min-height: 30px !important;
    padding-inline: 3px !important;
    font-size: .7rem !important;
  }

  .feedback-launcher {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}

/* Short landscape phones: menus/dialogs must fit the visible viewport. */
@media (max-height: 520px) and (orientation: landscape) {
  .hdr .navbar-collapse,
  .hdr .navbar-collapse.collapsing,
  .hdr .navbar-collapse.show {
    top: calc(var(--nav-h) + 4px) !important;
    max-height: calc(100dvh - var(--nav-h) - 8px) !important;
    border-radius: 12px !important;
  }

  .feedback-dialog {
    max-height: calc(100dvh - 10px) !important;
  }

  .feedback-form { padding-block: 12px !important; }
  .feedback-head { margin-bottom: 10px; }
  .feedback-choices { margin-bottom: 10px; }
  .feedback-form textarea { min-height: 70px; }

  .a11y-tools { bottom: max(4px, env(safe-area-inset-bottom)) !important; }
  .feedback-launcher { bottom: max(4px, env(safe-area-inset-bottom)) !important; }
}

/* Support users who enlarge text substantially: layouts should reflow instead of clip. */
@media (max-width: 991.98px) {
  .navbar-nav,
  .footer-links,
  .official-social-links,
  .media-home-grid,
  .core-values-list,
  .institution-statements,
  .strategic-goals-list {
    min-width: 0;
  }
}

/* ===== Language consistency fixes =====
   Direction now comes only from <html dir="..."> so English pages are fully LTR
   and Arabic pages fully RTL. The toolbar has a language button on every page. */
html[dir="ltr"] body { direction: ltr; text-align: left; }
html[dir="rtl"] body { direction: rtl; text-align: right; }
.a11y-tools .a11y-lang-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 38px; min-height: 38px; padding: 0 8px;
  border: 1px solid rgba(40,101,131,.16); border-radius: 9px;
  background: #173f4e; color: #fff; font-weight: 900; text-decoration: none; line-height: 1;
}
.a11y-tools .a11y-lang-switch:hover { background: #254c5c; color: #fff; }
.a11y-tools .a11y-lang-switch span { font-size: .9rem; }
@media (max-width: 560px) {
  .a11y-tools .a11y-lang-switch { min-width: 31px !important; min-height: 31px !important; padding: 0 6px !important; font-size: .75rem !important; border-radius: 8px !important; }
}

/* ===== Hero v2: split layout — logo & message on one side, lighthouse illustration on the other =====
   In Arabic (RTL) the copy sits on the right and the lighthouse on the left; English mirrors it. */
.hero-section.hero-split {
  min-height: 640px;
  padding: calc(var(--nav-h) + 24px) 0 110px !important;
  align-items: center !important;
  text-align: start;
  color: var(--text-main);
  background:
    radial-gradient(ellipse at 18% 30%, rgba(230,157,116,.16), transparent 52%),
    radial-gradient(ellipse at 85% 75%, rgba(150,189,188,.22), transparent 55%),
    linear-gradient(180deg, #FBF8F2 0%, #F7F4EE 100%) !important;
}
.hero-split-pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("/identity-grid.png") center / 300px auto repeat;
  opacity: .02;
}
.hero-split-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1180px;
}
.hero-split-copy { display: flex; flex-direction: column; align-items: flex-start; text-align: start; }
.hero-split-logo { display: block; width: min(100%, 440px); height: auto; margin: 0 0 26px; }
.hero-split-title {
  margin: 0 0 14px;
  font-family: var(--font-family-title);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.45;
  font-weight: 900;
  color: var(--brand-teal);
}
html[lang="en"] .hero-split-title { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }
.hero-split-lead { margin: 0 0 26px; max-width: 560px; color: var(--text-card-muted); font-size: 1.02rem; line-height: 1.95; }
.hero-split-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-split-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--brand-teal); color: #fff; border: 2px solid var(--brand-teal);
  font-weight: 800; text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.hero-split-btn:hover, .hero-split-btn:focus-visible { background: #1f5169; border-color: #1f5169; color: #fff; transform: translateY(-1px); }
.hero-split-btn--ghost { background: transparent; color: var(--brand-teal); }
.hero-split-btn--ghost:hover, .hero-split-btn--ghost:focus-visible { background: var(--soft-teal); color: var(--brand-teal); }
.hero-split-art { display: flex; justify-content: center; }
.hero-split-art img { display: block; width: min(100%, 440px); height: auto; filter: drop-shadow(0 18px 30px rgba(40,101,131,.12)); }
.hero-section.hero-split .hero-wave { bottom: -60px; }

@media (max-width: 991.98px) {
  .hero-section.hero-split { min-height: 0; padding: calc(var(--nav-h) + 26px) 0 96px !important; }
  .hero-split-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-split-copy { align-items: center; text-align: center; }
  .hero-split-logo { width: min(78vw, 360px); margin-inline: auto; margin-bottom: 18px; }
  .hero-split-lead { margin-inline: auto; }
  .hero-split-actions { justify-content: center; }
  .hero-split-art { order: -1; }
  .hero-split-art img { width: min(52vw, 230px); }
}
@media (max-width: 480px) {
  .hero-split-title { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .hero-split-lead { font-size: .95rem; }
  .hero-split-btn { min-height: 44px; padding: 0 20px; }
}

/* Privacy consent on the contact form (Personal Data Protection Law) */
.form-consent { display: flex; align-items: flex-start; gap: .55rem; margin: .2rem 0 .85rem; font-size: .8rem; line-height: 1.75; color: var(--text-card-muted); cursor: pointer; }
.form-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .22rem; accent-color: var(--brand-teal); cursor: pointer; }
.form-consent a { color: var(--brand-teal); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Hero v3: formal & refined (official-site style) ===== */
.hero-section.hero-split {
  background:
    radial-gradient(ellipse at 22% 45%, rgba(190,174,89,.10), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF7EF 100%) !important;
  padding-bottom: 120px !important;
  border-bottom: 1px solid rgba(190,174,89,.25);
}
.hero-split-pattern { display: none; }
.hero-section.hero-split .hero-wave { display: none; }
.hero-split-title { color: #1A4A60; }
.hero-split-btn { border-radius: 8px; background: #1A4A60; border-color: #1A4A60; }
.hero-split-btn:hover, .hero-split-btn:focus-visible { background: #123747; border-color: #123747; }
.hero-split-btn--ghost { background: transparent; color: #8F7F35; border-color: #BEAE59; }
.hero-split-btn--ghost:hover, .hero-split-btn--ghost:focus-visible { background: #FBF6E6; color: #7A6C2B; border-color: #BEAE59; }
.hero-split-art img { filter: drop-shadow(0 22px 34px rgba(156,142,69,.20)); }

.hero-license {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 22px; padding: 9px 14px;
  border: 1px solid rgba(190,174,89,.45); border-radius: 8px; background: #FFFDF7;
  color: #4A5850; font-size: .82rem; line-height: 1.6; text-decoration: none;
}
.hero-license > i { color: #9C8E45; font-size: 1.05rem; }
.hero-license strong { color: #1A4A60; letter-spacing: .3px; }
.hero-license em { font-style: normal; font-weight: 800; color: #1A4A60; display: inline-flex; align-items: center; gap: 4px; }
.hero-license:hover { border-color: #BEAE59; background: #FBF6E6; color: #3E4C42; }

.quick-access {
  position: relative; z-index: 5;
  max-width: 1180px; margin: -64px auto 10px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.quick-access a {
  display: flex; align-items: center; gap: 14px; padding: 20px 18px;
  background: #fff; border: 1px solid rgba(26,74,96,.10); border-top: 3px solid #BEAE59; border-radius: 10px;
  box-shadow: 0 16px 34px rgba(26,74,96,.08); text-decoration: none; color: #1A4A60;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quick-access a:hover, .quick-access a:focus-visible { transform: translateY(-3px); box-shadow: 0 22px 40px rgba(26,74,96,.13); border-top-color: #1A4A60; }
.qa-icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: #EEF4F6; color: #1A4A60; font-size: 1.3rem; }
.qa-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qa-copy strong { font-size: .98rem; font-weight: 800; }
.qa-copy small { color: #6C7770; font-size: .78rem; line-height: 1.5; }

@media (max-width: 991.98px) {
  .hero-section.hero-split { padding-bottom: 90px !important; }
  .quick-access { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -46px; }
  .hero-license { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .quick-access { gap: 10px; padding: 0 14px; }
  .quick-access a { flex-direction: column; align-items: center; text-align: center; padding: 16px 10px; gap: 8px; }
  .qa-copy small { display: none; }
  .hero-license { font-size: .74rem; }
}

/* ===== Hero v4: official banner — no illustration, brand colour + identity pattern ===== */
.hero-section.hero-gov {
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(14,44,56,.0) 0%, rgba(14,44,56,.0) 55%, rgba(14,44,56,.35) 100%),
    linear-gradient(160deg, #123747 0%, #1A4A60 50%, #21607A 100%) !important;
  border-bottom: 4px solid #BEAE59;
  padding-bottom: 130px !important;
}
.hero-gov .hero-split-pattern {
  display: block; opacity: .07 !important;
  background: url("/identity-grid.png") left center / 260px auto repeat-y;
  inset: 0 auto 0 0; width: 46%;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent);
          mask-image: linear-gradient(90deg, #000 30%, transparent);
}
html[dir="ltr"] .hero-gov .hero-split-pattern { inset: 0 0 0 auto; background-position: right center;
  -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent); mask-image: linear-gradient(270deg, #000 30%, transparent); }
.hero-gov .hero-split-inner { grid-template-columns: minmax(0, 760px); }
.hero-gov .hero-split-logo { width: min(100%, 360px); margin-bottom: 22px; }
.hero-gov .hero-split-title { color: #FFFFFF; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.hero-gov .hero-split-lead { color: #D3E2E6; max-width: 640px; }
.hero-gov .hero-split-btn { background: #BEAE59; border-color: #BEAE59; color: #10303D; }
.hero-gov .hero-split-btn:hover, .hero-gov .hero-split-btn:focus-visible { background: #D4C47A; border-color: #D4C47A; color: #10303D; }
.hero-gov .hero-split-btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.55); }
.hero-gov .hero-split-btn--ghost:hover, .hero-gov .hero-split-btn--ghost:focus-visible { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.hero-gov .hero-license { background: rgba(255,255,255,.07); border-color: rgba(190,174,89,.55); color: #E3ECEE; }
.hero-gov .hero-license strong, .hero-gov .hero-license em { color: #F1E3AE; }
.hero-gov .hero-license > i { color: #D4C47A; }
.hero-gov .hero-license:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 991.98px) {
  .hero-section.hero-gov { min-height: 0; padding-bottom: 96px !important; }
  .hero-gov .hero-split-pattern { width: 100%; opacity: .05 !important; }
  .hero-gov .hero-split-inner { grid-template-columns: 1fr; }
}

/* ===== Hero v5: photo hero (lighthouse photo fading into cream) + floating cards ===== */
.hero-section.hero-photo {
  position: relative; overflow: hidden;
  min-height: 680px !important;
  display: flex; align-items: center !important;
  padding: calc(var(--nav-h) + 30px) 0 150px !important;
  text-align: start; color: var(--text-main);
  background: linear-gradient(180deg, #FBF9F4 0%, #F6F1E7 100%) !important;
}
.hero-photo-img {
  position: absolute; z-index: 0; top: 0; bottom: 0;
  inset-inline-end: 0; width: 64%;
  background: url("/hero-lighthouse-photo.jpg") center 30% / cover no-repeat;
  background-image: image-set(url("/hero-lighthouse-photo.webp") type("image/webp"), url("/hero-lighthouse-photo.jpg") type("image/jpeg"));
  -webkit-mask-image: linear-gradient(to right, #000 52%, transparent 98%), linear-gradient(to top, transparent 0%, #000 26%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, #000 52%, transparent 98%), linear-gradient(to top, transparent 0%, #000 26%);
          mask-composite: intersect;
}
html[dir="ltr"] .hero-photo-img { transform: scaleX(-1); }
.hero-photo-inner { position: relative; z-index: 2; max-width: 1220px; display: flex; justify-content: flex-start; }
.hero-photo-copy { width: min(100%, 600px); display: flex; flex-direction: column; align-items: flex-start; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #9C8E45; font-weight: 800; font-size: 1rem; }
.hero-eyebrow::after { content: ""; width: 56px; height: 2px; background: #BEAE59; border-radius: 2px; }
.hero-photo-title {
  margin: 0 0 16px; font-family: var(--font-family-title);
  font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1.35; font-weight: 900; color: #16404F;
}
html[lang="en"] .hero-photo-title { font-family: Georgia, "Times New Roman", serif; line-height: 1.18; font-size: clamp(2rem, 3.8vw, 3.2rem); }
.hero-photo-lead { margin: 0 0 28px; color: #56635B; font-size: 1.08rem; line-height: 1.95; max-width: 560px; }
.hero-photo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 28px;
  border-radius: 999px; background: #16404F; color: #fff; border: 1.5px solid #16404F;
  font-weight: 800; font-size: 1rem; text-decoration: none; transition: background .2s, transform .2s;
}
.hp-btn:hover, .hp-btn:focus-visible { background: #0F2F3B; color: #fff; transform: translateY(-1px); }
.hp-btn--ghost { background: rgba(255,255,255,.75); color: #2F3D36; border-color: rgba(62,76,66,.25); }
.hp-btn--ghost:hover, .hp-btn--ghost:focus-visible { background: #fff; color: #16404F; border-color: #16404F; }
.hp-btn--ghost i { font-size: 1.2rem; }
.hero-photo .hero-license { margin-top: 20px; background: rgba(255,253,247,.85); }

.qa2 {
  position: relative; z-index: 5; max-width: 1240px; margin: -118px auto 20px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.qa2-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 210px; padding: 24px 24px 22px;
  background: rgba(253,251,246,.94); border: 1px solid rgba(190,174,89,.22); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(62,76,66,.10); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-decoration: none; color: #16404F; transition: transform .2s, box-shadow .2s;
}
.qa2-card:hover, .qa2-card:focus-visible { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(62,76,66,.15); }
.qa2-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #E9E3D3; color: #16404F; font-size: 1.45rem; margin-bottom: 8px; }
.qa2-card strong { font-size: 1.22rem; font-weight: 900; }
.qa2-card small { color: #5F6B63; font-size: .9rem; line-height: 1.75; padding-inline-end: 44px; }
.qa2-arrow {
  position: absolute; bottom: 20px; inset-inline-end: 20px;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 1px solid rgba(62,76,66,.15); color: #16404F; transition: background .2s, color .2s;
}
.qa2-card:hover .qa2-arrow { background: #16404F; color: #fff; }

@media (max-width: 991.98px) {
  .hero-section.hero-photo { min-height: 0 !important; flex-direction: column; align-items: stretch !important; padding: var(--nav-h) 0 120px !important; }
  .hero-photo-img {
    position: relative; inset: auto; width: 100%; height: 300px; order: -1; margin-bottom: -40px;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 40%); mask-image: linear-gradient(to top, transparent 0%, #000 40%);
    -webkit-mask-composite: initial; mask-composite: initial;
  }
  .hero-photo-inner { justify-content: center; }
  .hero-photo-copy { align-items: center; text-align: center; }
  .hero-photo-actions { justify-content: center; }
  .qa2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -80px; }
}
@media (max-width: 560px) {
  .hero-photo-img { height: 240px; }
  .hp-btn { min-height: 48px; padding: 0 20px; font-size: .92rem; }
  .qa2 { gap: 10px; padding: 0 12px; }
  .qa2-card { min-height: 0; padding: 16px 14px 56px; align-items: center; text-align: center; }
  .qa2-card small { display: none; }
  .qa2-icon { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 4px; }
  .qa2-card strong { font-size: 1rem; }
  .qa2-arrow { inset-inline-end: 50%; transform: translateX(50%); bottom: 12px; width: 34px; height: 34px; }
  html[dir="ltr"] .qa2-arrow { transform: translateX(50%); }
}

/* ===== Home cleanup: merged Programs & Partnerships, unified buttons ===== */
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.institutional-info-card.pp-card {
  grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  align-items: start; gap: 14px 18px; padding: 28px; scroll-margin-top: 110px;
}
.pp-card .institutional-info-icon { grid-row: 1 / 3; }
.pp-card .institutional-info-copy { grid-row: 1 / 3; }
.pp-card .institutional-info-action { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
@media (max-width: 767.98px) {
  .pp-grid { grid-template-columns: 1fr; gap: 14px; }
  .pp-card .institutional-info-action { justify-self: stretch; }
}

/* One button colour across the whole page (petrol blue, matching the hero) */
.institutional-info-action,
.btn-form-submit { background: #16404F !important; color: #fff !important; border-radius: 999px; }
.institutional-info-action:hover,
.btn-form-submit:hover { background: #0F2F3B !important; color: #fff !important; }

/* Accessibility: text contrast at least 4.5:1 (WCAG AA) */
.ref-section-subtitle { color: #56625A !important; }
.footer-license { color: #515D55 !important; }
.footer-links a { color: #4A5A3B !important; }

/* ===== Shared chrome on inner pages: header, breadcrumb, active menu item, unified headings ===== */
.inner-page .site-chrome-hdr .official-logo-nav { display: block; height: 48px; width: auto; max-width: min(56vw, 340px); object-fit: contain; }
@media (max-width: 768px) { .inner-page .site-chrome-hdr .official-logo-nav { height: 39px; max-width: min(48vw, 190px); } }
.hdr .nav-link.active, .hdr .dropdown-item.active,
.hdr .hedayat-nav-group.is-current > .nav-dropdown-toggle { color: #16404F !important; font-weight: 900; }
.hdr .nav-link.active { box-shadow: inset 0 -2px 0 #BEAE59; }
.hdr .dropdown-item.active { background: #EAF1F3 !important; }

.crumbs { background: #FBF9F4; border-bottom: 1px solid rgba(190,174,89,.22); }
.crumbs ol { list-style: none; margin: 0 auto; padding: 12px 24px; max-width: 1180px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .86rem; font-weight: 700; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs a { color: #16404F; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover, .crumbs a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.crumbs li > span:not(.crumb-sep) { color: #56625A; }
.crumbs [aria-current="page"] { color: #56625A; font-weight: 800; }
.crumb-sep { color: #BEAE59; font-size: .8rem; }
@media (max-width: 560px) { .crumbs ol { padding: 10px 14px; font-size: .8rem; } }

.inner-page main h1 { color: #16404F !important; }
.inner-page main h2 { color: #16404F; }
.inner-page { padding-top: var(--nav-h); }
.inner-page .brand-ribbon { margin-top: 0; }
.not-found-home-btn { background: #16404F !important; border-color: #16404F !important; color: #fff !important; }
.not-found-home-btn:hover, .not-found-home-btn:focus-visible { background: #0F2F3B !important; color: #fff !important; }
/* Keep in-page section targets visible below the fixed header */
html { scroll-padding-top: calc(var(--nav-h) + 24px); }

/* ===== Fluid scaling on large screens =====
   Up to ~1440px the layout already flows with the screen. Above that, the whole interface
   (text, cards, buttons, spacing) scales up proportionally so big monitors don't show a small
   island of content in the middle. */
@media (min-width: 1500px) { html { zoom: 1.08; } }
@media (min-width: 1700px) { html { zoom: 1.18; } }
@media (min-width: 1900px) { html { zoom: 1.3; } }
@media (min-width: 2200px) { html { zoom: 1.48; } }
@media (min-width: 2500px) { html { zoom: 1.68; } }
@media (min-width: 2900px) { html { zoom: 1.95; } }
@media (min-width: 3400px) { html { zoom: 2.3; } }

/* =====================================================================
   REDESIGN v2 — calmer layout, unified chrome, dark mode, motion
   ===================================================================== */
:root {
  --nav-h: 76px;
  --petrol: #16404F; --petrol-dark: #0F2F3B; --gold: #BEAE59; --gold-dark: #9C8E45;
  --cream: #FBF9F4; --cream-2: #F5F1E8; --teal: #286583; --sage: #96BDBC;
  --ink: #2F3D36; --muted: #5B675F; --line: rgba(190,174,89,.26);
  --card: #FFFFFF; --r-lg: 22px; --r-md: 16px;
  --shadow-1: 0 1px 2px rgba(22,64,79,.05), 0 8px 24px rgba(22,64,79,.06);
  --shadow-2: 0 2px 6px rgba(22,64,79,.06), 0 18px 40px rgba(22,64,79,.12);
  /* The decorative font is reserved for the hero title only. */
  --font-family-title: 'The Year of Handicrafts', sans-serif;
}
body { background: var(--cream); color: var(--ink); }
.hero-photo-title { font-family: 'OYMandisa', serif !important; }
html[lang="en"] .hero-photo-title { font-family: Georgia, "Times New Roman", serif !important; }
.ref-section-title { font-family: var(--font-family-arabic) !important; font-weight: 900 !important; letter-spacing: 0; }
.ref-section-title::after, .ref-section-title::before { display: none !important; }
.brand-ribbon, .vertical-decor, .hero-beam, .footer-watermark { display: none !important; }

/* ---------- Header ---------- */
.site-chrome-hdr.hdr.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 1030;
  min-height: var(--nav-h); padding-block: 10px !important;
  background: rgba(251,249,244,.92) !important; border-bottom: 1px solid var(--line);
  box-shadow: none !important; transition: padding .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-chrome-hdr.hdr.navbar.scrolled { padding-block: 4px !important; background: rgba(251,249,244,.97) !important; box-shadow: 0 6px 24px rgba(22,64,79,.08) !important; }
.site-chrome-hdr .hdr-inner { max-width: 1280px; gap: 14px; flex-wrap: nowrap; }
.site-chrome-hdr .hdr-brand { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
.site-chrome-hdr .official-logo-nav,
.inner-page .site-chrome-hdr .official-logo-nav { height: 50px !important; width: auto !important; max-width: none !important; transition: height .25s ease; }
.site-chrome-hdr.scrolled .official-logo-nav { height: 40px !important; }
.brand-en-name { display: inline-flex; flex-direction: column; line-height: 1.15; padding-inline-start: 12px; border-inline-start: 2px solid var(--gold); color: var(--petrol); }
.brand-en-name strong { font-size: 1.02rem; font-weight: 900; letter-spacing: .02em; }
.brand-en-name span { font-size: .72rem; font-weight: 700; color: var(--muted); }
.site-chrome-hdr .navbar-nav .nav-link, .site-chrome-hdr .nav-dropdown-toggle { color: var(--ink) !important; font-size: .9rem !important; font-weight: 800 !important; padding: .6rem .7rem !important; border-radius: 10px; }
.site-chrome-hdr .navbar-nav .nav-link:hover, .site-chrome-hdr .nav-dropdown-toggle:hover,
.site-chrome-hdr .navbar-nav .nav-link:focus-visible { background: rgba(22,64,79,.06) !important; color: var(--petrol) !important; }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.hdr-mobile-actions { align-items: center; gap: 8px; margin-inline-start: auto; }
.hdr-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(22,64,79,.14);
  background: #fff; color: var(--petrol); font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.hdr-icon-btn:hover, .hdr-icon-btn:focus-visible { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.hdr-whatsapp { color: #1f8f55; }
.hdr-lang { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(22,64,79,.14); background: #fff; color: var(--petrol); font-weight: 800; font-size: .88rem; text-decoration: none; }
.hdr-lang:hover, .hdr-lang:focus-visible { border-color: var(--petrol); color: var(--petrol); }
.hdr-cta { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--petrol); color: #fff !important; font-weight: 900; font-size: .9rem; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(22,64,79,.2); transition: background .2s, transform .2s; }
.hdr-cta:hover, .hdr-cta:focus-visible { background: var(--petrol-dark); transform: translateY(-1px); }
.site-chrome-hdr .navbar-toggler { width: 42px; height: 42px; padding: 0; border-radius: 12px !important; border: 1px solid rgba(22,64,79,.18) !important; background: #fff !important; display: inline-grid; place-items: center; }
.site-chrome-hdr .navbar-toggler-icon { width: 22px; height: 22px; filter: none !important; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2316404F' stroke-linecap='round' stroke-width='2.4' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e") !important; }
@media (min-width: 992px) {
  .site-chrome-hdr .navbar-collapse { display: flex !important; align-items: center; }
  .site-chrome-hdr .navbar-nav { flex-direction: row; }
}
@media (min-width: 992px) and (max-width: 1240px) {
  .site-chrome-hdr .navbar-nav .nav-link, .site-chrome-hdr .nav-dropdown-toggle { font-size: .82rem !important; padding: .55rem .45rem !important; }
  .hdr-cta { padding: 0 14px; font-size: .84rem; }
  .hdr-lang { padding: 0 10px; }
  .site-chrome-hdr .official-logo-nav { height: 42px !important; }
  .hdr-whatsapp { display: none !important; }
}
@media (max-width: 991.98px) {
  :root { --nav-h: 64px; }
  .site-chrome-hdr.hdr.navbar, .site-chrome-hdr.hdr.navbar.scrolled { padding-block: 6px !important; }
  .site-chrome-hdr .official-logo-nav, .inner-page .site-chrome-hdr .official-logo-nav, .site-chrome-hdr.scrolled .official-logo-nav { height: 40px !important; }
  .brand-en-name strong { font-size: .9rem; } .brand-en-name span { font-size: .64rem; }
  .site-chrome-hdr .navbar-collapse { position: absolute; top: 100%; inset-inline: 0; background: var(--cream) !important; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(22,64,79,.12); padding: 10px 16px 18px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .site-chrome-hdr .navbar-nav { gap: 2px !important; }
  .site-chrome-hdr .navbar-nav .nav-link, .site-chrome-hdr .nav-dropdown-toggle { width: 100%; text-align: start; font-size: 1rem !important; padding: .8rem .6rem !important; }
  .hdr-actions { flex-wrap: wrap; gap: 8px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
  .hdr-actions .hdr-icon-btn { width: auto; padding: 0 14px; border-radius: 999px; font-size: .9rem; font-weight: 800; }
  .hdr-cta { flex: 1 1 100%; justify-content: center; height: 48px; }
}

/* ---------- Hero + compact quick-access cards ---------- */
.qa2.qa2--compact { margin-top: -84px; margin-bottom: 0; gap: 16px; max-width: 1100px; }
.qa2--compact .qa2-card { min-height: 0; padding: 22px 16px; align-items: center; justify-content: center; text-align: center; gap: 10px; border-radius: 18px; }
.qa2--compact .qa2-icon { margin: 0; width: 54px; height: 54px; background: #EEF3F4; transition: background .25s, color .25s, transform .25s; }
.qa2--compact .qa2-card strong { font-size: 1.05rem; }
.qa2--compact .qa2-card:hover .qa2-icon, .qa2--compact .qa2-card:focus-visible .qa2-icon { background: var(--petrol); color: #fff; transform: scale(1.06); }
@media (max-width: 560px) {
  .qa2.qa2--compact { margin-top: -70px; gap: 10px; }
  .qa2--compact .qa2-card { padding: 16px 10px; }
  .qa2--compact .qa2-card strong { font-size: .92rem; }
}

/* ---------- Home sections ---------- */
.home-section { position: relative; padding-block: clamp(72px, 9vw, 120px); scroll-margin-top: var(--nav-h); }
.home-section--tint { background: var(--cream-2); }
.home-section-inner { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.home-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.home-head h2 { margin: 0 0 12px; font-family: var(--font-family-arabic); font-size: clamp(1.75rem, 2.8vw, 2.4rem); font-weight: 900; line-height: 1.35; color: var(--petrol); }
.home-head p { margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.9; }
.home-section h3 { font-family: var(--font-family-arabic); color: var(--petrol); font-weight: 900; }
.home-section p { margin: 0; }

/* Shared card look */
.pillar, .goal-card, .value-card, .track-card, .partner-strip, .contact-form, .contact-line {
  background: var(--card); border: 1px solid rgba(22,64,79,.08); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.pillar:hover, .goal-card:hover, .track-card:hover, .contact-line:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(190,174,89,.45); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar { padding: 34px 30px; }
.pillar-icon, .goal-icon, .track-icon, .value-icon, .contact-icon {
  display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 16px; background: #EEF3F4; color: var(--petrol);
}
.pillar-icon { width: 58px; height: 58px; font-size: 1.5rem; margin-bottom: 20px; }
.pillar h3 { font-size: 1.3rem; margin: 0 0 10px; }
.pillar p { color: var(--muted); line-height: 1.95; }

.goals-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.goal-card { position: relative; padding: 30px 24px 28px; overflow: hidden; }
.goal-card::before { content: ""; position: absolute; top: 0; inset-inline: 24px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.goal-num { position: absolute; top: 18px; inset-inline-end: 20px; font-size: 2.2rem; font-weight: 900; line-height: 1; color: rgba(22,64,79,.08); }
.goal-icon { width: 52px; height: 52px; font-size: 1.35rem; margin-bottom: 18px; }
.goal-card h3 { font-size: 1.12rem; margin: 0 0 10px; }
.goal-card p { color: var(--muted); font-size: .95rem; line-height: 1.9; }

.values-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.value-card { position: relative; min-height: 230px; padding: 28px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: default; outline: none; }
.value-icon { width: 72px; height: 72px; border-radius: 50%; font-size: 1.9rem; margin-bottom: 16px; transition: background .3s, color .3s, transform .3s; }
.value-card h3 { font-size: 1.12rem; margin: 0; }
.value-card p { max-height: 0; opacity: 0; overflow: hidden; color: var(--muted); font-size: .9rem; line-height: 1.8; transition: max-height .4s ease, opacity .3s ease, margin .3s ease; }
.value-card:hover, .value-card:focus-visible, .value-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(190,174,89,.5); }
.value-card:hover .value-icon, .value-card:focus-visible .value-icon { background: var(--petrol); color: #fff; transform: scale(.9); }
.value-card:hover p, .value-card:focus-visible p, .value-card:focus-within p { max-height: 9em; opacity: 1; margin-top: 10px; }
.value-card:focus-visible { box-shadow: 0 0 0 3px rgba(40,101,131,.35), var(--shadow-2); }
@media (hover: none) { .value-card p { max-height: none; opacity: 1; margin-top: 10px; } .value-card { min-height: 0; } }

.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.track-card { display: flex; align-items: flex-start; gap: 20px; padding: 32px 30px; }
.track-icon { width: 60px; height: 60px; font-size: 1.6rem; background: var(--petrol); color: #fff; }
.track-card h3 { font-size: 1.3rem; margin: 0 0 8px; }
.track-audience { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; margin-bottom: 12px !important; border-radius: 999px; background: rgba(190,174,89,.16); color: #6B612F; font-size: .85rem; font-weight: 800; }
.track-card p:not(.track-audience) { color: var(--muted); line-height: 1.9; }
.pp-actions { display: flex; justify-content: center; margin-top: 32px; }
.partner-strip { margin-top: 40px; display: flex; align-items: center; gap: 20px; padding: 26px 30px; border: 1.5px dashed rgba(190,174,89,.6); box-shadow: none; background: rgba(255,255,255,.7); scroll-margin-top: calc(var(--nav-h) + 24px); }
.partner-strip .track-icon { background: #EEF3F4; color: var(--petrol); width: 54px; height: 54px; font-size: 1.4rem; }
.partner-strip > div { flex: 1 1 auto; }
.partner-strip h3 { font-size: 1.15rem; margin: 0 0 4px; }
.partner-strip p { color: var(--muted); }
.partner-strip .hp-btn { flex: 0 0 auto; }

.contact-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.home-section .contact-form { padding: 32px; max-width: none; margin: 0; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.home-section .form-label { font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.home-section .form-input, .home-section .form-textarea { border-radius: 12px; border: 1px solid rgba(22,64,79,.16); background: #FDFCF9; padding: .75rem .9rem; font-size: .95rem; }
.home-section .form-input:focus, .home-section .form-textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40,101,131,.15); background: #fff; }
.home-section .form-textarea { min-height: 150px; }
.home-section .btn-form-submit { min-height: 52px; font-size: 1rem; font-weight: 900; width: 100%; }
.contact-side { display: flex; flex-direction: column; gap: 12px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: inherit; text-decoration: none; }
.contact-line .contact-icon { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 14px; margin: 0; }
.contact-line > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.contact-line small { color: var(--muted); font-size: .8rem; font-weight: 700; }
.contact-line strong { color: var(--petrol); font-size: 1rem; font-weight: 900; overflow-wrap: anywhere; }
html[dir="rtl"] .contact-line strong[dir="ltr"] { text-align: right; }
.contact-line em { font-style: normal; color: var(--teal); font-size: .82rem; font-weight: 800; margin-top: 2px; }
.contact-social { padding: 18px 20px; border-radius: var(--r-lg); background: var(--cream-2); }
.contact-social > small { display: block; margin-bottom: 10px; color: var(--muted); font-weight: 800; }
.contact-social .official-social-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }

@media (max-width: 991.98px) {
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .goals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tracks, .contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-section-inner { padding-inline: 16px; }
  .goals-grid { grid-template-columns: 1fr; gap: 14px; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .values-grid .value-card:last-child { grid-column: 1 / -1; }
  .value-card { padding: 22px 14px; }
  .value-icon { width: 60px; height: 60px; font-size: 1.55rem; }
  .pillar, .track-card, .home-section .contact-form { padding: 24px 20px; }
  .track-card { flex-direction: column; gap: 14px; }
  .partner-strip { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .partner-strip .hp-btn { width: 100%; justify-content: center; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ---------- Motion ---------- */
html.js .reveal-on-scroll { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); transform: translateY(22px); }
html.js .reveal-on-scroll.is-visible { transform: none; }
html.js .reveal-on-scroll.is-visible:hover { transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Footer (columns + official info) ---------- */
.site-footer.site-footer-v2 { background: var(--petrol) !important; color: rgba(255,255,255,.82); padding: 0 !important; text-align: start; margin: 0; }
.footer-v2 { max-width: 1240px; margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 36px; }
.footer-v2 .footer-col h2 { font-family: var(--font-family-arabic); font-size: 1rem; font-weight: 900; color: var(--gold); margin: 0 0 16px; }
.footer-v2 ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-v2 a { color: rgba(255,255,255,.84); text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer-v2 a:hover, .footer-v2 a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-brand-col p { margin: 16px 0 18px; font-size: .9rem; line-height: 1.9; color: rgba(255,255,255,.75); }
.footer-v2-logo { height: 54px; width: auto; display: block; }
.footer-v2-ncnp { height: 52px; width: auto; display: block; background: #fff; padding: 6px 12px; border-radius: 12px; }
.footer-contact-col li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.footer-contact-col li i { color: var(--gold); }
html[dir="rtl"] .footer-contact-col a[dir="ltr"] { text-align: right; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 1rem; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--gold); color: var(--petrol); text-decoration: none; }
.footer-official { max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-official > div { display: flex; flex-direction: column; gap: 2px; }
.footer-official span { font-size: .74rem; color: rgba(255,255,255,.62); font-weight: 700; }
.footer-official strong { font-size: .9rem; color: #fff; font-weight: 800; }
html[dir="rtl"] .footer-official strong[dir="ltr"] { text-align: right; }
.footer-official a { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(190,174,89,.55); color: var(--gold); font-weight: 800; font-size: .86rem; text-decoration: none; }
.footer-official a:hover, .footer-official a:focus-visible { background: var(--gold); color: var(--petrol); }
.footer-bottom-v2 { background: var(--petrol-dark); padding: 16px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; font-size: .82rem; color: rgba(255,255,255,.66); }
@media (max-width: 1100px) { .footer-v2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand-col, .footer-contact-col { grid-column: span 3; } .footer-contact-col { grid-column: span 3; } }
@media (max-width: 600px) {
  .footer-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; padding: 44px 18px 28px; }
  .footer-brand-col, .footer-contact-col { grid-column: 1 / -1; }
  .footer-official { padding: 18px; gap: 14px 22px; }
  .footer-official > div { flex: 1 1 40%; }
  .footer-official a { margin-inline-start: 0; }
}

/* ---------- Floating tools: accessibility, back-to-top, feedback ---------- */
.float-tools { position: fixed; z-index: 1200; inset-inline-start: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; }
.float-btn, .feedback-launcher.feedback-launcher-v2 {
  width: 48px; height: 48px; min-height: 48px; padding: 0 !important; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(22,64,79,.14); background: #fff; color: var(--petrol);
  box-shadow: 0 8px 24px rgba(22,64,79,.16); cursor: pointer; transition: background .2s, color .2s, transform .2s; font-size: 1.2rem;
}
.float-btn:hover, .float-btn:focus-visible, .float-btn[aria-expanded="true"],
.feedback-launcher.feedback-launcher-v2:hover, .feedback-launcher.feedback-launcher-v2:focus-visible { background: var(--petrol); color: #fff; transform: translateY(-2px); }
.back-to-top[hidden] { display: none !important; }
.back-to-top { animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.a11y-wrap { position: relative; }
.a11y-panel { position: absolute; bottom: calc(100% + 10px); inset-inline-start: 0; width: 236px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(22,64,79,.1); box-shadow: var(--shadow-2); animation: fadeUp .2s ease; }
.a11y-panel[hidden] { display: none; }
.a11y-panel-title { margin: 0 0 10px; font-weight: 900; color: var(--petrol); font-size: .95rem; }
.a11y-panel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.a11y-panel button { min-height: 42px; border-radius: 12px; border: 1px solid rgba(22,64,79,.14); background: var(--cream); color: var(--petrol); font: inherit; font-weight: 900; cursor: pointer; }
.a11y-panel button:hover, .a11y-panel button:focus-visible, .a11y-panel button[aria-pressed="true"] { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.a11y-wide { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; font-size: .9rem !important; }
.feedback-launcher.feedback-launcher-v2 { position: fixed; inset-inline-end: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); gap: 0; }
.feedback-launcher-v2 .feedback-launcher-label { position: absolute; inset-inline-end: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 10px; background: var(--petrol); color: #fff; font-size: .82rem; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s; clip: auto !important; width: auto !important; height: auto !important; margin: 0 !important; overflow: visible !important; }
.feedback-launcher-v2:hover .feedback-launcher-label, .feedback-launcher-v2:focus-visible .feedback-launcher-label { opacity: 1; }

/* ---------- Mobile bottom bar ---------- */
.mobile-tabbar { display: none; }
@media (max-width: 991.98px) {
  .mobile-tabbar {
    position: fixed; z-index: 1100; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px max(6px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
    border-top: 1px solid rgba(22,64,79,.1); box-shadow: 0 -8px 24px rgba(22,64,79,.08);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .mobile-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 800; }
  .mobile-tabbar a i { font-size: 1.25rem; }
  .mobile-tabbar a.is-active { color: var(--petrol); background: rgba(22,64,79,.06); }
  .mobile-tabbar a.is-active::before { content: ""; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .float-tools { bottom: calc(78px + env(safe-area-inset-bottom)); inset-inline-start: 12px; }
  .feedback-launcher.feedback-launcher-v2 { bottom: calc(78px + env(safe-area-inset-bottom)) !important; inset-inline-end: 12px !important; width: 44px !important; height: 44px !important; min-height: 44px !important; }
  .float-btn { width: 44px; height: 44px; }
  .site-footer.site-footer-v2 { padding-bottom: 0 !important; }
}

/* ---------- Search dialog ---------- */
.search-dialog, .doc-viewer { border: 0; padding: 0; border-radius: 22px; box-shadow: 0 30px 80px rgba(15,47,59,.35); background: #fff; color: var(--ink); }
.search-dialog::backdrop, .doc-viewer::backdrop { background: rgba(15,47,59,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-dialog { width: min(680px, calc(100vw - 24px)); margin: 10vh auto auto; max-height: 78vh; overflow: hidden; display: none; flex-direction: column; }
.search-dialog[open] { display: flex; animation: fadeUp .2s ease; }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(22,64,79,.1); }
.search-box > i { color: var(--petrol); font-size: 1.2rem; }
.search-box input { flex: 1 1 auto; border: 0; outline: none; font: inherit; font-size: 1.08rem; padding: 8px 0; background: transparent; color: var(--ink); min-width: 0; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cream-2); color: var(--petrol); cursor: pointer; }
.search-results { overflow-y: auto; padding: 10px; }
.search-results ul { list-style: none; margin: 0; padding: 0; }
.search-results a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: inherit; outline: none; }
.search-results a:hover, .search-results a:focus-visible { background: #EEF3F4; }
.search-results .sr-type { font-size: .72rem; font-weight: 800; color: var(--gold-dark); }
.search-results strong { color: var(--petrol); font-size: 1rem; font-weight: 900; }
.search-results small { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.search-hint, .search-empty { margin: 0; padding: 26px 14px; text-align: center; color: var(--muted); font-size: .92rem; }

/* ---------- In-page PDF viewer ---------- */
.doc-viewer { width: min(1100px, 94vw); height: 90vh; max-height: 90vh; overflow: hidden; display: none; flex-direction: column; }
.doc-viewer[open] { display: flex; animation: fadeUp .2s ease; }
.doc-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--petrol); color: #fff; }
.doc-viewer-title { font-size: 1rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-viewer-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.doc-viewer-actions a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; font-weight: 800; font-size: .86rem; }
.doc-viewer-actions a.doc-viewer-download { background: var(--gold); color: var(--petrol); }
.doc-viewer-actions a:hover, .doc-viewer-actions a:focus-visible { background: #fff; color: var(--petrol); }
.doc-viewer-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.doc-viewer-frame { flex: 1 1 auto; width: 100%; border: 0; background: #e9ecef; }
@media (max-width: 700px) { .doc-viewer-open span { display: none; } }

/* ---------- Empty states ---------- */
.empty-state { max-width: 560px; margin: 8px auto; padding: 44px 28px; text-align: center; background: #fff; border: 1.5px dashed rgba(190,174,89,.55); border-radius: var(--r-lg); }
.empty-state-icon { width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: #EEF3F4; color: var(--petrol); font-size: 1.9rem; }
.empty-state h2, .empty-state h3 { font-size: 1.25rem; font-weight: 900; color: var(--petrol); margin: 0 0 8px; font-family: var(--font-family-arabic); }
.empty-state p { color: var(--muted); margin: 0 0 22px; line-height: 1.9; }
.empty-state .hp-btn { display: inline-flex; }

/* ---------- Satisfaction summary (participation page) ---------- */
.sat-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px 30px; margin: 0 0 28px; background: #fff; border-radius: var(--r-lg); border: 1px solid rgba(22,64,79,.08); box-shadow: var(--shadow-1); }
.sat-score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p, 0) * 1%), #EEF3F4 0); position: relative; }
.sat-score::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.sat-score > * { position: relative; }
.sat-score strong { font-size: 2.4rem; font-weight: 900; color: var(--petrol); line-height: 1; }
.sat-score span { font-size: .82rem; color: var(--muted); font-weight: 800; margin-top: 4px; }
.sat-copy h2 { font-size: 1.3rem; font-weight: 900; color: var(--petrol); margin: 0 0 6px; font-family: var(--font-family-arabic); }
.sat-copy p { color: var(--muted); margin: 0 0 14px; }
.sat-bars { display: grid; gap: 6px; }
.sat-bar { display: grid; grid-template-columns: 54px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: .82rem; font-weight: 800; color: var(--muted); }
.sat-bar-track { height: 8px; border-radius: 99px; background: #EEF3F4; overflow: hidden; }
.sat-bar-fill { height: 100%; border-radius: 99px; background: var(--petrol); width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.sat-summary[hidden] { display: none; }
@media (max-width: 600px) { .sat-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 18px; } .sat-bars { width: 100%; } }


@media (max-width: 991.98px) {
  .site-chrome-hdr.hdr.navbar > .container { display: flex !important; flex-wrap: nowrap; justify-content: space-between; padding: 0 14px !important; }
  .site-chrome-hdr .hdr-brand { width: auto !important; justify-content: flex-start !important; flex: 0 1 auto; }
  .site-chrome-hdr .official-logo-nav { max-width: 52vw !important; }
}
#about.home-section, #values.home-section, #contact.home-section { background: transparent; }
#goals.home-section, #programs.home-section { background: var(--cream-2); }

/* ---------- Interactive organizational chart (AR + EN, logical properties) ---------- */
.org-chart { background: #fff; border: 1px solid rgba(22,64,79,.08); border-radius: 24px; padding: 26px 20px 40px; box-shadow: var(--shadow-1); }
.org-hint { margin: 0 0 24px; text-align: center; color: var(--muted); font-size: .86rem; font-weight: 700; }
.org-hint i { color: var(--gold-dark); }
.org-scroll { overflow-x: auto; padding-bottom: 6px; }
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; }
.org-tree { display: flex; justify-content: center; min-width: max-content; margin: 0 auto; }
.org-tree ul { display: flex; justify-content: center; position: relative; margin-top: 28px; }
.org-tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 10px 0; }
.org-tree > li { padding-top: 0; }
.org-tree li::before { content: ""; position: absolute; top: 0; inset-inline-start: 50%; height: 28px; border-inline-start: 2px solid var(--sage); }
.org-tree > li::before { display: none; }
.org-tree ul::before { content: ""; position: absolute; top: -28px; inset-inline-start: 50%; height: 28px; border-inline-start: 2px solid var(--sage); }
.org-tree ul > li::after { content: ""; position: absolute; top: 0; inset-inline: 0; border-top: 2px solid var(--sage); }
.org-tree ul > li:first-child::after { inset-inline-start: 50%; }
.org-tree ul > li:last-child::after { inset-inline-end: 50%; }
.org-tree ul > li:only-child::after { display: none; }
.org-node {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-width: 150px; min-height: 54px; padding: 10px 20px; border-radius: 14px; font-weight: 900; line-height: 1.4; cursor: default;
  background: #fff; color: var(--petrol); border: 1.5px solid rgba(22,64,79,.18); outline: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
}
.org-node--d0, .org-node--d1 { background: var(--petrol); color: #fff; border-color: var(--petrol); min-width: 220px; font-size: 1.05rem; }
.org-node--d0 { box-shadow: 0 10px 24px rgba(22,64,79,.22); }
.org-node--d2 { background: #E3EFEE; border-color: var(--sage); min-width: 180px; }
.org-chart.has-focus .org-node:not(.is-lit) { opacity: .4; }
.org-node.is-lit { box-shadow: 0 0 0 3px rgba(190,174,89,.45); }
.org-node.is-active { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--gold), 0 12px 26px rgba(22,64,79,.18); }
.org-node:focus-visible { box-shadow: 0 0 0 3px var(--teal); }
@media (max-width: 820px) {
  .org-tree { min-width: 0; }
  .org-chart { padding: 22px 12px 28px; }
  .org-depts { flex-direction: column; align-items: stretch; gap: 0; }
  .org-depts::before { display: none; }
  .org-depts > li { padding-top: 22px; }
  .org-depts > li::after { display: none; }
  .org-depts > li::before { height: 22px; }
  .org-depts > li:first-child::before { top: -28px; height: 50px; }
  .org-node, .org-node--d0, .org-node--d1, .org-node--d2 { min-width: 0; width: min(100%, 270px); }
  .org-leaves .org-node { width: auto; min-width: 120px; }
}

.trustee-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trustee-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 22px; text-align: center; background: #fff; border: 1px solid rgba(22,64,79,.08); border-radius: 22px; box-shadow: var(--shadow-1); transition: transform .3s, box-shadow .3s; }
.trustee-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.trustee-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: #EEF3F4; color: var(--petrol); font-size: 1.6rem; margin-bottom: 6px; }
.trustee-card:first-child .trustee-icon { background: var(--petrol); color: var(--gold); }
.trustee-card strong { font-size: 1.12rem; color: var(--petrol); font-weight: 900; }
.trustee-role { color: var(--muted); font-size: .95rem; font-weight: 700; }
@media (max-width: 820px) { .trustee-cards { grid-template-columns: 1fr; } }
.sat-wrap { max-width: 1100px; margin: 34px auto 0; padding: 0 20px; position: relative; z-index: 2; }
.sat-wrap .sat-summary { margin: 0; }
.sat-score strong { font-variant-numeric: tabular-nums; }
.sat-bar > span:first-child { white-space: nowrap; }
.empty-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.empty-state-actions .hp-btn { min-height: 48px; padding: 0 22px; font-size: .95rem; }
.sat-bars { min-height: 150px; align-content: center; }
.sat-empty { margin: 0; padding: 18px; border-radius: 14px; background: var(--cream-2); color: var(--muted); font-weight: 700; }
.sat-empty a { color: var(--teal); font-weight: 900; }

/* Phone auto-scaling: keep form fields at a real 16px so iOS never zooms in when typing. */
@media (max-width: 599.98px) {
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: max(16px, calc(16px / var(--auto-zoom, 1))) !important; }
}

/* Programs & Partnerships: two equal cards */
.pp-card2 { align-items: stretch; }
.pp-card2 .pp-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; }
.pp-card2 .pp-body p { color: var(--muted); line-height: 1.95; margin-bottom: 22px; flex: 1 1 auto; }
.pp-card2 .hp-btn { min-height: 48px; padding: 0 24px; font-size: .95rem; }
.pp-card2#partners .track-icon { background: var(--gold); color: var(--petrol); }
#partners { scroll-margin-top: calc(var(--nav-h) + 24px); }
@media (max-width: 600px) { .pp-card2 .hp-btn { width: 100%; justify-content: center; } }

/* ---------- Dark mode: hand-tuned touches (the rest is generated into dark-theme.css) ---------- */
html[data-theme="dark"]:not(#_):not(#__) .site-footer.site-footer-v2 { background: #0A181D !important; }
html[data-theme="dark"]:not(#_):not(#__) .footer-bottom-v2 { background: #071216; }
html[data-theme="dark"]:not(#_):not(#__) .footer-official { border-top-color: rgba(255,255,255,.08); }
html[data-theme="dark"]:not(#_):not(#__) .footer-v2-ncnp { background: #fff !important; }
html[data-theme="dark"]:not(#_):not(#__) #about.home-section, html[data-theme="dark"]:not(#_):not(#__) #values.home-section, html[data-theme="dark"]:not(#_):not(#__) #contact.home-section { background: transparent !important; }
html[data-theme="dark"]:not(#_):not(#__) #goals.home-section, html[data-theme="dark"]:not(#_):not(#__) #programs.home-section { background: #122830 !important; }
html[data-theme="dark"]:not(#_):not(#__) .hero-photo-img { filter: brightness(.8) saturate(.9); }
html[data-theme="dark"]:not(#_):not(#__) .is-active, html[data-theme="dark"]:not(#_):not(#__) .is-active span, html[data-theme="dark"]:not(#_):not(#__) [aria-selected="true"], html[data-theme="dark"]:not(#_):not(#__) [aria-selected="true"] span { color: #fff !important; }
html[data-theme="dark"]:not(#_):not(#__) .mobile-tabbar a.is-active { color: #F1EAD0 !important; }
html[data-theme="dark"]:not(#_):not(#__) img:not([src$=".svg"]) { filter: none; }
html[data-theme="dark"]:not(#_):not(#__) .org-node--d0, html[data-theme="dark"]:not(#_):not(#__) .org-node--d1 { box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.sat-wrap { margin-bottom: 48px; }

/* ===== Hero v6: lighthouse illustration, headline placed inside the beam of light ===== */
.hero-section.hero-photo.hero-v6 {
  display: block; min-height: 0 !important; padding: 0 !important; aspect-ratio: 2000 / 1120;
  background: #F6F1E3 !important; overflow: hidden;
}
.hero-v6 .hero-photo-img {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; transform: none !important;
  background: url("/hero-beam.jpg") left center / cover no-repeat;
  background-image: image-set(url("/hero-beam.webp") type("image/webp"), url("/hero-beam.jpg") type("image/jpeg"));
  -webkit-mask-image: none !important; mask-image: none !important;
}
.hero-v6 .hero-photo-inner { position: absolute; inset: 0; max-width: none; padding: 0; display: block; }
.hero-v6 .hero-photo-copy {
  position: absolute; left: 70%; top: 17%; transform: translateX(-50%);
  width: min(40%, 560px); align-items: center; text-align: center;
}
.hero-v6 .hero-eyebrow { margin-bottom: 10px; }
.hero-v6 .hero-eyebrow::before { content: ""; width: 40px; height: 2px; background: #BEAE59; border-radius: 2px; }
.hero-v6 .hero-eyebrow::after { width: 40px; }
.hero-v6 .hero-photo-title {
  margin: 0 0 14px; font-size: clamp(1.9rem, 3.9vw, 3.4rem); line-height: 1.45; color: #16404F;
  text-shadow: 0 0 28px rgba(255, 248, 225, .95), 0 0 2px rgba(255, 248, 225, .8); text-wrap: balance;
}
html[lang="en"] .hero-v6 .hero-photo-title { font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: 1.2; }
.hero-v6 .hero-photo-lead { margin: 0 0 22px; font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.9; color: #3F4D45; text-wrap: balance; }
.hero-v6 .hero-photo-actions { justify-content: center; }
.hero-v6 + .qa2.qa2--compact { margin-top: -70px; }

@media (max-width: 1180px) and (min-width: 992px) {
  .hero-v6 .hero-photo-copy { top: 13%; width: 44%; }
  .hero-v6 .hero-photo-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-v6 .hp-btn { min-height: 48px; padding: 0 20px; font-size: .92rem; }
}

/* Phones & tablets: the full illustration on top with the headline in its beam; the rest below it. */
@media (max-width: 991.98px) {
  .hero-section.hero-photo.hero-v6 { aspect-ratio: auto; padding: var(--nav-h) 0 110px !important; display: flex; flex-direction: column; background: linear-gradient(180deg, #F6F1E3 0%, #FBF9F4 70%) !important; }
  .hero-v6 .hero-photo-img { position: relative; inset: auto; height: auto; aspect-ratio: 2000 / 1120; order: 0;
    background-image: image-set(url("/hero-beam-sm.webp") type("image/webp"), url("/hero-beam.jpg") type("image/jpeg")); }
  .hero-v6 .hero-photo-inner { position: static; padding: 0 20px; }
  .hero-v6 .hero-photo-copy { position: static; transform: none; width: 100%; margin: 18px auto 0; max-width: 560px; }
  .hero-v6 .hero-photo-title {
    position: absolute; left: 70%; top: calc(var(--nav-h) + 18.5vw); transform: translate(-50%, -50%);
    width: 46%; margin: 0; font-size: clamp(1rem, 5.1vw, 2.3rem); line-height: 1.45;
  }
  html[lang="en"] .hero-v6 .hero-photo-title { font-size: clamp(.95rem, 4.3vw, 2rem); line-height: 1.2; }
  .hero-v6 .hero-eyebrow { margin-bottom: 8px; }
  .hero-v6 .hero-photo-lead { font-size: 1rem; }
  .hero-v6 + .qa2.qa2--compact { margin-top: -80px; }
}

html[data-theme="dark"]:not(#_):not(#__) .hero-v6 { background: #0E1F26 !important; }
html[data-theme="dark"]:not(#_):not(#__) .hero-v6 .hero-photo-img { filter: none; }
@media (min-width: 992px) {
  html[data-theme="dark"]:not(#_):not(#__) .hero-v6 .hero-photo-title,
  html[data-theme="dark"]:not(#_):not(#__) .hero-v6 .hero-eyebrow { color: #16404F !important; }
  html[data-theme="dark"]:not(#_):not(#__) .hero-v6 .hero-eyebrow { color: #8A7C36 !important; }
  html[data-theme="dark"]:not(#_):not(#__) .hero-v6 .hero-photo-lead { color: #3F4D45 !important; }
  html[data-theme="dark"]:not(#_):not(#__) .hero-v6 .hp-btn--ghost { background: rgba(255,255,255,.8) !important; color: #2F3D36 !important; border-color: rgba(62,76,66,.25) !important; }
  html[data-theme="dark"]:not(#_):not(#__) .hero-v6 .hp-btn:not(.hp-btn--ghost) { background: #16404F !important; color: #fff !important; border-color: #16404F !important; }
}
@media (max-width: 991.98px) {
  html[data-theme="dark"]:not(#_):not(#__) .hero-v6 .hero-photo-title { color: #16404F !important; }
  html[data-theme="dark"]:not(#_):not(#__) .hero-section.hero-photo.hero-v6 { background: #0E1F26 !important; }
}
@media (max-width: 1180px) and (min-width: 992px) { .hero-v6 .hero-photo-copy { top: 16%; } }
html[lang="en"] .hero-v6 .hero-photo-copy { width: min(46%, 600px); }
html[lang="en"] .hero-v6 .hero-photo-title { font-size: clamp(1.6rem, 2.9vw, 2.6rem); }
.hdr-lang, .hdr-cta { white-space: nowrap; }
@media (min-width: 992px) {
  html[lang="en"] .site-chrome-hdr .navbar-nav .nav-link, html[lang="en"] .site-chrome-hdr .nav-dropdown-toggle { font-size: .84rem !important; padding: .55rem .5rem !important; }
}
@media (min-width: 992px) { html[lang="en"] .hdr-whatsapp { display: none !important; } }
@media (min-width: 992px) and (max-width: 1180px) { html[lang="en"] .brand-en-name { display: none; } }
.trustees-figure { margin: 0; padding: 14px; background: #fff; border: 1px solid rgba(22,64,79,.08); border-radius: 24px; box-shadow: var(--shadow-1); }
.trustees-figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
@media (max-width: 720px) { .trustees-figure { padding: 6px; border-radius: 16px; } .trustees-figure img { border-radius: 11px; } }
