/* ==== خطوط عربية ==== */
@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@300;400;600;700&display=swap");
@font-face {
    font-family: "HelveticaArabi";
    src: url("fonts/alfont_com_هلفيتيكا-عربي-.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Palestine";
    src: url("fonts/alfont_com_Palestine-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Elgharib";
    src: url("fonts/alfont_com_Elgharib-Lifta-Black-Line.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==== Reset & Base ==== */
:root {
    --color-primary-white: #ffffff;
    --color-primary-black: #000;
    --color-secondary-dark-gray: #333;
    --color-light-gray: #f5f5f5;
    --color-light-yellow: #e4e99d;
    --color-creamy-yellow: #fffde0;
    --color-accent-yellow: #f4f6c3;
    --color-border-light: #ece7b8;
    --color-border-lighter: #ddd;
}

* {
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
    direction: rtl;
    background: var(--color-primary-white);
    color: var(--color-primary-black);
    font-size: 16px;
    line-height: 1.6;
    padding-top: 25px;
    width: 100%;
}

body.no-scroll {
    overflow: hidden !important;
}

/* ==== الهيدر وشريط منقّط ==== */
html, body{
  margin: 0;           /* يشيل الهامش الافتراضي */
  padding: 0;
}
/* لا ظلال ولا Text-Shadow داخل الهيدر */
.main-header, .main-header *{
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  outline: 0 !important;
}
/* لو في ظل على عناصر المينيو عند الـhover */
.desktop-nav .nav-list > li > a,
.desktop-nav .nav-list > li:hover > a{
  box-shadow: none !important;
}
.social-top, .header-row{
  border: 0 !important;
}

.main-header{
  border: none;
  border-bottom: 1px dotted #000;
  margin: 0 0 20px;    /* شلنا الهامش العلوي (كان 40px) وخليّنا مسافة فقط تحت */
  width: 100%;         /* بدل 99vw */
  position: relative;  /* ما في داعي لleft/transform */
  left: auto;
  transform: none;
}

/* اختياري: لو بدك شوية مساحة صغيرة فوق الأيقونات نفسها */
.social-top{
  padding-top: 6px !important;    /* أبقيها خفيفة */
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 10px 20px;
    min-height: 100px;
    position: relative;
    z-index: 5001;
}

/* ==== سوشال أعلى ==== */
.social-top {
    padding: 6px clamp(10px, 3vw, 20px);
    background: var(--color-primary-white);
    display: flex;
    justify-content: flex-end;
    width: 100%;
}
.social-icons {
    display: flex;
    gap: clamp(4px, 1vw, 8px);
    flex-wrap: wrap;
    justify-content: center;
}
.social-btn {
    width: clamp(28px, 5vw, 34px);
    height: clamp(28px, 5vw, 34px);
    border-radius: 50%;
    background: #ffffff;              /* 👈 الخلفية أبيض */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-dark-gray);
    text-decoration: none;
    font-size: clamp(12px, 2vw, 15px);
    transition: 0.3s;
    flex-shrink: 0;
}
.social-icon-img {
    width: clamp(18px, 3vw, 24px);
    height: clamp(18px, 3vw, 24px);
    object-fit: contain;
    transition: 0.3s;
}

/* عند الهوفر */
.social-btn:hover {
    border-color: #8f1eae;
        border: 2px solid #8f1eae;        /* 👈 الإطار بنفسجي */

}
.social-btn:hover .social-icon-img {
    filter: brightness(0) invert(1);  /* يخلي الأيقونة تصير بيضاء */
}

/* ==== لوجو ==== */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.logo-img {
    height: auto;
    max-height: 100px;
    object-fit: contain;
    display: block;
    margin-top: 10px;
    max-width: 100%;
}

/* ==== زر هامبرغر ==== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    transition: 0.3s;
    flex-shrink: 0;
}
.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--color-secondary-dark-gray);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==== ناف الديسكتوب ==== */
.desktop-nav {
    flex-grow: 1;
    overflow: visible;
}
.desktop-nav .nav-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2vw, 20px);
    list-style: none;
    margin: 0;
    padding: 0;
}
.desktop-nav .nav-list > li {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* إضافة الهامش الداخلي للأسفل لتغطية الفراغ */
    padding-bottom: 5px;
}
.desktop-nav .nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Palestine", sans-serif !important;
    font-size: clamp(1rem, 2vw, 1.1rem);
    letter-spacing: 0.2px;
    color: var(--color-secondary-dark-gray);
    text-decoration: none;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.2s;
}

/* تأثير الـ Hover للقائمة الرئيسية */
.desktop-nav .nav-list > li:hover > a {
  background: #9229B5;
  color: #fff !important;
  border: 1px solid #9229B5;
  box-shadow: 0 2px 6px rgba(146, 41, 181, 0.3);
}

/* لوحة الدروبداون للديسكتوب */
.desktop-nav .submenu {
    position: absolute;
    top: 100%;
    margin-top: 0; /* تم التعديل هنا لإزالة الفراغ */
    right: 50%;
    transform: translateX(50%);
    min-width: 180px;
  background: #fff; /* أبيض أنظف بدل الأصفر */
  border: 1px solid #9229B5;
    border-radius: 14px;
    padding: 6px 0;
    display: none;
    opacity: 0;
    color: inherit; /* يخليها تاخد من العنصر الداخلي */

    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 2147483647;
    list-style: none;
    text-align: center;
}
.desktop-nav .submenu li a:hover {
    background: #9229B5;       /* الخلفية بنفسجي */
    color: #fff !important;    /* 👈 النص أبيض */
    border-color: #8f1eae;
}
.desktop-nav .has-dropdown:hover > .submenu {
    display: block;
    opacity: 1;
    transform: translateX(50%) translateY(0);
}
.desktop-nav .submenu li a {
    display: block;
    margin: 4px 8px;
    padding: 8px 10px;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
      background: #fff;
  color: #222;
  border: 1px solid transparent;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

/* تأثير الـ Hover للقائمة الفرعية */
.desktop-nav .submenu li a:hover {
  background: #9229B5;
  color: #fff;
  border-color: #8f1eae;
}

/* ==== قائمة الموبايل المنبثقة (بشكل نافذة) ==== */
.mobile-popup-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--color-primary-white);
    width: 90%;
    max-width: 360px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    padding: 10px 0;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden;
}
.mobile-popup-menu.open {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.mobile-popup-menu .mobile-popup-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-popup-menu .mobile-popup-nav li {
    border-bottom: 1px solid #eee;
}
.mobile-popup-menu .mobile-popup-nav li:last-child {
    border-bottom: none;
}
.mobile-popup-menu .mobile-popup-nav a {
    display: block;
    text-align: right;
    font-size: 17px;
    padding: 14px 20px;
    font-family: "Palestine", sans-serif;
    text-decoration: none;
    color: #222;
    transition: background 0.3s;
}
.mobile-popup-menu .mobile-popup-nav a:hover,
.mobile-popup-menu .mobile-popup-nav li.has-dropdown.open > a {
    background-color: var(--color-accent-yellow);
}
.mobile-popup-menu .mobile-popup-nav .main-link {
    font-weight: bold;
}
.mobile-popup-menu .mobile-popup-nav .has-dropdown .submenu {
    display: none;
    list-style: none;
    padding-right: 20px;
    background: #f8f8f8;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
}
.mobile-popup-menu .mobile-popup-nav .has-dropdown.open .submenu {
    display: block;
}
.mobile-popup-nav .submenu li a {
    padding: 10px 25px;
    font-size: 16px;
    font-family: "Cairo", sans-serif;
    color: #666;
    border-right: 2px solid var(--color-border-lighter);
}
.mobile-popup-nav .submenu li a:hover {
    background: #f1f1f1;
}

/* الخلفية العاتمة */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.mobile-menu-overlay.open {
    display: block;
    opacity: 1;
}

/* ==== Media Queries ==== */
@media (max-width: 991px) {
    .hamburger-btn {
        display: flex;
    }
    .mobile-popup-menu {
        display: block;
    }
    .desktop-nav {
        display: none !important;
    }
}
@media (min-width: 992px) {
    .mobile-popup-menu,
    .hamburger-btn,
    .mobile-menu-overlay {
        display: none !important;
    }
    body.no-scroll {
        overflow: auto !important;
    }
}

/* Footer Styles - تعديل الأيقونات والإزاحة */
.site-footer {
  background: #ffffff;
  color: #333;
  padding: clamp(50px, 8vw, 80px) 0 0;
  margin-top: clamp(60px, 10vw, 80px);
  border-top: 2px solid #f0f0f0;
  font-family: 'Palestine', sans-serif;
  width: 100%;
  animation: fadeInUp 0.6s ease-out;
}

/* الجزء العلوي من الفوتر - إزاحة لليمين */
.footer-top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 clamp(20px, 4vw, 40px);
  margin-bottom: clamp(40px, 6vw, 60px);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  gap: clamp(40px, 6vw, 80px);
  width: 100%;
  direction: rtl;
  padding-right: clamp(60px, 8vw, 120px);
}

/* اللوجو على اليسار */
.footer-center {
  order: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;      /* 👈 يوسّطهم بالنص */
  gap: 15px;                /* 👈 مسافة بين العناصر */
  flex: 1;
  max-width: 350px;
}

/* حاوي الروابط على اليمين */
.footer-container {
  order: 1;
  display: flex;
  gap: clamp(60px, 8vw, 100px);
  align-items: flex-start;
  flex: 2;
}

/* أعمدة الروابط */
.footer-column1, .footer-column {
  display: flex;
  flex-direction: column;
  gap: clamp(25px, 4vw, 35px);
  align-items: flex-end;
  text-align: right;
  width: 100%;
  min-width: 150px;
}

/* تنسيق الروابط - الأيقونات يمين الكلمات */
.footer-link, .footer-link1 {
  color: #2d3748;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.5vw, 20px);
  transition: all 0.3s ease;
  font-family: 'Palestine', sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2.8vw, 22px);
  padding: clamp(10px, 2vw, 15px) 0;
  flex-direction: row-reverse;
  white-space: nowrap;
  line-height: 1.4;
  width: 100%;
  justify-content: flex-end;
  position: relative;
  direction: rtl;
}

.footer-link:hover, .footer-link1:hover {
  color: #0A2C38;
  transform: translateX(8px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.footer-link img, .footer-link1 img {
  width: clamp(26px, 3.5vw, 34px);
  height: clamp(26px, 3.5vw, 34px);
  filter: none;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-right: clamp(10px, 2vw, 15px);
  margin-left: 0;
}

.footer-link:hover img, .footer-link1:hover img {
  transform: scale(1.15);
}

/* تصميم الشعار */
.footer-logo {
  height: clamp(120px, 18vw, 180px);
  width: auto;
  margin-bottom: clamp(15px, 3vw, 20px);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
  max-width: 100%;
}

.footer-logo:hover {
  transform: scale(1.05);
}

/* العنوان الفرعي */
.footer-subtitle {
  color: #666;
  font-family: 'Palestine', serif;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 400;
  margin-bottom: clamp(25px, 4vw, 35px);
  letter-spacing: 1px;
  line-height: 1.6;
  text-align: left;
}

/* زر النشرة البريدية */
/* .newsletter-button {
  background-color: #fbffa9;
  color: #000;
  padding: clamp(16px, 3vw, 20px) clamp(32px, 6vw, 45px);
  border: none;
  border-radius: 50px;
  font-family: 'Palestine', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 3vw, 22px);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: fit-content;
  align-self: flex-start;
} */

.newsletter-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.newsletter-button:hover::before {
  left: 100%;
}

/* .newsletter-button:hover {
  background: #FFC107;
  transform: translateY(-3px);
  box-shadow: none;
} */
.newsletter-button {
  background-color: #8f1eae !important;
  color: #fff !important;
  padding: 10px 20px;       /* 👈 صغّر الـ padding */
  border: none;
  border-radius: 50px;
  font-family: 'Palestine', sans-serif;
  font-weight: 400;
  font-size: 18px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: auto;              /* 👈 يخلي العرض تلقائي حسب النص */
  min-width: unset;         /* 👈 يلغي الحد الأدنى */
  align-self: center;       /* 👈 يخليه بالنص */
  text-shadow: none !important;
  box-shadow: none !important;
}

.newsletter-button:hover {
  background-color: #761a90; /* درجة أغمق عند الهوفر */
  color: #fff;
}

/* الجزء السفلي */
.footer-bottom {
  text-align: center;
  padding: clamp(25px, 4vw, 35px) clamp(20px, 4vw, 40px);
  border-top: 1px solid #e9ecef;
  color: #666;
  font-family: 'Cairo', sans-serif;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 500;
  max-width: 1400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* إزالة الخط تحت الكلمات عند الوقوف عليها */
.footer-link::after, .footer-link1::after {
  display: none;
}
.footer-center * {
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* لو الشعار فيه drop-shadow مدموج */
.footer-logo {
  filter: none !important;
  box-shadow: none !important;
}

/* زر النشرة البريدية بدون أي ظل */
.newsletter-button {
  box-shadow: none !important;
  text-shadow: none !important;
}
.footer-link,
.footer-link1,
.footer-link img,
.footer-link1 img {
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Responsive Design للموبايل */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    padding: 0 20px;
    justify-content: center;
    padding-right: 20px;
  }

  .footer-center {
    order: 1;
    text-align: center;
    align-items: center;
    max-width: none;
  }

  .footer-container {
    order: 2;
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .footer-column1, .footer-column {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-link, .footer-link1 {
    justify-content: center;
    width: fit-content;
    flex-direction: row-reverse;
  }

  .footer-link img, .footer-link1 img {
    margin-right: clamp(8px, 2vw, 12px);
    margin-left: 0;
  }

  .footer-subtitle {
    text-align: center;
  }

  .newsletter-button {
    align-self: center;
  }

  .footer-logo {
    height: clamp(100px, 15vw, 140px);
  }

  .footer-subtitle {
    font-size: clamp(18px, 4vw, 22px);
  }

  .newsletter-button {
    padding: 16px 32px;
    font-size: clamp(16px, 3vw, 20px);
  }
}
