/* =======================
   1) القوائم المنسدلة
   ======================= */
.menu-item-has-children > a {
    position: relative;
}

.menu-item-has-children ul.sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.menu-item-has-children:hover > ul.sub-menu {
    display: block;
}

/* تحسين تنسيق عناصر القائمة الفرعية */
.sub-menu li {
    padding: 10px;
}

/* =======================
   2) حركة الـ Hero (Fade Up)
   ======================= */
.hero-fadeup {
  opacity: 0;
  transform: translateY(80px);
  animation: heroFadeUp 1.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s forwards;
}

@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(80px); }
  50% { opacity: 0.7; transform: translateY(20px); }
  80% { opacity: 1; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   3) تخصيص صفحة مؤتمر عمّان (Page ID 3199)
   ========================================= */
body.page-id-3199 {
  background-color: #ffffff !important;
  font-family: 'Tajawal', sans-serif;
}

/* ألوان العناوين */
body.page-id-3199 h1,
body.page-id-3199 h2,
body.page-id-3199 h3,
body.page-id-3199 h4 {
  color: #879ac4 !important;
  font-weight: 700;
}

/* النصوص العامة */
body.page-id-3199 p,
body.page-id-3199 li {
  color: #3a3a3a !important;
}

/* الروابط */
body.page-id-3199 a {
  color: #879ac4 !important;
  font-weight: 600;
  text-decoration: none;
}
body.page-id-3199 a:hover {
  color: #cbdcea !important;
  text-decoration: underline;
}

/* رأس وتذييل الصفحة المخصص */
body.page-id-3199 header,
body.page-id-3199 footer {
  background-color: #cbdcea !important;
  border-top: 3px solid #879ac4;
  border-bottom: 3px solid #879ac4;
  color: #000 !important;
}

/* ================================
   4) أزرار الـ Cover في صفحة 3199
   ================================ */
body.page-id-3199 .wp-block-button__link {
  transition: all 0.25s ease-in-out;
  background-color: rgba(255,255,255,0.25) !important;
  color: #0d1b3d !important;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
}

body.page-id-3199 .wp-block-button__link:hover {
  background-color: rgba(255,255,255,0.7) !important;
  color: #0d1b3d !important;
  box-shadow: 0 0 15px rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* ================================
   5) النصوص فوق الـ Cover
   ================================ */
body.page-id-3199 .wp-block-cover,
body.page-id-3199 .wp-block-cover p,
body.page-id-3199 .wp-block-cover h1,
body.page-id-3199 .wp-block-cover h2,
body.page-id-3199 .wp-block-cover h3,
body.page-id-3199 .wp-block-cover h4,
body.page-id-3199 .wp-block-cover h5 {
  color: #ffffff !important;
  text-shadow: 0 0 6px rgba(0,0,0,0.6);
}

body.page-id-3199 .wp-block-cover__inner-container {
  mix-blend-mode: normal;
  z-index: 3;
  position: relative;
}

/* =========================================================
   6) إزالة الأصفر من القائمة
   ========================================================= */

body.page-id-3199 nav.wp-block-navigation a.wp-block-navigation-item__content,
body.page-id-3199 nav.wp-block-navigation .wp-block-navigation-item__content:before,
body.page-id-3199 nav.wp-block-navigation .wp-block-navigation-item__content:after,
body.page-id-3199 nav.wp-block-navigation .wp-block-navigation-item:before,
body.page-id-3199 nav.wp-block-navigation .wp-block-navigation-item:after {
  box-shadow: none !important;
  border-bottom: none !important;
  background-image: none !important;
}

body.page-id-3199 nav.wp-block-navigation.is-style-underline .wp-block-navigation-item__content {
  box-shadow: none !important;
}

body.page-id-3199 nav.wp-block-navigation a.wp-block-navigation-item__content {
  color: #ffffff !important;
  background: transparent !important;
  text-decoration: none !important;
  transition: all 0.3s ease-in-out;
  border-radius: 6px;
  padding: 6px 14px;
}

body.page-id-3199 nav.wp-block-navigation a.wp-block-navigation-item__content:hover {
  background-color: rgba(255,255,255,0.15) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(255,255,255,0.9) !important;
  transform: translateY(-2px);
}

body.page-id-3199 nav.wp-block-navigation a.wp-block-navigation-item__content:focus,
body.page-id-3199 nav.wp-block-navigation a.wp-block-navigation-item__content:active {
  outline: none !important;
  background-color: rgba(255,255,255,0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(255,255,255,0.85) !important;
}

body.page-id-3199 nav.wp-block-navigation .current-menu-item > a.wp-block-navigation-item__content {
  background-color: rgba(255,255,255,0.25) !important;
  color: #ffffff !important;
  border-radius: 6px;
}

/* ================================
   7) صفحة أخرى 31998
   ================================ */
.page-id-31998 .wp-block-cover * {
    color: #ffffff !important;
}

/* ================================
   8) نصوص بيضاء داخل مجموعة محددة
   ================================ */
.page-id-3199 .my-covers-group * {
    color: #ffffff !important;
}
.page-id-3199 .my-covers-group li::marker {
    color: #ffffff !important;
}

/* ================================
   9) شركاء النجاح (اللوجوهات الثابتة)
   ================================ */

body.page-id-3199 .partners-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 30px 0;
  width: 100%;
}

/* اللوجو + نبضة خفيفة */
body.page-id-3199 .partners-slider img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  filter: grayscale(10%);
  opacity: 0.95;
  transition: 0.3s ease;
  animation: pulseLogo 2.4s ease-in-out infinite;
}

@keyframes pulseLogo {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

body.page-id-3199 .partners-slider img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.10);
}

/* موبايل للّوجوهات */
@media (max-width: 768px) {
  body.page-id-3199 .partners-slider {
    gap: 20px;
  }
  body.page-id-3199 .partners-slider img {
    max-height: 70px;
  }
}

/* ================================
   10) تثبيت القائمة الرئيسية (صفحة المؤتمر فقط)
   ================================ */
body.page-id-3199 .amman-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #0d1b3d !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  body.page-id-3199 .amman-sticky-nav {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* استبدال أيقونة الهامبرغر بكلمة "القائمة" */
body.page-id-3199 .wp-block-navigation__responsive-container-open svg {
    display: none !important;
}

body.page-id-3199 .wp-block-navigation__responsive-container-open::after {
    content: "القائمة";
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
    display: inline-block;
    padding: 10px 0;
}

/* ============================================
   11) بطاقات الرعاة في الهيرو — تصميم زجاجي خفيف
   ============================================ */

/* الحاوية العامة لقسم الرعاة داخل الـ Cover */
body.page-id-3199 .hero-sponsors-block {
  margin: 0 auto;
  padding: 20px 0;
}

/* إزالة أي خلفيات/ظلال من الداخل */
body.page-id-3199 .hero-sponsors-block * {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* على الديسكتوب: صف مرن عادي */
body.page-id-3199 .hero-sponsors-block > .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

/* كل عمود يحتوي البطاقة في الوسط */
body.page-id-3199 .hero-sponsors-block .wp-block-column {
  display: flex;
  justify-content: center;
}

/* شكل البطاقة على الديسكتوب */
body.page-id-3199 .hero-sponsor-card {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 18px;
  padding: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border: 2px solid rgba(255,255,255,0.55) !important;
  box-shadow: 0 0 10px rgba(0,0,0,0.35),
              0 0 18px rgba(255,255,255,0.30);
  transition: 0.3s ease;
}

/* Hover على الديسكتوب */
body.page-id-3199 .hero-sponsor-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.18) !important;
  box-shadow: 0 0 16px rgba(0,0,0,0.55),
              0 0 26px rgba(255,255,255,0.45);
}

/* النص داخل البطاقة */
body.page-id-3199 .hero-sponsor-card h3,
body.page-id-3199 .hero-sponsor-card p {
  color: #ffffff !important;
  text-shadow: 0 0 5px rgba(0,0,0,0.6);
  margin: 3px 0;
  line-height: 1.4;
}

body.page-id-3199 .hero-sponsor-card h3 {
  font-size: 16px;
  font-weight: 800;
}

body.page-id-3199 .hero-sponsor-card p {
  font-size: 12px;
  font-weight: 600;
}

/* اختلاف بسيط في الأحجام على الديسكتوب فقط */
body.page-id-3199 .hero-sponsor-card.diamond { width: 170px; height: 170px; }
body.page-id-3199 .hero-sponsor-card.platinum { width: 160px; height: 160px; }
body.page-id-3199 .hero-sponsor-card.gold    { width: 150px; height: 150px; }
body.page-id-3199 .hero-sponsor-card.silver  { width: 140px; height: 140px; }
body.page-id-3199 .hero-sponsor-card.bronze  { width: 130px; height: 130px; }

/* ================================
   موبايل – خمس مربعات في صف واحد مع تفاوت في الحجم
   ================================ */
@media (max-width: 768px) {

  /* نضبط صف الأعمدة */
  body.page-id-3199 .hero-sponsors-block > .wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;            /* صف واحد فقط */
    justify-content: space-between !important;
    gap: 0 !important;                       /* لا نستخدم gap حتى لا تقص آخر بطاقة */
    width: 100% !important;
    margin: 0 auto !important;
    padding: 10px 4px !important;
    overflow: visible !important;
  }

  /* كل عمود يأخذ جزءًا ثابتًا من العرض */
  body.page-id-3199 .hero-sponsors-block .wp-block-column {
    flex: 0 0 18% !important;               /* 5 × 18% = 90% تقريبًا + الهوامش */
    max-width: 18% !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* البطاقة مربّعة تمامًا */
  body.page-id-3199 .hero-sponsor-card {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;         /* مربع */
    height: auto !important;
    padding: 4px 2px !important;
    border-radius: 14px !important;
    flex: 0 0 auto !important;
    transform-origin: center center;
  }

  /* تفاوت في الحجم بين الرعاة */
  body.page-id-3199 .hero-sponsor-card.diamond  { transform: scale(1.16); }
  body.page-id-3199 .hero-sponsor-card.platinum { transform: scale(1.10); }
  body.page-id-3199 .hero-sponsor-card.gold     { transform: scale(1.04); }
  body.page-id-3199 .hero-sponsor-card.silver   { transform: scale(0.98); }
  body.page-id-3199 .hero-sponsor-card.bronze   { transform: scale(0.92); }

  /* تصغير النص قليلاً */
  body.page-id-3199 .hero-sponsor-card h3 {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body.page-id-3199 .hero-sponsor-card p {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
}
/* مسافات صغيرة بين أعمدة الرعاة على الموبايل */
@media (max-width: 768px) {
  body.page-id-3199 .hero-sponsors-block .wp-block-column {
    margin: 0 2px !important;   /* مسافة يمين ويسار بسيطة */
  }
}
/* ================================
   موبايل – تحسين النص داخل بطاقات الرعاة
   ================================ */
@media (max-width: 768px) {

  /* منع تكسير الكلمة حرف حرف */
  body.page-id-3199 .hero-sponsor-card h3,
  body.page-id-3199 .hero-sponsor-card p {
    white-space: normal !important;
    word-break: keep-all !important;   /* يكسر عند المسافات فقط */
    overflow-wrap: normal !important;  /* لا يقطع الكلمة في المنتصف */
    text-align: center !important;
  }

  /* تصغير بسيط للخط حتى لا يضيق جداً */
  body.page-id-3199 .hero-sponsor-card h3 {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  body.page-id-3199 .hero-sponsor-card p {
    font-size: 8.5px !important;
    line-height: 1.3 !important;
  }
}
/* ================================
   مسافات خاصة بين بطاقات الرعاة – موبايل
   ================================ */
@media (max-width: 768px) {

  /* مسافة صغيرة بين الراعي الماسي والبلاتيني */
  body.page-id-3199 .hero-sponsor-card.diamond {
    margin-left: 3px !important;
  }

  /* مسافة صغيرة بين الراعي البلاتيني والراعي الذهبي */
  body.page-id-3199 .hero-sponsor-card.platinum {
    margin-left: 3px !important;
  }
}
/* زيادة المسافة بين الماسي والبلاتيني فقط — دون التأثير على بقية البطاقات */
@media (max-width: 768px) {

  /* البطاقة الماسية — إزاحتها قليلاً لليسار فقط */
  body.page-id-3199 .hero-sponsor-card.diamond {
    margin-left: 6px !important;   /* زوّدتها بدون أن تتحرك باقي البطاقات */
  }

  /* البطاقة البلاتينية — إزاحة بسيطة لليمين لزيادة المسافة */
  body.page-id-3199 .hero-sponsor-card.platinum {
    margin-right: 6px !important;
  }
}
/* ================================
   إصلاح عرض الرعاة على الموبايل
   ================================ */
@media (max-width: 768px) {

  /* 1) إزاحة المجموعة كلها لليمين قليلاً */
  body.page-id-3199 .hero-sponsors-block > .wp-block-columns {
    margin-right: 10px !important;   /* زوّدتها بشكل خفيف */
  }

  /* 2) زيادة المسافة بين البلاتيني والذهبي فقط */
  body.page-id-3199 .hero-sponsor-card.platinum {
    margin-left: 6px !important;
  }

  body.page-id-3199 .hero-sponsor-card.gold {
    margin-right: 6px !important;
  }
}
/* ================================
   تصحيح إزاحة ومَسافات الرعاة على الموبايل
   ================================ */
@media (max-width: 768px) {

  /* إزاحة الصف كله قليلاً لليمين
     حتى يظهر الراعي البرونزي كاملاً */
  body.page-id-3199 .hero-sponsors-block > .wp-block-columns {
    margin-right: 0 !important;
    margin-left: 10px !important;   /* تحريك خفيف باتجاه اليمين بصرياً */
  }

  /* زيادة المسافة بين الذهبي والبلاتيني فقط */
  body.page-id-3199 .hero-sponsor-card.platinum {
    margin-left: 10px !important;   /* مسافة من جهة الذهبي */
  }

  body.page-id-3199 .hero-sponsor-card.gold {
    margin-right: 10px !important;  /* مسافة من جهة البلاتيني */
  }
}
/* ================================
   ضبط دقيق لصف الرعاة على الموبايل
   ================================ */
@media (max-width: 768px) {

  /* 1) تقليل عرض الأعمدة قليلاً + ترك هوامش داخلية من الجانبين
        حتى لا يُقصّ الراعي البرونزي وتنتظم المسافات */
  body.page-id-3199 .hero-sponsors-block > .wp-block-columns {
    padding-inline: 10px !important;      /* مسافة بسيطة يمين ويسار */
    justify-content: space-between !important;
    gap: 0 !important;                    /* نلغي الـ gap حتى لا يقص آخر لوجو */
  }

  /* 2) كل عمود يأخذ عرضاً أقل قليلاً ليبقى الخمس رعاة في صف واحد بأريحية */
  body.page-id-3199 .hero-sponsors-block .wp-block-column {
    flex: 0 0 17% !important;             /* بدل 18% */
    max-width: 17% !important;
    margin: 0 !important;                 /* نبدأ بدون أي هوامش إضافية */
  }

  /* 3) زيادة المسافة بين الراعي الذهبي والراعي البلاتيني قليلاً
        (العمود الرابع في ترتيب الكتل) */
  body.page-id-3199 .hero-sponsors-block .wp-block-column:nth-child(4) {
    margin-inline: 0 6px !important;      /* مسافة خفيفة جداً لجهة واحدة */
  }
}
/* ================================
   موبايل – توحيد المسافات بين الرعاة
   ================================ */
@media (max-width: 768px) {

  /* الحاوية العامة للرعاة داخل الكوفر */
  body.page-id-3199 .hero-sponsors-block > .wp-block-columns {
    justify-content: flex-start !important;
    padding-inline: 4px !important;   /* قلّلنا المسافة بين حافة الصفحة والبرونزي */
    gap: 0 !important;                /* نلغي أي gap قديم */
  }

  /* حجم الأعمدة */
  body.page-id-3199 .hero-sponsors-block .wp-block-column {
    flex: 0 0 17% !important;         /* خمس لوجوهات في صف واحد */
    max-width: 17% !important;
    margin: 0 !important;             /* نبدأ بدون هوامش */
  }

  /* مسافة ثابتة صغيرة بين كل لوجو والذي يليه */
  body.page-id-3199 .hero-sponsors-block .wp-block-column + .wp-block-column {
    margin-left: 4px !important;      /* ازاحة بين الفضي–الذهبي–البلاتيني–الماسي */
  }
}
/* ================================
   موبايل – تعديل مسافة البرونزي والماسي بدقة
   ================================ */
@media (max-width: 768px) {

  /* تقليل المسافة من يمين الشاشة (البرونزي) */
  body.page-id-3199 .hero-sponsors-block > .wp-block-columns {
    padding-right: 1px !important;  /* أقل مسافة ممكنة دون قص */
  }

  /* جعل المسافات بين كل الرعاة متوازنة */
  body.page-id-3199 .hero-sponsors-block .wp-block-column {
    margin: 0 !important;
  }

  body.page-id-3199 .hero-sponsors-block .wp-block-column + .wp-block-column {
    margin-left: 4px !important;  /* المسافة العامة بين اللوجوهات */
  }

  /* زيادة المسافة بين البلاتيني والماسي فقط */
  body.page-id-3199 .hero-sponsors-block .hero-sponsor-card.platinum {
    margin-right: 12px !important;  /* زودنا المسافة فقط هنا */
  }
}
@media (max-width: 768px) {

  /* تقليل المسافة بين البرونزي والفضي */
  body.page-id-3199 .hero-sponsors-block .wp-block-column.bronze-column {
    margin-right: 0px !important;
  }
  body.page-id-3199 .hero-sponsors-block .wp-block-column.silver-column {
    margin-left: 0px !important;
  }

  /* زيادة المسافة بين الذهبي والبلاتيني */
  body.page-id-3199 .hero-sponsors-block .wp-block-column.gold-column {
    margin-right: 8px !important;
  }
  body.page-id-3199 .hero-sponsors-block .wp-block-column.platinum-column {
    margin-left: 8px !important;
  }
}
/* ============================================
   تفعيل الأزرار في الهيرو + توهج أبيض (صفحة المؤتمر فقط)
   ============================================ */

/* جعل أزرار أول Cover فوق أي طبقة وأن تكون قابلة للضغط */
body.page-id-3199 .wp-block-cover:first-of-type .wp-block-buttons,
body.page-id-3199 .wp-block-cover:first-of-type .wp-block-button__link {
  position: relative;
  z-index: 30;
  pointer-events: auto;
  touch-action: manipulation;
}

/* تأثير التوهج على اللابتوب (Hover) */
body.page-id-3199 .wp-block-cover:first-of-type .wp-block-button__link:hover,
body.page-id-3199 .wp-block-cover:first-of-type .wp-block-button__link:focus {
  background-color: rgba(255,255,255,0.9) !important;
  color: #0d1b3d !important;
  box-shadow: 0 0 18px rgba(255,255,255,0.95);
  transform: translateY(-2px);
}

/* نفس التوهج على الموبايل عند اللمس */
@media (max-width: 768px) {
  body.page-id-3199 .wp-block-cover:first-of-type .wp-block-button__link:active,
  body.page-id-3199 .wp-block-cover:first-of-type .wp-block-button__link:focus {
    background-color: rgba(255,255,255,0.9) !important;
    color: #0d1b3d !important;
    box-shadow: 0 0 18px rgba(255,255,255,0.95);
    transform: translateY(-2px);
  }
}
