/**
 * هوية الصفحة الرئيسية والصفحات العامة — مستوحاة من nafs (مرجع Desktop/clinic)
 * index.html: body.page-home-nafs | صفحات الزوار المرتبطة بالرئيسية: body.page-public-nafs
 * لا يغيّر المنطق؛ يعيد تعريف متغيرات الألوان والخط والفوتر.
 */
body:is(.page-home-nafs, .page-public-nafs) {
  --primary-color: #006767;
  --secondary-color: #008282;
  --accent-color: #6fd7d6;
  --primary-rgb: 0, 103, 103;
  --light-blue: #f0f4f4;
  --medium-blue: #eaefee;
  --dark-blue: #004f4f;
  --text-color: #171d1c;
  --light-gray: #f6faf9;
  --box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.08);
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--text-color);
  min-height: 100vh;
  /* Ultra-minimal premium canvas: ivory + sage mesh only (no patterns/shapes) */
  background-color: #f6f3ec;
  background-image:
    radial-gradient(ellipse 78% 78% at 0% 0%, rgba(126, 154, 135, 0.022) 0%, transparent 62%),
    radial-gradient(ellipse 78% 78% at 100% 0%, rgba(126, 154, 135, 0.022) 0%, transparent 62%),
    radial-gradient(ellipse 78% 78% at 0% 100%, rgba(126, 154, 135, 0.026) 0%, transparent 62%),
    radial-gradient(ellipse 78% 78% at 100% 100%, rgba(126, 154, 135, 0.026) 0%, transparent 62%),
    radial-gradient(
      ellipse 100% 92% at 50% 46%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.045) 38%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 165% 110% at 50% 102%,
      rgba(200, 212, 191, 0.12) 0%,
      rgba(200, 212, 191, 0.05) 32%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 135% 105% at -8% 102%,
      #d8e4d2 0%,
      rgba(216, 228, 210, 0.55) 42%,
      rgba(228, 235, 224, 0.22) 62%,
      transparent 78%
    ),
    linear-gradient(
      to top right,
      rgba(220, 230, 216, 0.42) 0%,
      rgba(232, 238, 228, 0.26) 22%,
      rgba(242, 239, 232, 0.18) 42%,
      #f3efe6 58%,
      #f6f3ec 72%,
      #f8f6f1 88%,
      #faf8f4 100%
    );
  background-repeat: no-repeat;
  background-size: cover;
  /* يتحرك مع التمرير — لا يُثبَّت على الشاشة */
  background-attachment: scroll;
}

/* الرئيسية: بدون padding على الجسم لأن الهيرو يعوّض الهيدر */
body.page-home-nafs {
  padding-top: 0 !important;
  --home-header-offset: 104px;
}

/* صفحات عامة (زوار): مسافة تحت الهيدر الثابت (مطابقة لارتفاع .main-nav) */
body.page-public-nafs {
  --public-header-offset: 104px;
  padding-top: calc(var(--public-header-offset) + env(safe-area-inset-top, 0px)) !important;
}

@media (max-width: 768px) {
  body.page-home-nafs {
    --home-header-offset: 58px;
  }

  body.page-public-nafs {
    --public-header-offset: 86px;
    padding-top: calc(var(--public-header-offset) + env(safe-area-inset-top, 0px)) !important;
  }
}

/* إظهار التدرج خلف المحتوى؛ الهامش العلوي للهيدر يُعوَّض داخل قسم الهيرو وليس على main */
body:is(.page-home-nafs, .page-public-nafs) #main-content,
body:is(.page-home-nafs, .page-public-nafs) main {
  background: transparent;
  padding-top: 0 !important;
}

/* مسافة بين الهيدر وعنوان الصفحة (مستشارون، حجز فوري، أسر ناشئة، …) */
body.page-public-nafs main.consultants-section,
body.page-public-nafs #main-content > section.booking-section,
body.page-public-nafs section.booking-section:first-of-type {
  padding-top: 1.25rem !important;
}

body.page-public-nafs .page-title-section {
  margin-top: 0;
  padding-top: 0.5rem;
}

body:is(.page-home-nafs, .page-public-nafs) .services-section,
body:is(.page-home-nafs, .page-public-nafs) .services-uiv-section,
body:is(.page-home-nafs, .page-public-nafs) .domains-section,
body:is(.page-home-nafs, .page-public-nafs) .consultants-section,
body:is(.page-home-nafs, .page-public-nafs) .testimonials-section,
body:is(.page-home-nafs, .page-public-nafs) .why-choose-us-section,
body:is(.page-home-nafs, .page-public-nafs) .how-to-use-section,
body:is(.page-home-nafs, .page-public-nafs) .faq-section,
body:is(.page-home-nafs, .page-public-nafs) .statistics-section {
  background: transparent !important;
}

/* هيرو — بعرض الشاشة؛ يبدأ تحت الهيدر + صور تملأ الإطار (cover) */
body:is(.page-home-nafs, .page-public-nafs) .hero-slider {
  position: relative;
  width: 100vw;
  max-width: none;
  margin: 0;
  margin-inline: calc(50% - 50vw);
  margin-bottom: 0;
  padding-top: calc(var(--home-header-offset, 104px) + env(safe-area-inset-top, 0px));
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  box-sizing: border-box;
  background: transparent !important;
}

body:is(.page-home-nafs, .page-public-nafs) .hero-slider .carousel {
  position: relative;
}

body:is(.page-home-nafs, .page-public-nafs) .hero-slider .carousel,
body:is(.page-home-nafs, .page-public-nafs) .hero-slider .carousel-item,
body:is(.page-home-nafs, .page-public-nafs) .hero-slider .slider-image-container {
  width: 100%;
  max-width: none;
  border-radius: 0;
}

body:is(.page-home-nafs, .page-public-nafs) .hero-slider .slider-image-container {
  background: #062a29;
}

body:is(.page-home-nafs, .page-public-nafs) .hero-slider .slider-image-container picture {
  display: block;
  width: 100%;
  height: 100%;
}

body:is(.page-home-nafs, .page-public-nafs) .hero-slider .slider-image {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 769px) {
  body:is(.page-home-nafs, .page-public-nafs) .hero-slider {
    margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
  }

  body:is(.page-home-nafs, .page-public-nafs) .hero-slider .carousel,
  body:is(.page-home-nafs, .page-public-nafs) .hero-slider .carousel-item,
  body:is(.page-home-nafs, .page-public-nafs) .hero-slider .slider-image-container {
    height: clamp(460px, 62vh, 820px);
  }

  body:is(.page-home-nafs, .page-public-nafs) .hero-slider .carousel {
    box-shadow: 0 12px 40px rgba(23, 29, 28, 0.08);
  }
}

@media (max-width: 768px) {
  /* يتجاوز mobile.css: لا ارتفاع ثابت للقسم + لا margin-top مزدوج مع padding-top */
  body:is(.page-home-nafs, .page-public-nafs) .hero-slider {
    margin-top: 0 !important;
    margin-bottom: 0;
    height: auto !important;
    min-height: 0;
    overflow: visible;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body:is(.page-home-nafs, .page-public-nafs) .hero-slider .carousel,
  body:is(.page-home-nafs, .page-public-nafs) .hero-slider .carousel-item,
  body:is(.page-home-nafs, .page-public-nafs) .hero-slider .slider-image-container {
    height: clamp(320px, 58vh, 520px);
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  body:is(.page-home-nafs, .page-public-nafs) .hero-slider {
    height: auto !important;
  }

  body:is(.page-home-nafs, .page-public-nafs) .hero-slider .carousel,
  body:is(.page-home-nafs, .page-public-nafs) .hero-slider .carousel-item,
  body:is(.page-home-nafs, .page-public-nafs) .hero-slider .slider-image-container {
    height: clamp(220px, 42vh, 320px);
  }
}

/* ===== هيدر الصفحة الرئيسية — تدرج هوية + لمعة متحركة + نصوص فاتحة ===== */
@keyframes nafs-nav-shimmer {
  0% {
    background-position: 130% 50%;
  }
  50% {
    background-position: -30% 50%;
  }
  100% {
    background-position: 130% 50%;
  }
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav {
  background: linear-gradient(
    118deg,
    #022f2f 0%,
    #004d4d 18%,
    #006767 42%,
    #0a6f6e 58%,
    #006060 82%,
    #005252 100%
  ) !important;
  box-shadow: 0 4px 22px rgba(0, 28, 28, 0.28) !important;
  border-bottom: 1px solid rgba(111, 215, 214, 0.22);
  overflow: hidden;
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 36%,
    rgba(255, 255, 255, 0.07) 44%,
    rgba(220, 255, 252, 0.28) 50%,
    rgba(255, 255, 255, 0.09) 56%,
    transparent 64%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: nafs-nav-shimmer 10s ease-in-out infinite;
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav .container {
  position: relative;
  z-index: 1;
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav.scrolled {
  background: linear-gradient(
    118deg,
    #012828 0%,
    #003d3d 28%,
    #005a5a 55%,
    #006767 100%
  ) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22) !important;
  border-bottom-color: rgba(111, 215, 214, 0.32);
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav.scrolled::before {
  animation-duration: 12s;
}

@media (prefers-reduced-motion: reduce) {
  body:is(.page-home-nafs, .page-public-nafs) .main-nav::before {
    animation: none;
    background: linear-gradient(
      118deg,
      transparent 0%,
      rgba(255, 255, 255, 0.06) 48%,
      rgba(200, 255, 252, 0.12) 52%,
      transparent 100%
    );
    background-size: 100% 100%;
  }
}

/* لون الشعار على خلفية الهيدر الداكنة — الموضع يبقى من style.css */
body:is(.page-home-nafs, .page-public-nafs) .main-nav.scrolled .nav-logo {
  opacity: 1 !important;
  visibility: visible !important;
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav .nav-logo img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.96;
}

/* روابط التنقل */
body:is(.page-home-nafs, .page-public-nafs) .main-nav .nav-list a {
  color: rgba(248, 255, 254, 0.93) !important;
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav .nav-list a:hover,
body:is(.page-home-nafs, .page-public-nafs) .main-nav .nav-list a:focus-visible {
  color: #ffffff !important;
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav .nav-list a.active {
  color: #e8fffe !important;
  font-weight: 700;
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav .nav-list a.active::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 215, 214, 0.35),
    #bffffc,
    rgba(111, 215, 214, 0.35),
    transparent
  ) !important;
  height: 2px;
  box-shadow: 0 0 12px rgba(111, 215, 214, 0.55);
}

/* أزرار الهيدر */
body:is(.page-home-nafs, .page-public-nafs) .main-nav .nav-actions .btn-outline {
  color: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.52) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav .nav-actions .btn-outline:hover,
body:is(.page-home-nafs, .page-public-nafs) .main-nav .nav-actions .btn-outline:focus-visible {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.88) !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

body:is(.page-home-nafs, .page-public-nafs) .main-nav .nav-actions .btn-outline .user-icon {
  border-color: rgba(255, 255, 255, 0.78) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

/* زر القائمة الجانبية */
body:is(.page-home-nafs, .page-public-nafs) .toggle-sidebar span {
  background-color: rgba(255, 255, 255, 0.92) !important;
}

body:is(.page-home-nafs, .page-public-nafs) .toggle-sidebar:hover span {
  background-color: #ffffff !important;
}

/* فوتر: تدرج يمزج الكحلي الثانوي مع التيل الطبي */
body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer {
  background: linear-gradient(
    135deg,
    #171d1c 0%,
    #2c3131 28%,
    #1f3a52 62%,
    #0d4f4e 100%
  );
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer::before {
  background: linear-gradient(
    45deg,
    rgba(0, 103, 103, 0.12) 0%,
    rgba(0, 130, 130, 0.06) 35%,
    rgba(111, 215, 214, 0.08) 70%,
    rgba(0, 103, 103, 0.1) 100%
  );
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer,
body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer a,
body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer p,
body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer li {
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* ===== فوتر الرئيسية — تصميم تحريري مستقل (home-footer) ===== */
body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer.footer--home-wavy {
  overflow: visible;
  padding-top: clamp(22px, 3.5vw, 34px);
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer.footer--home-wavy > .footer-wave-top {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(-8px, -1.2vw, -3px);
  width: 100%;
  height: clamp(26px, 4vw, 36px);
  line-height: 0;
  pointer-events: none;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer.footer--home-wavy .footer-wave-top__svg {
  display: block;
  width: 100%;
  height: 100%;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer.footer--home-wavy .footer-wave-top__fill {
  fill: #0f1f1e;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .footer.footer--home-wavy .footer-main {
  position: relative;
  z-index: 2;
  padding: clamp(0.35rem, 1vw, 0.55rem) 0 clamp(0.75rem, 1.8vw, 1rem) !important;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  padding-block: 0 0.15rem;
  max-width: 68rem;
  margin-inline: auto;
}

/* مقدمة: عنوان كبير + نص بدون صندوق زجاجي */
body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__masthead {
  text-align: center;
  padding-bottom: clamp(0.65rem, 1.6vw, 0.95rem);
  border-bottom: 1px solid rgba(111, 215, 214, 0.28);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.28rem, 3.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #f2fffe;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__lede {
  margin: 0 auto;
  max-width: 36rem;
  font-size: clamp(0.86rem, 1.75vw, 0.98rem);
  line-height: 1.55;
  color: rgba(240, 252, 250, 0.82);
}

/* عمودان: تواصل | سوشال — فاصل عمودي، بدون بطاقات */
body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  align-items: start;
}

@media (min-width: 768px) {
  body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
  }

  body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__col--social {
    border-inline-start: 2px solid rgba(111, 215, 214, 0.38);
    padding-inline-start: clamp(0.85rem, 2vw, 1.35rem);
  }
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__h {
  margin: 0 0 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6fd7d6;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__contact-row a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 215, 214, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__contact-row a:hover {
  color: #ffffff;
  border-bottom-color: #bffffc;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__glyph {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid rgba(111, 215, 214, 0.45);
  color: #9cf4f0;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.2);
}

/* أيقونات سوشال — مربعات حادة، ليست دوائر زجاجية */
body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__soc:hover {
  border-color: rgba(111, 215, 214, 0.65);
  background: rgba(111, 215, 214, 0.12);
  transform: translateY(-1px);
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__soc img {
  width: 1.12rem;
  height: 1.12rem;
  object-fit: contain;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__soc[aria-label='Snapchat'] img {
  filter: none;
  background: #fffc00;
  border-radius: 3px;
  padding: 2px;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__soc[aria-label='WhatsApp'] img {
  filter: none;
  background: #25d366;
  border-radius: 3px;
  padding: 2px;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__soc[aria-label='Instagram'] img {
  filter: none;
  border-radius: 3px;
  padding: 2px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__soc[aria-label='TikTok'] img {
  filter: none;
  background: #000;
  border-radius: 3px;
  padding: 2px;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__soc[aria-label='X (Twitter)'] img {
  filter: none;
  background: #000;
  border-radius: 3px;
  padding: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__soc:hover {
    transform: none;
  }
}

/* صندوق التوثيق: حدّ متقطع + خلفية مسطّحة (مختلف عن لوحات المرجع) */
body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__vault {
  padding: clamp(0.65rem, 1.6vw, 0.9rem) clamp(0.65rem, 1.8vw, 1rem);
  border-radius: 3px;
  border: 1px dashed rgba(111, 215, 214, 0.42);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__vault-title {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dffdfb;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.45rem, 1.2vw, 0.65rem);
  margin-bottom: 0.65rem;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  max-width: 100%;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__badge-img {
  width: 58px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  text-align: start;
  min-width: 0;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__badge-line {
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__badge-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6fd7d6;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__pays {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.4rem;
  background: #f8fafc;
  border-radius: 2px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__pay--mada {
  padding: 0.18rem 0.32rem;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__pay-img {
  display: block;
  height: 20px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__pay-img--mada {
  height: 20px;
  max-width: 42px;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__pay--paypal {
  background: linear-gradient(135deg, #0070ba, #1546a0);
  border-color: rgba(255, 255, 255, 0.12);
  min-width: 3.6rem;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__paypal-txt {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__legals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__legal {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__legal:hover {
  color: #ffffff;
  border-bottom-color: #6fd7d6;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__legal-sep {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

/* شريط الحقوق — أغمق وأضيق من مرجع footer-bottom */
body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__copyright-bar.footer-bottom {
  background: rgba(0, 0, 0, 0.55) !important;
  border-top: 2px solid rgba(111, 215, 214, 0.22) !important;
  padding-block: 0.55rem !important;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__copyright-bar.footer-bottom::before {
  opacity: 0.35;
}

body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__copy.footer-copyright {
  font-size: 0.72rem !important;
  letter-spacing: 0.05em;
  color: rgba(226, 245, 243, 0.65) !important;
}

@media (max-width: 767px) {
  body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__badge {
    flex: 1 1 100%;
  }

  body:is(.page-home-nafs, .page-public-nafs, .page-client-nafs) .home-footer__badge-img {
    width: 52px;
    max-height: 36px;
  }
}

/* ===== خدماتنا — بطاقات تفاعلية (زوايا Uiverse) ===== */
body:is(.page-home-nafs, .page-public-nafs) .services-uiv-section {
  padding: 2.5rem 0 3rem;
}

body:is(.page-home-nafs, .page-public-nafs) .services-uiv-section .section-title {
  margin-bottom: 1.5rem;
}

/* ===== قالوا عنا — سلايدر خفيف + بطاقات صلبة (بدون blur) ===== */
body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2 {
  padding: 2.75rem 0 3.25rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2 .section-title {
  margin-bottom: 0.65rem;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-lead {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--light-text);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-swiper-outer {
  max-width: 42rem;
  margin-inline: auto;
  padding: 0.35rem 0.5rem 2.5rem;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-swiper {
  overflow: hidden;
  border-radius: 22px;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(111, 215, 214, 0.22);
  box-shadow: 0 12px 32px rgba(0, 103, 103, 0.06);
  contain: layout style;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-swiper .swiper-wrapper {
  align-items: stretch;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonial-v2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 12rem;
  margin: 0.15rem;
  padding: 1.45rem 1.35rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(111, 215, 214, 0.28);
  border-inline-start: 3px solid rgba(111, 215, 214, 0.65);
  background: linear-gradient(
    155deg,
    #ffffff 0%,
    #f8fdfc 48%,
    #ecfbfb 100%
  );
  box-shadow: 0 8px 24px rgba(0, 103, 103, 0.06);
  contain: layout style paint;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonial-v2-quote {
  position: relative;
  z-index: 1;
  margin: 0 0 1.1rem;
  padding: 0;
  border: none;
  font: inherit;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonial-v2-quote p {
  margin: 0;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.75;
  color: var(--text-color);
}

body:is(.page-home-nafs, .page-public-nafs) .testimonial-v2-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

body:is(.page-home-nafs, .page-public-nafs) .testimonial-v2-meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonial-v2-client {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-color);
}

body:is(.page-home-nafs, .page-public-nafs) .testimonial-v2-with {
  font-size: 0.86rem;
  color: rgba(23, 29, 28, 0.58);
}

body:is(.page-home-nafs, .page-public-nafs) .testimonial-v2-stars {
  display: flex;
  gap: 0.15rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #e6a23c;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonial-v2-stars .far {
  color: rgba(23, 29, 28, 0.28);
}

body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-pagination.swiper-pagination-bullets {
  bottom: 0.15rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(0, 103, 103, 0.28);
  opacity: 1;
  transition: background-color 0.15s ease, width 0.15s ease;
}

body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-pagination .swiper-pagination-bullet-active {
  width: 1.35rem;
  background: var(--accent-color);
}

body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-empty {
  color: var(--light-text);
  font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
  body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-pagination .swiper-pagination-bullet {
    transition: none;
  }

  body:is(.page-home-nafs, .page-public-nafs) .testimonials-v2-pagination .swiper-pagination-bullet-active {
    width: 1.35rem;
  }
}

/* ===== عن المنصة — عناوين + فقرة ديناميكية ===== */
body:is(.page-home-nafs, .page-public-nafs) .about-us-section .container {
  max-width: min(56rem, 100%);
  margin-inline: auto;
}

body:is(.page-home-nafs, .page-public-nafs) .about-us-section .about-us-tabs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(0.75rem, 2.5vw, 1.35rem);
  row-gap: 0.65rem;
  width: 100%;
  margin-top: 1.1rem;
  padding-inline: 0.25rem;
  box-sizing: border-box;
}

body:is(.page-home-nafs, .page-public-nafs) .about-us-section .about-us-tab {
  margin: 0;
  padding: 0.45rem 0.35rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  font-weight: 700;
  color: var(--light-text);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

body:is(.page-home-nafs, .page-public-nafs) .about-us-section .about-us-tab:hover {
  color: var(--primary-color);
}

body:is(.page-home-nafs, .page-public-nafs) .about-us-section .about-us-tab.is-active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

body:is(.page-home-nafs, .page-public-nafs) .about-us-section .about-us-tab:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: 4px;
}

body:is(.page-home-nafs, .page-public-nafs) .about-us-section .about-us-dynamic {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--primary-rgb), 0.12);
  font-size: clamp(0.95rem, 2.1vw, 1.02rem);
  line-height: 1.9;
  color: var(--text-color);
  text-align: right;
  min-height: 5.5rem;
}

/* ===== صفحة المستشارين — ألوان البطاقات فقط (مطابقة #consultants في الرئيسية) ===== */
body.page-public-nafs .consultants-section .consultant-card {
  background:
    radial-gradient(ellipse 75% 55% at 50% 48%, rgba(255, 255, 255, 0.1) 0%, transparent 62%),
    linear-gradient(165deg, var(--secondary-color) 0%, var(--primary-color) 42%, var(--dark-blue) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 7px 19px rgba(var(--primary-rgb), 0.35);
}

body.page-public-nafs .consultants-section .consultant-card::before {
  content: none;
  display: none;
}

body.page-public-nafs .consultants-section .consultant-card:hover,
body.page-public-nafs .consultants-section .swiper-slide-active .consultant-card {
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(255, 255, 255, 0.12) 0%, transparent 58%),
    linear-gradient(165deg, var(--primary-color) 0%, var(--dark-blue) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.48);
}

body.page-public-nafs .consultants-section .consultant-image {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.15);
  background-color: rgba(255, 255, 255, 0.08);
}

body.page-public-nafs .consultants-section .consultant-name {
  color: #fff;
}

body.page-public-nafs .consultants-section .consultant-specialty {
  color: rgba(255, 255, 255, 0.94);
}

body.page-public-nafs .consultants-section .consultant-type {
  color: rgba(255, 255, 255, 0.96);
  background-color: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

body.page-public-nafs .consultants-section .consultant-rating {
  color: #fff;
}

body.page-public-nafs .consultants-section .consultant-rating i {
  color: var(--accent-color);
}

body.page-public-nafs .consultants-section .consultant-rating span {
  color: #fff;
}

body.page-public-nafs .consultants-section .book-button {
  background: var(--accent-color);
  color: #0d3d3d;
  border-color: rgba(255, 255, 255, 0.35);
}

body.page-public-nafs .consultants-section .book-button:hover {
  background: var(--accent-color);
  color: #0d3d3d;
  filter: brightness(1.05);
}

body.page-public-nafs .consultants-section .time-slot h3 {
  color: var(--primary-color);
  border-bottom-color: rgba(var(--primary-rgb), 0.14);
}

body.page-public-nafs .consultants-section .swiper-pagination-bullet {
  background: var(--primary-color);
}

body.page-public-nafs .consultants-section .swiper-pagination-bullet-active {
  background: var(--secondary-color);
}

/* ===== الأسئلة الشائعة — هوية شور + فتح فوري (بدون Bootstrap height) ===== */
body:is(.page-home-nafs, .page-public-nafs) .faq-section {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

body:is(.page-home-nafs, .page-public-nafs) .faq-section .section-header h2 {
  color: var(--primary-color);
}

body:is(.page-home-nafs, .page-public-nafs) .faq-section .section-header h2::after {
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

body:is(.page-home-nafs, .page-public-nafs) .faq-section .section-header p {
  color: var(--light-text);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

body:is(.page-home-nafs, .page-public-nafs) .faq-container {
  max-width: min(42rem, 100%);
  margin-top: 1.5rem;
}

body:is(.page-home-nafs, .page-public-nafs) .faq-item {
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.9) 48%,
    rgba(236, 252, 251, 0.92) 100%
  );
  border: 1px solid rgba(111, 215, 214, 0.28);
  border-inline-start: 3px solid rgba(111, 215, 214, 0.58);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 103, 103, 0.07);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body:is(.page-home-nafs, .page-public-nafs) .faq-item:hover {
  transform: none !important;
  box-shadow: 0 10px 26px rgba(0, 103, 103, 0.1);
  border-color: rgba(111, 215, 214, 0.42);
}

body:is(.page-home-nafs, .page-public-nafs) .faq-button {
  background: transparent;
  padding: 0.95rem 1.15rem;
  transition: background-color 0.2s ease !important;
}

body:is(.page-home-nafs, .page-public-nafs) .faq-button span {
  color: var(--primary-color);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
}

body:is(.page-home-nafs, .page-public-nafs) .faq-button i {
  color: var(--accent-color);
  transition: transform 0.2s ease;
}

body:is(.page-home-nafs, .page-public-nafs) .faq-button:hover {
  background: rgba(111, 215, 214, 0.1);
}

body:is(.page-home-nafs, .page-public-nafs) .faq-button:not(.collapsed) {
  background: rgba(111, 215, 214, 0.14);
  border-bottom: none;
}

body:is(.page-home-nafs, .page-public-nafs) .faq-button:not(.collapsed) span {
  color: var(--dark-blue);
}

body:is(.page-home-nafs, .page-public-nafs) .faq-answer {
  padding: 0.85rem 1.15rem 1rem;
  color: var(--text-color);
  line-height: 1.65;
  font-size: 0.94rem;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

body:is(.page-home-nafs, .page-public-nafs) .faq-section .faq-panel[hidden] {
  display: none !important;
}

body:is(.page-home-nafs, .page-public-nafs) .faq-section .faq-pay-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.55rem 0 0.35rem;
}

body:is(.page-home-nafs, .page-public-nafs) .faq-section .faq-pay-icons img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
}

body:is(.page-home-nafs, .page-public-nafs) .faq-section .faq-pay-icons .faq-pay-paypal {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #fff;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  color: #003087;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  body:is(.page-home-nafs, .page-public-nafs) .faq-item,
  body:is(.page-home-nafs, .page-public-nafs) .faq-button,
  body:is(.page-home-nafs, .page-public-nafs) .faq-button i {
    transition: none;
  }
}

