html {
  font-size: 14px;
  font-family: "ManchetteFine", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

:root {

  --nps-nav: #363255;
  --nps-nav-text: #ffffff;
  --nps-accent: #8f7494;
  --nps-brand-1: #cfbaad;
  --nps-brand-2: #e6e1e3;
  --nps-brand-3: #8f7494;
  --nps-brand-4: #605e88;
  --nps-white: #ffffff;
  --nps-page-bg: #ffffff;
  --nps-page-bg-2: linear-gradient(90deg,
      rgba(254, 234, 183, 0.2) 0%,
      rgba(91, 99, 151, 0.2) 35%,
      rgba(217, 209, 220, 0.2) 70%,
      rgba(142, 113, 148, 0.2) 100%);
  --nps-surface-1: #ffffff;
  --nps-surface-2: #f5f3f7;
  --nps-text-1: #2f2b4a;
  --nps-text-2: #615975;
  --nps-border-soft: #ece4ed;

  /* نصوص/عناوين على أسطح فاتحة — لا تُستخدم لخلفية الشريط */
  --nps-foreground: #605e88;
  --nps-link: #5d5c87;
  --app-surface: #ffffff;
  --app-muted: #5f5771;
  --app-border: rgba(54, 50, 85, 0.12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  /* خلفية عامة بنفسجية دافئة بدل الأسود القاتم */
  --nps-page-bg: #353255;
  --nps-page-bg-2: #615e89;
  --nps-nav: #2f2c48;
  --nps-nav-text: #faf8ff;
  --nps-accent: #c4a8d4;
  --nps-brand-1: #c9b8a8;
  --nps-brand-2: #dcd7e8;
  --nps-brand-3: #f0a0a2;
  --nps-brand-4: #4d4872;
  --nps-surface-1: #3e395c;
  --nps-surface-2: #46406a;
  --nps-text-1: #f7f5ff;
  --nps-text-2: #d8d2ec;
  --nps-border-soft: #5a5478;
  --nps-foreground: #ffffff;
  --nps-link: #d4b8e8;
  --app-surface: #3e395c;
  --app-muted: #c9c3df;
  --app-border: rgba(180, 170, 220, 0.22);
  /* Bootstrap: نصوص فاتحة على خلفية داكنة */
  --bs-body-color: var(--nps-text-1);
  --bs-body-bg: var(--nps-page-bg);
  --bs-secondary-color: var(--nps-text-2);
  --bs-tertiary-color: color-mix(in srgb, var(--nps-text-2) 70%, transparent);
  --bs-emphasis-color: var(--nps-text-1);
  --bs-border-color: var(--nps-border-soft);
  --bs-heading-color: var(--nps-foreground);
}



.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem white;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: "ManchetteFine", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--nps-page-bg, #ffffff);
  color: var(--nps-text-1, #2f2b4a);
}

.site-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

.site-page>main[role="main"] {
  flex: 1 1 auto;
  min-width: 0;
}

.site-page>footer {
  flex: 0 0 auto;
}

.hero-sec-title {
  color: color-mix(in lab, #F4C390 65%, white 35%);
  font-weight: lighter;
}

/* محاذاة نهاية السطر (أول نصوص الـhero) */
.index-hero-headings {
  text-align: start;
}

.hero-quote {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  line-height: 1.6;
}

/* مطلق داخل الـhero: أسفل يسار الإطار */
.hero-quote--positioned {
  position: absolute;
  z-index: 1;
  display: block;
  width: 310px;
  max-width: min(92vw, 26rem);
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  inset-inline-end: clamp(0.75rem, 3vw, 1.5rem);
  inset-inline-start: auto;
  top: auto;
  color: #fff;
}

.hero-quote__box {
  width: 100%;
  padding-bottom: 50px;
}

.hero-quote__text {
  text-align: start;
  min-width: 0;
  font-size: 1.5rem;
}

.hero-quote__bottom-art {
  position: absolute;
  inset-inline-end: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 160px;
  height: auto;
  pointer-events: none;
}

.hero-quote__decor svg {
  display: block;
  width: 48px;
  height: auto;
}

.hero-quote__decor.first svg {
  position: absolute !important;
  inset-inline-start: 0;
  top: 0;
}

.hero-quote__decor.second svg {
  position: absolute !important;
  inset-inline-end: 90px;
  bottom: 50px;
}


.index-hero-inner {
  position: relative;
  z-index: 0;
  z-index: 10;
  margin-inline: auto !important;
  /* مساحة آمنة حتى لا يتداخل المحتوى مع الجملة المطلقة في الأسفل */
  padding-bottom: clamp(4.5rem, 14vh, 7rem);
}

/* Desktop Styles */
.index-hero-section {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(120deg, rgba(54, 50, 85, 0.68), rgba(54, 50, 85, 0.45)),
    url('/img/hero-inlcude.png'),
    url('/img/hero.png');
  background-size: cover, 30% auto, cover;
  background-position: center, left bottom, center;
  background-repeat: no-repeat;
  height: 83vh;
}

/* يبقى الشريط فوق الـhero والعناصر ذات z-index (مثل hero-quote) */
.navbar-container {
  z-index: 1030;
}

/* صفحات غير الرئيسية: مسافة علوية تحت الشريط الثابت — يُحدَّث الارتفاع بدقة في site.js */
main.site-main--below-fixed-nav {
  padding-block: 3.5rem;
}

@media (max-width: 767.99px) {
  main.site-main--below-fixed-nav {
    padding-top: 2.5rem;
  }

  .index-hero-inner {
    margin-inline: auto !important;
  }
}

.navbar {
  background: var(--nps-nav, #363255) !important;
  box-shadow: 4px 4px 5px 0px #00000033;
}

.navbar-brand img {
  height: 50px !important;
}

/* Mobile Styles */
@media (max-width: 767.99px) {
  .navbar-collapse {
    padding: 10px !important;
  }

  .navbar-brand img {
    height: 2.5rem !important;
  }

  .hero-quote__bottom-art {

    width: 140px;

  }

  .index-hero-section {
    height: 50vh;


  }

  .navbar-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;

  }

  .navbar {
    border-start-start-radius: 0 !important;
    border-start-end-radius: 0 !important;
    font-size: 14px !important;
  }

  .hero-quote--positioned {
    width: 240px;
  }

  .hero-quote__decor.second svg {
    inset-inline-end: 40px;
  }

}



.home-posthero__section {
  padding: clamp(2.25rem, 5vw, 4rem) 0;
}

.home-posthero__section:nth-child(even) {
  background: var(--nps-page-bg-2);
}

/* .home-posthero__section:nth-child(even) {
  background: #fbf8fa;
} */

.home-posthero__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.home-posthero__title {
  margin: 0 0 0.5rem;
  color: var(--nps-foreground, #363255);
  font-weight: 700;
}

.home-posthero__link {
  color: var(--nps-brand-1);
  text-decoration: none;
  font-weight: 700;
}

.home-posthero__link:hover,
.home-posthero__link:focus {
  text-decoration: underline;
  color: color-mix(in srgb, var(--nps-brand-1) 80%, #000 20%);
}

/* المركز الإعلامي — تبويبات + شبكة بطاقات */
.home-posthero__section--media-center {
  color: var(--nps-text-1, #2f2b4a);
}

.home-media-center__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.home-media-center__head .home-posthero__about-title {
  margin-bottom: 0;
}

.home-media-center__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--nps-surface-2, #e8e3e6) 92%, var(--nps-brand-1, #d0bdae) 8%);
}

.home-media-center__tab {
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0.5rem 1rem;
  border-radius: 7px;
  color: var(--nps-text-2, #555468);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.home-media-center__tab:hover {
  color: var(--nps-foreground, #363255);
  background: rgba(255, 255, 255, 0.55);
}

.home-media-center__tab--active {
  color: var(--nps-foreground, #363255);
  background: var(--nps-surface-1, #fff);
  box-shadow: 0 1px 4px rgba(93, 92, 135, 0.15);
}

.home-media-center__tab:focus-visible {
  outline: 2px solid var(--nps-accent, #927396);
  outline-offset: 2px;
}

.home-media-center__panel {
  outline: none;
}

.home-media-center__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hero-sec-title {
  width: 75%;
}

@media (max-width: 575.99px) {

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-sec-title {
    font-size: 1.2rem;
  }


}

@media (min-width: 576px) {
  .home-media-center__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }

}

@media (min-width: 992px) {
  .hero-sec-title {
    width: 75%;
  }

  .home-media-center__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.home-media-center__card {
  min-height: clamp(260px, 34vw, 380px);
}

.home-media-center__card .home-posthero__news-content {
  display: flex;
  flex-direction: column;
}

.home-media-center__card-cta {
  margin-top: auto;
  padding-top: 0.35rem;
  align-self: flex-start;
  font-size: 0.9rem;
}

/* بطاقات الأخبار/التقارير/الفعاليات — الكارد بالكامل قابل للنقر */
a.site-content-list__card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.site-content-list__card:hover,
a.site-content-list__card:focus-visible {
  color: inherit;
  text-decoration: none;
}

a.site-content-list__card:focus-visible {
  outline: 2px solid var(--nps-brand-1, #6b4d84);
  outline-offset: 2px;
}

/* زر التشغيل في قائمة الفيديو */
a.site-content-list__video-play,
button.site-content-list__video-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: none;
  padding: 0;
}

.site-content-list__video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.site-content-list__video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent var(--nps-nav, #363255);
}

/* زر التشغيل في بطاقة الفيديو */
a.home-media-center__play,
button.home-media-center__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: none;
  padding: 0;
}

.home-media-center__footer {
  text-align: center;
  margin-top: 1.75rem;
}

.home-media-center__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.35rem;
  border-radius: 7px;
  border: 1.5px solid var(--nps-foreground, #363255);
  color: var(--nps-foreground, #363255);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.home-media-center__more:hover,
.home-media-center__more:focus {
  background: var(--nps-nav, #363255);
  color: #fff;
}

.home-media-center__card--video .home-posthero__news-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-media-center__play {
  position: relative;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.home-media-center__play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent var(--nps-nav, #363255);
}

.home-programs-swiper,
.home-media-swiper {
  padding: 0.4rem 0.25rem 0.9rem;
  overflow: visible;
}

.home-programs-swiper .swiper-wrapper,
.home-media-swiper .swiper-wrapper {
  align-items: stretch;
}

/* التأثير على الكارد داخل السلايد وليس على .swiper-slide حتى لا يتعارض مع تحويلات Swiper */
.home-programs-swiper .swiper-slide,
.home-media-swiper .swiper-slide {
  height: auto;
}

/* روابط بطاقات البرامج في الصفحة الرئيسية — الأنماط التفصيلية في home-page.component.scss */
.home-programs__grid .home-program-card__link {
  min-height: 25rem !important;
  display: block;
  height: 100%;
}

.home-programs-swiper .home-program-card__link {
  min-height: 25rem !important;
  display: block;
  height: 100%;
}


.home-media-swiper .swiper-slide-prev .home-posthero__news-card,
.home-media-swiper .swiper-slide-next .home-posthero__news-card {
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
  transform: scale(0.9);
  transform-origin: center center;
  opacity: 0.85;
  filter: saturate(0.88);
}

.home-media-swiper .swiper-slide-active .home-posthero__news-card {
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
  transform: scale(1);
  transform-origin: center center;
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 14px 32px rgba(54, 50, 85, 0.18);
  position: relative;
  z-index: 1;
}

.home-programs-swiper .swiper-slide-prev .home-program-card,
.home-programs-swiper .swiper-slide-next .home-program-card {
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
  transform: scale(0.94);
  transform-origin: center center;
  opacity: 0.88;
  filter: saturate(0.92);
}

.home-programs-swiper .swiper-slide-active .home-program-card {
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
  transform: scale(1);
  transform-origin: center center;
  opacity: 1;
  filter: saturate(1);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 65%, transparent),
    0 18px 40px color-mix(in srgb, var(--nps-nav, #363255) 16%, transparent);
  position: relative;
  z-index: 1;
}

.home-posthero__news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(280px, 38vw, 400px);
  border-radius: 16px;
  overflow: hidden;
  background: #2a2848;
  border: 1px solid #eee8ef;
  box-shadow: 0 8px 20px rgba(54, 50, 85, 0.08);
  height: 100%;
}

/* الخلفية/الصورة تغطي جسم الكارد بالكامل */
.home-posthero__news-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #d8cfd4;
  /* الحفاظ على نسبة أبعاد الصورة (بدون تمدد/تشويه) + إظهار المنتصف عند القص */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* صورة حقيقية داخل الكارد: نفس السلوك — cover + توسيط، النسبة ثابتة */
.home-posthero__news-image>img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* طبقة فوق الصورة — على كامل مساحة الكارد */
.home-posthero__news-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(201, 201, 215, 0.34) 20%, rgba(156, 155, 181, 0.62) 40%, rgba(124, 122, 157, 0.83) 58%, rgba(104, 103, 143, 0.96) 74%, rgba(98, 96, 138, 1) 86%)
}

/* النص في الأسفل فقط، فوق التدرج */
.home-posthero__news-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1rem 1.1rem 1.15rem;
  max-width: 100%;
}

.home-posthero__news-date {
  margin: 0 0 0.25rem;
  color: var(--nps-white, #fff);
  font-size: 0.9rem;
}

.home-posthero__news-title {
  margin: 0 0 0.5rem;
  color: var(--nps-white, #fff);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.home-posthero__news-text {
  margin: 0;
  color: var(--nps-white, #fff);
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* من نحن — صورة + فلتر يغطيان كامل home-posthero__about-row؛ النص فوق الخلفية على اليمين (RTL) */
.home-posthero__about-shell {
  position: relative;
  overflow: hidden;
  border-radius: clamp(1.25rem, 3vw, 3.75rem);
  background: #25263c;
  isolation: isolate;
  box-shadow: 0 8px 28px rgba(54, 50, 85, 0.12);
}

.home-posthero__about-shell-inner {
  position: relative;
  z-index: 2;
  /* لضمان أن النص يظهر فوق طبقات الخلفية */
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.home-posthero__about-shell-photo,
.home-posthero__about-shell-filter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.home-posthero__about-shell-photo {
  z-index: 0;
}

.home-posthero__about-shell-filter {
  z-index: 1;
}

.home-posthero__about-title {
  margin: 0;
  text-align: start;
  color: #f5f3fa;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  position: relative;
  display: inline-block;
  padding: 0;
}

.home-posthero__about-title.home-posthero__about-title--surface {
  color: var(--nps-foreground, #363255);
  text-shadow: none;
}

.home-posthero__section-head .home-posthero__about-title {
  margin-bottom: 0;
}


.home-posthero__about-title-text {
  position: relative;
  z-index: 1;
}

.home-posthero__about-row {
  margin-top: 20px;
  min-height: min(28rem, 70vw);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* في RTL = محاذاة لليمين */
  padding: 0;
}

.home-posthero__about-text {
  position: relative;
  z-index: 1;
  max-width: min(100%, 28rem);
  flex: 0 1 auto;
}

.home-posthero__about-text p {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 2;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.home-posthero__vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-posthero__vm-card {
  margin: auto;
  display: flex;
  max-width: 500px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nps-border-soft, #ece4ed);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(54, 50, 85, 0.06);
  background: var(--nps-surface-1, #fff);
}

.home-posthero__vm-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--nps-surface-2, #e8e4ec);
}

.home-posthero__vm-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47, 43, 74, 0.6), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.home-posthero__vm-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* فوق صورة الكارد: نفس نمط «من نحن؟» مع موضع مطلق عند بداية السطر (RTL) */
.home-posthero__vm-card-title.home-posthero__about-title {
  position: absolute;
  bottom: 1rem;
  inset-inline-start: 0;
  margin: 0;
  padding: 1rem 1.25rem;
  z-index: 2;
}

.home-title {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.home-title img {
  width: 2rem !important;
  height: 2rem !important;
}

.home-posthero__vm-card-body {
  flex: 1 1 auto;
  background: var(--nps-surface-1, #fff);
  padding: 1.25rem;
}

.home-posthero__vm-card-body p {
  margin: 0;
  color: var(--nps-text-2, #5f5771);
  line-height: 1.9;
  font-size: 1.25rem;
}

.home-posthero__values-intro {
  background: var(--nps-surface-2, #f4f4f4);
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.home-posthero__values-intro p {
  margin: 0;
  color: var(--nps-text-1, #000);
  line-height: 1.9;
}

.home-posthero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-posthero__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: var(--nps-foreground, #363255);
  background: color-mix(in srgb, var(--nps-surface-2, #f2ecf4) 92%, var(--nps-brand-1, #d0bdae) 8%);
  border: 1px solid var(--nps-border-soft, #e7dce9);
  font-weight: 700;
}

.home-posthero__chip--stack {
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 0;
}

.home-posthero__chip-icon {
  display: block;
  width: 70%;
  object-fit: contain;
}

.home-posthero__chip-label {
  display: block;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .home-posthero__section--values .home-posthero__chips {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .home-posthero__section--values .home-posthero__chip--stack {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 767.99px) {
  .home-posthero__section--values .home-posthero__chips {
    flex-direction: column;
    align-items: stretch;
  }

  .home-title img {
    height: 1.5rem!important;
    width: 1.5rem!important;
  }

  .index-hero-section {

    background-size: cover, 420px auto, cover;
    background-position: center, -9vh bottom, center;
  }

  .home-posthero__chip-icon {
    width: 40%;
  }
}

@media (max-width: 575px) {
  .index-hero-section {
    background-size: cover, 100% auto, cover;
    background-position: center, -25vw bottom, center;
    background-repeat: no-repeat;
  }
}

.home-posthero__goals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-posthero__goal-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  background: var(--nps-surface-1, #fff);
  border: 1px solid var(--nps-border-soft, #ece4ed);
  border-radius: 18px;
  padding: 1rem;
}

.home-posthero__goal-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px dashed rgba(54, 50, 85, 0.18);
  background: #515074;
}

.home-posthero__goal-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  object-position: center;
}

.home-posthero__goal-card-text {
  margin: 0;
  color: var(--nps-text-2, #615975);
  font-size: 1.05rem;
  line-height: 1.8;
}

.home-posthero__section--chairman-message {
  position: relative;
  overflow: hidden;
}

.home-posthero__chairman-shell {
  position: relative;
  min-height: clamp(260px, 34vw, 420px);
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.home-posthero__chairman-photo {
  position: absolute;
  inset-inline-end: 0;
  top: clamp(-5rem, -8vw, -2.5rem);
  bottom: 0px;
  height: calc(100% + 8rem);
  justify-self: center;
  object-fit: contain;
  object-position: end bottom;
}

.home-posthero__chairman-text {
  width: 45%;
  text-align: start;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.home-posthero__chairman-text p {
  margin: 0;
  color: var(--nps-text-1, #2f2b4a);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 2;
}

.home-posthero__chairman-name {
  color: var(--nps-brand-1)!important;
}

.home-partners-swiper {
  margin-top: 1rem;
  overflow: hidden;
}

.home-partners-swiper .swiper-wrapper {
  align-items: stretch;
}

.home-partners-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.home-posthero__partner-card {
  border-radius: 14px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
}

.home-posthero__partner-card img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.home-posthero__section--contact {
  background: #5d5c87 !important;
  color: #f5f3fa;
  position: relative;
  overflow: hidden;
}

.home-posthero__contact-form-wrap {
  text-align: start;
}

.home-posthero__contact-heading.home-posthero__about-title {
  margin: 0 0 1.25rem;
  color: #f5f3fa;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.home-posthero__contact-form {
  max-width: 32rem;
}

/* Decorative strip: pinned to inline-end of the section so it spans full section height (not centered by grid padding) */
.home-posthero__contact-art {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(38vw, 320px);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 0;
}

.home-posthero__contact-art img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: 100% 50%;
}

@media (min-width: 992px) {
  .home-posthero__section--contact .container {
    padding-inline-end: calc(min(38vw, 320px) + var(--bs-gutter-x, 0.75rem));
  }
}

/* من 768px حتى تحت الديسكتوب الكبير (3 كاردات في السلايدر): تصغير طفيف للكارد */
@media (max-width: 1199.98px) and (min-width: 768px) {
  .home-posthero__section--media-center .home-posthero__news-card {
    min-height: clamp(240px, 32vw, 340px);
    border-radius: 14px;
  }

  .index-hero-section {
    background-size: cover, 75% auto, cover;
    background-position: center, -75% bottom, center;
  }

  .index-hero-inner {
    margin-inline: 5% !important;

  }

  .home-posthero__section--programs .home-posthero__news-card {
    min-height: clamp(240px, 32vw, 340px);
    border-radius: 14px;
  }

  .home-posthero__section--media-center .home-posthero__news-content {
    padding: 0.85rem 0.95rem 1rem;
  }

  .home-posthero__section--programs .home-posthero__news-content {
    padding: 0.85rem 0.95rem 1rem;
  }

  .home-posthero__section--media-center .home-posthero__news-title {
    font-size: 1rem;
  }

  .home-posthero__section--programs .home-posthero__news-title {
    font-size: 1rem;
  }

  .home-posthero__section--media-center .home-posthero__news-text {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .home-posthero__section--programs .home-posthero__news-text {
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

@media (min-width: 1200px) {
  .index-hero-section {
    background-size: cover, auto 85%, cover;
    background-position: center, calc(-320px + 6vw) bottom, center;
  }
}

@media (min-width: 1400px) {
  .index-hero-section {
    background-size: cover, auto 100%, cover;
    background-position: center, calc(-400px + 12vw) bottom, center;
  }
}

@media (max-width: 991.98px) {

  .home-posthero__contact-form {
    max-width: none;
  }

  .home-posthero__contact-form-wrap {
    width: 100%;
  }

  .home-posthero__about-text {
    max-width: 300px;
  }

  .home-posthero__goals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-posthero__contact-art {
    display: none;
  }

  .home-posthero__vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .home-posthero__chairman-shell {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-posthero__chairman-photo {
    position: static;
    width: 65%;
    height: auto;
  }

  .home-posthero__chairman-text {
    width: 100%;
  }

}

@media (max-width: 767.99px) {

  .home-posthero__section-head {
    align-items: flex-start;
  }

  /* قص أفقي على مستوى القسم لمنع أي overflow يصنع أطراف بيضاء */
  .home-posthero__section--programs,
  .home-posthero__section--media-center {
    overflow-x: clip;
  }

  @supports not (overflow: clip) {

    .home-posthero__section--programs,
    .home-posthero__section--media-center {
      overflow-x: hidden;
    }
  }

  .home-posthero__section--programs .home-programs-swiper,
  .home-posthero__section--media-center .home-media-swiper {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    box-sizing: border-box;
    padding: 0.4rem calc(50vw - 50% + 0.25rem) 0.9rem;
    overflow: visible;
  }

  .home-posthero__about-row {
    min-height: min(22rem, 70vw);
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
  }

  .home-posthero__about-text {
    max-width: 180px;
  }

  .home-posthero__goals-grid {
    grid-template-columns: 1fr;
  }

  .home-posthero__partner-card {
    min-height: 82px;
  }

  .home-posthero__contact-form {
    margin-inline-start: 0;
    max-width: none;
  }

  .home-media-swiper .swiper-slide .home-posthero__news-card,
  .home-media-swiper .swiper-slide-active .home-posthero__news-card,
  .home-media-swiper .swiper-slide-prev .home-posthero__news-card,
  .home-media-swiper .swiper-slide-next .home-posthero__news-card {
    transform: scale(1);
    opacity: 1;
    filter: none;
  }

  .home-posthero__section--media-center .home-posthero__news-card {
    min-height: clamp(240px, 68vw, 320px);
    border-radius: 14px;
  }

  .home-posthero__section--programs .home-posthero__news-card {
    min-height: clamp(240px, 68vw, 320px);
    border-radius: 14px;
  }

  .home-posthero__section--media-center .home-posthero__news-content {
    padding: 0.85rem 0.9rem 1rem;
  }

  .home-posthero__section--programs .home-posthero__news-content {
    padding: 0.85rem 0.9rem 1rem;
  }

  .home-posthero__section--media-center .home-posthero__news-title {
    font-size: 0.98rem;
  }

  .home-posthero__section--programs .home-posthero__news-title {
    font-size: 0.98rem;
  }

  .home-posthero__section--media-center .home-posthero__news-text {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .home-posthero__section--programs .home-posthero__news-text {
    font-size: 0.88rem;
    line-height: 1.65;
  }
}

/* شريط نهاية الفوتر: لون أساسي + نمط SVG يتكرر أفقياً */
.footer-main {
  background: var(--nps-brand-4);
  color: var(--nps-brand-1);
  padding: clamp(1rem, 3vw, 1.75rem) 0;
  box-shadow: 0px -1px 8px 0px #3632551f;
}

.footer-main__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
}

.footer-main__licensed {
  text-align: center;
}

.footer-main__licensed img {
  width: min(180px, 100%);
  height: auto;
}

.footer-main__brand {
  text-align: center;
}

.footer-main__brand img {
  width: min(210px, 100%);
  height: auto;
}

.footer-main__social {
  text-align: center;
}

.footer-main__social-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-main__social-icons a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3d7e5;
  border-radius: 999px;
  background: #5d5c87;
}

.footer-main__social-icons img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.footer-main__social-icons .bi {
  font-size: 1rem;
  line-height: 1;
  color: var(--nps-nav-text, #ffffff);
}

.footer-main__copyright {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--nps-brand-2);
}


html[data-theme="dark"] input[type="file"]::file-selector-button {
  background-color: var(--nps-surface-1);
}

html[data-theme="dark"] input[type="file"]:hover::file-selector-button {
  background: var(--nps-surface-2) !important;
}

@media (max-width: 767.99px) {
  .footer-main__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .footer-main__licensed,
  .footer-main__brand,
  .footer-main__social {
    text-align: center;
  }

  .footer-main__social-icons {
    justify-content: center;
  }
}

.footer-pattern-bar {
  display: block;
  width: 100%;
  height: 1.5rem;
  background-color:var(--nps-brand-4);
  background-image: url("../images/footer-pattern-bar.svg");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 100%;
}

html[data-theme="dark"] .public-topbar {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--nps-nav) 96%, #000 4%) 0%,
      color-mix(in srgb, var(--nps-page-bg) 94%, #000 6%) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .home-posthero__news-card {
  border-color: var(--nps-border-soft, #3b3657);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* وضع داكن: تباين عام + بطاقات بلون بنفسجي رمادي */
html[data-theme="dark"] body,
html[data-theme="dark"] .site-page {
  color: var(--nps-text-1);
}

html[data-theme="dark"] .home-media-center__tab:hover {
  color: var(--nps-foreground);
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .home-media-center__more:hover,
html[data-theme="dark"] .home-media-center__more:focus {
  background: color-mix(in srgb, var(--nps-brand-4) 85%, #000 15%);
  color: var(--nps-nav-text);
  border-color: var(--nps-accent);
}

html[data-theme="dark"] .home-posthero__link:hover,
html[data-theme="dark"] .home-posthero__link:focus {
  color: color-mix(in srgb, var(--nps-brand-1) 85%, #fff 15%);
}

html[data-theme="dark"] .home-posthero__vm-card,
html[data-theme="dark"] .home-posthero__goal-card,
html[data-theme="dark"] .home-posthero__partner-card {

  color: var(--nps-text-1);
  background-color: var(--nps-text-1);

}

html[data-theme="dark"] .home-posthero__vm-card-body,
html[data-theme="dark"] .home-posthero__goal-card {
  color: var(--nps-text-1);
}

html[data-theme="dark"] .home-posthero__vm-card-body p {
  color: var(--nps-text-2);
}

html[data-theme="dark"] .home-posthero__goal-card-text {
  color: var(--nps-text-2);
}

html[data-theme="dark"] .home-posthero__chairman-text p:not(.home-posthero__chairman-name) {
  color: var(--nps-text-1);
}

html[data-theme="dark"] .footer-pattern-bar {
  background-color: color-mix(in srgb, var(--nps-brand-4) 92%, #000 8%);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  background-color: var(--nps-surface-2);
  border-color: var(--nps-border-soft);
  color: var(--nps-text-1);
}

html[data-theme="dark"] .form-control::placeholder {
  color: color-mix(in srgb, var(--nps-text-2) 65%, transparent);
}

/* تعبئة المتصفح (autofill): يتجاوز Chrome -internal-autofill-selected و light-dark() الافتراضي */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active,
.form-select:-webkit-autofill,
.form-select:-webkit-autofill:hover,
.form-select:-webkit-autofill:focus,
.form-select:-webkit-autofill:active {
  -webkit-text-fill-color: var(--nps-text-1);
  caret-color: var(--nps-text-1);
  box-shadow: 0 0 0 1000px color-mix(in srgb, var(--nps-brand-2) 28%, #fff 72%) inset !important;
}

html[data-theme="dark"] .form-control:-webkit-autofill,
html[data-theme="dark"] .form-control:-webkit-autofill:hover,
html[data-theme="dark"] .form-control:-webkit-autofill:focus,
html[data-theme="dark"] .form-control:-webkit-autofill:active,
html[data-theme="dark"] .form-select:-webkit-autofill,
html[data-theme="dark"] .form-select:-webkit-autofill:hover,
html[data-theme="dark"] .form-select:-webkit-autofill:focus,
html[data-theme="dark"] .form-select:-webkit-autofill:active {
  -webkit-text-fill-color: var(--nps-text-1);
  caret-color: var(--nps-text-1);
  box-shadow: 0 0 0 1000px color-mix(in srgb, var(--nps-surface-2) 82%, var(--nps-page-bg) 18%) inset !important;
}

@supports selector(:autofill) {

  .form-control:autofill,
  .form-select:autofill {
    -webkit-text-fill-color: var(--nps-text-1);
    caret-color: var(--nps-text-1);
    box-shadow: 0 0 0 1000px color-mix(in srgb, var(--nps-brand-2) 28%, #fff 72%) inset !important;
  }

  html[data-theme="dark"] .form-control:autofill,
  html[data-theme="dark"] .form-select:autofill {
    box-shadow: 0 0 0 1000px color-mix(in srgb, var(--nps-surface-2) 82%, var(--nps-page-bg) 18%) inset !important;
  }
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

}

/* Sanitized CMS HTML (news, events, reports) */
.cms-prose {
  line-height: 1.75;
  color: var(--nps-text-2, #615975);
}

.cms-prose p {
  margin-bottom: 0.75rem;
}

.cms-prose h2,
.cms-prose h3,
.cms-prose h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--nps-foreground, #1c1230);
}

.cms-prose ul,
.cms-prose ol {
  margin-bottom: 0.75rem;
  padding-inline-start: 1.25rem;
}