/* =====================================================
   main.css - جمعية تواد - النسخة الموحدة v2.0
   ===================================================== */

/* ===== متغيرات CSS الأساسية ===== */
:root {
  --primary:       #1E2B6E;
  --primary-dark:  #151f52;
  --primary-light: #2a3a8f;
  --secondary:     #8B7355;
  --secondary-light:#a08870;
  --bg:            #F5EDE0;
  /*--bg-light:      #FAF7F2;*/
  --text-dark:     #1A2040;
  --text-muted:    #6c757d;
  --white:         #FFFFFF;
  --border:        #e8e0d5;
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --info:          #3b82f6;
  --shadow:        0 4px 20px rgba(30,43,110,0.12);
  --shadow-lg:     0 10px 40px rgba(30,43,110,0.18);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --transition:    0.3s ease;

  /* ألوان البلوكات - تُستبدل من قاعدة البيانات */
  --body-bg:           #f6f3f8;
  --hero-bg:           linear-gradient(135deg, #1E2B6E 0%, #2a3a8f 100%);
  --hero-text:         #ffffff;
  --stats-bg:          #F5EDE0;
  --stats-text:        #1E2B6E;
  --news-bg:           #ffffff;
  --news-text:         #1A2040;
  --events-bg:         #FAF7F2;
  --events-text:       #1A2040;
  --partners-bg:       #F5EDE0;
  --donations-bg:      #1E2B6E;
  --donations-text:    #ffffff;
  --footer-bg:         #1A2040;
  --footer-text:       #ffffff;

  /* الجوال */
  --primary: #8B7355;
  --white: #ffffff;
  --border: #eeeeee;
  --text-dark: #333333;
  --transition: 0.3s ease;

    --primary-color: #58337a; /* لون الهيرو والجمعية البنفسجي الأصلي */
    --secondary-color: #8a63a5;
    --accent-color: #e0aa3e; /* اللون الذهبي */
    --bg-light: #f6f3f8;
    --dark-purple: #231133;
    --card-radius: 24px;
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: var(--body-bg);
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  font-size: 16px;
  padding-top: 145px !important;
  /*color: #332d3a;*/
  margin: 0; padding: 0;
  overflow-x: hidden;

}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; }

/* ===== المرافق ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container1 { justify-content: center; width: fit-content; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-padding { padding: 40px 0; }

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

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header { margin-bottom: 50px; }

/* الخط المميز أسفل العنوان */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to left, var(--secondary), var(--primary));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ===== الأزرار ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-lg { padding: 15px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* ===== الشريط الإخباري ===== */
.news-ticker-bar {
  position: fixed; 
  height: 49px;
  background: var(--ticker-bg);
  color: var(--ticker-text);
  padding: 8px 0;
  overflow: hidden;
  width: 100%; 
  top: 0; 
  z-index: 1001;
}

.ticker-line {
  display:flex;
  align-items:center;
  overflow:hidden;
}

/* يمكنك تعديل مدة التحريك (30s) لتناسب طول النص وعدد الأخبار في الشريط */
.ticker-inner {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 20s linear infinite; /*reverse*/
}

.ticker-label {
  background: var(--ticker-lbg);
  color: var(--ticker-ltext);
  padding: 4px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 20px;
  flex-shrink: 0;
}

.ticker-group {
  display: flex; 
  align-items: center; 
  flex-shrink: 0;
}

.ticker-flex {
  overflow:hidden;
  flex:1;
}
.ticker-text {
  font-size: 0.9rem;
  color:var(--ticker-text);
  padding: 0 40px;
  text-decoration:none;
}

.ticker-text a,
.ticker-text a:hover,
.ticker-text a.active {
  color: var(--ticker-text);
}

.ticker-separator {
  color: var(--ticker-dot);
  margin: 0 10px;
  font-size: 1.2rem;
}

/* اختياري: توقف عند التمرير بالماوس */
.news-ticker-bar:hover .ticker-inner {
  animation-play-state: paused;
}

/* حركة التمرير من اليسار لليمين */
@keyframes tickerScroll {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(50%); }
}

/* ===== الهيدر ===== */
.site-header {
  background: var(--header-bg);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  /*position: sticky;*/
  z-index: 1000;

  /*background: rgba(255, 255, 255, 0.96);*/
  backdrop-filter: blur(15px);
  position: fixed;
  width: 100%;
  top: 49px; left: 0;
  box-shadow: 0 4px 30px rgba(88, 51, 122, 0.06);
  border-bottom: 1px solid rgba(88, 51, 122, 0.1);
  box-sizing: border-box;
  height: 80px;

}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*padding: 12px 0;*/
  gap: 20px;

  padding: 0 4%;
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;

}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  width: auto;
  height: 55px;
  max-height: 55px;
  object-fit: contain;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.logo-en {
  font-size: 0.7rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===== التنقل ===== */

/* ==================================================================
   [تعديل وإصلاح شامل] تنسيق القوائم الشجرية والفرعية اللانهائية
   ================================================================== */
/* 1. إعدادات القائمة الرئيسية (الشاشات الكبيرة) */

.main-nav { 
  display: flex; 
  align-items: center; 
  gap: 4px; 
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0; padding: 0;
}

.main-nav ul li {
    position: relative; /* نقطة الارتكاز لكي تظهر القائمة الفرعية تحت الأب تماماً */
    display: inline-block;     /* الحفاظ على تدفق العناصر بجانب بعضها */
    vertical-align: top;       /* الحل السحري: إجبار المتصفح على محاذاة العناصر من الأعلى ومنع نزولها */
}
.main-nav a {
    color: var(--nav-text);
    font-weight: 700;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: all var(--transition);
    font-size: 0.92rem;  
    position: relative;
    white-space: nowrap;
}

/* 2. القائمة الفرعية الأولى (الابن الأول) */
.main-nav .dropdown-menu {
    position: absolute;
    top: 100%; 
    right: 0; /* تحاذي الأب من جهة اليمين */
    background: var(--header-bg);
    box-shadow: 0 8px 25px rgba(88, 51, 122, 0.1);
    border-radius: 12px;
    padding: 10px 0 !important;
    min-width: 200px;
    display: flex;
    flex-direction: column !important;
    gap: 0 !important;
    
    /* جعلها منطوية ومخفية تماماً بافتراضياً */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    z-index: 2000;
    border: 1px solid rgba(88, 51, 122, 0.05);
}

.main-nav .dropdown-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-size: 0.95rem;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}

/* 3. إصلاح مشكلة "ابن الابن" (القوائم الفرعية العميقة) */
/* جعلها تفتح جانباً إلى اليسار تماماً وليس لأسفل لمنع دفع العناصر */
.main-nav .dropdown-menu .sub-dropdown {
    top: 0;
    /* right: 100%; */ /* دفع القائمة لتنبثق عرضياً بجانب القائمة الفرعية السابقة */
    /* margin-right: 2px; */
    /* transform: translateX(10px); */ /* اتجاه الحركة الجانبية عند الظهور */
    left: 100%; /* !important; */ /* التعديل الجوهري: تفتح لليسار موازية وبجانب القائمة السابقة تماماً */
    /* right: auto !important; *//* عطلتها لأني أرىأن ماله داعي بعد تعديل الاتجاه */ /* إلغاء التموضع القديم */
    margin-left: 2px;      /* مسافة ناعمة تفصل الفروع */
    transform: translateX(-10px); /* اتجاه حركة الظهور الانسيابية */
}

/* 4. تفعيل ميزة الظهور التلقائي الناعم عند تمرير الماوس */
/* إظهار الابن الأول عند الوقوف على الأب الرئيسي */
.main-nav ul li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* إظهار ابن الابن عند الوقوف على الابن الأول بشكل مستقل */
.dropdown-menu li:hover > .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 3. إصلاح لون الخلفية (الـ Hover) داخل القوائم الفرعية ليتناسب مع الهوية العامة للجمعية */
.dropdown-menu li a:hover {
    background-color: rgba(88, 51, 122, 0.05) !important; /* لون بنفسجي ناعم جداً وشفاف بدلاً من البيج المزعج */
    color: var(--primary-color) !important;                /* بقاء النص بالبنفسجي الغامق المتناسق */
    border-radius: 8px;                                    /* حواف دائرية ناعمة تتناغم مع الصندوق الكبير */
}

/* تأمين مسافات مبطنة داخل القائمة لمنع التصاق الـ Hover بالحواف */
.dropdown-menu li {
    padding: 2px 10px;
}


/* التنسيق الجانبي النظيف للكمبيوتر */
.pc-sub-dropdown {
    position: absolute; 
    top: 100%; 
    right: 0; 
    background: #fff; 
    min-width: 190px;
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    transition: all 0.25s ease;
    box-shadow: 0 8px 25px rgba(88, 51, 122, 0.1); 
    border-radius: 12px; 
    padding: 10px 0 !important;
}
.pc-sub-dropdown .pc-sub-dropdown 
{ 
    top: 0; 
    right: 100%; 
    margin-right: 2px; 
    transform: translateX(10px); 
}

.pc-sub-dropdown li:hover > .pc-sub-dropdown 
{ 
    opacity: 1; 
    visibility: visible; 
    transform: translateX(0); 
}

/* إصلاح هندسي شامل وعاجل لنزول قائمة الكمبيوتر */
.desktop-only-nav ul {
    display: flex;
    align-items: center; /* الحل السحري: محاذاة كافة الروابط والدروب داون عمودياً على خط مستقيم واحد */
    gap: 10px;
}
.desktop-only-nav ul li {
    position: relative;
    display: block;
}
.desktop-only-nav ul li:hover > .pc-sub-dropdown 
{ 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

/*
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0; padding: 0;
    align-items: center; /* توسيط عمودي سحري يمنع نزول الروابط نهائياً *//*
}

.main-nav ul li {
    position: relative;
}

.main-nav a {
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(30,43,110,0.06);
  /*background: rgba(88, 51, 122, 0.08);
  color: var(--secondary-color);*//*
}

/* Dropdown */
/*.nav-dropdown, .nav-dropdown2 { position: relative; }

.nav-dropdown > a::after, .nav-dropdown2 > a::after {
  content: '▾';
  font-size: 0.75rem;
  margin-right: 4px;
}

.dropdown-menu, .dropdown-menu2 {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  border: 1px solid var(--border);
  z-index: 100;
}

.dropdown-menu2 {
  right: 50px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown2:hover .dropdown-menu2 {
  /*position: relative;*//*
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a, .dropdown-menu2 a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
  border-radius: 0;
  white-space: nowrap;
}

.dropdown-menu a:hover, .dropdown-menu2 a:hover {
  background: var(--bg);
  color: var(--primary);
}
*/
/* زر التبرع */
.btn-donate {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(139,115,85,0.35);
}

.btn-donate:hover {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139,115,85,0.45);
}

/* قائمة الجوال */

/* زر الهامبرغر */

.hamburger {
    display: none !important; /* تأكد أنه يظهر في الجوال */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* قائمة الجوال الرئيسية */
.mobile-nav {
    display: none; /* مخفية افتراضياً */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a, .mobile-dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
/*
  display: block;
  padding: 12px 0;
*/
}

/* تنسيق الدروب داون */
.mobile-dropdown-menu {
    display: none; /* مخفي افتراضياً */
    /*background: #f9f9f9;*/
    background: rgba(0, 0, 0, 0.025); 
    padding-right: 15px; /* إزاحة لجهة اليمين لتبدو كقائمة فرعية */
}

.mobile-dropdown-menu a {
    font-weight: 400;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

/* السهم الصغير */
.arrow {
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

/* .mobile-nav-dropdown.open .arrow { */
.mobile-nav-dropdown.open > .mobile-dropdown-trigger > .arrow {
    transform: rotate(-135deg);
}

.mobile-nav-dropdown.open > .mobile-dropdown-menu {
    display: block;
}

/* old

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }

.mobile-nav.active { display: block; }
*/

/* ===== Hero ===== */
.hero-section {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="60" fill="rgba(255,255,255,0.03)"/></svg>');
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span { color: var(--secondary); }

.hero-description {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 35px;
  max-width: 550px;
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }



/* ===== بلوك الإحصائيات ===== */
.stats-section {
  background: var(--stats-bg);
  color: var(--stats-text);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  border-top: 4px solid var(--primary);
}

.stat-card:hover { transform: translateY(-5px); }

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== بطاقات الأخبار والمناسبات ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 200px;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition);
}

.card:hover .card-image img { transform: scale(1.05); }

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-date {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 15px;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
}

.card-link:hover { color: var(--secondary); }

/* ===== بلوك التبرعات ===== */
.donations-section { background: var(--donations-bg); color: var(--donations-text); }

.donation-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}

.donation-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.donation-card .card-image { background: rgba(255,255,255,0.1); }

.donation-card .card-body { color: inherit; }

.donation-card .card-title { color: var(--white); }

.progress-bar-wrap {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  height: 10px;
  margin: 12px 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to left, var(--secondary), var(--secondary-light));
  border-radius: 10px;
  transition: width 1s ease;
}

.donation-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 15px;
}

/* ===== شركاء النجاح ===== */
.partners-section { background: var(--partners-bg); padding: 60px 0; }

.partner-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  height: 100px;
  transition: transform var(--transition);
}

.partner-slide:hover { transform: scale(1.05); }

.partner-slide img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition);
}

.partner-slide:hover img { filter: none; opacity: 1; }


/* ==================================================================
   [النافذة المنبثقة للتكبير الشامل الآمن للموقع]
   ================================================================== */
img:not(a img) { 
    cursor: zoom-in; 
}

.lightbox-overlay { 
    display: none; 
    position: fixed; 
    z-index: 9999; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0, 0, 0, 0.85); 
    align-items: center; 
    justify-content: center; 
    cursor: zoom-out; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

.lightbox-overlay.show { 
    display: flex; 
    opacity: 1; 
}

.lightbox-content { 
    max-width: 85%; 
    max-height: 85%; 
    object-fit: contain; 
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); 
    transform: scale(0.9); 
    transition: transform 0.3s ease; 
}

.lightbox-overlay.show .lightbox-content { 
    transform: scale(1); 
}

.lightbox-close { 
    position: absolute; 
    top: 30px; right: 40px; 
    color: #fff; 
    font-size: 50px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.2s; 
}

.lightbox-close:hover { 
    color: #b58d4a; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: scale(0.98); } 
    to { opacity: 1; transform: scale(1); } 
}

@keyframes pulse { 
    0% { transform: scale(1); opacity: 0.9; } 
    50% { transform: scale(1.03); opacity: 1; } 
    100% { transform: scale(1); opacity: 0.9; } 
}

/* ===== الفوتر ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.footer-logo { height: 60px; object-fit: contain; margin-bottom: 15px; }

.footer-desc {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  padding: 5px 0;
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--secondary); }

.bank-item {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  margin-bottom: 10px;
  border-right: 3px solid var(--secondary);
}

.bank-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.bank-iban {
  font-size: 0.8rem;
  opacity: 0.75;
  font-family: monospace;
  direction: ltr;
  text-align: left;
}

.footer-map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 10px;
}

.footer-map iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: var(--radius-sm);
}

.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ===== شريط التقدم العام ===== */
.progress-wrap {
  background: var(--border);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to left, var(--primary), var(--primary-light));
  border-radius: 10px;
  transition: width 1s ease;
}

/* ===== الشارات ===== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-secondary{ background: #f3f4f6; color: #374151; }
.badge-primary  { background: #dbeafe; color: #1e40af; }

/* ===== Timeline (صفحة التاريخ) ===== */
.timeline { position: relative; padding: 20px 0; }

.timeline::before {
  content: '';
  position: absolute;
  right: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
}

.timeline-item:nth-child(even) .timeline-content { order: 3; }
.timeline-item:nth-child(even) .timeline-empty   { order: 1; }

.timeline-dot {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 0 0 5px rgba(30,43,110,0.15);
  z-index: 1;
  flex-shrink: 0;
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.timeline-content:hover { transform: translateY(-3px); }

.timeline-year {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--bg);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.timeline-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.timeline-empty { visibility: hidden; }


/* ===== hik (صفحة حكايتنا) ===== */
.hik { position: relative; padding: 20px 0; }
/*
.hik::before {
  content: '';
  position: absolute;
  right: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(50%);
}
*/
.hik-item {
  display: grid;
  grid-template-columns: auto;
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
}

.hik-item:nth-child(even) .hik-content { order: 3; }
.hik-item:nth-child(even) .hik-empty   { order: 1; }

.hik-dot {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 0 0 5px rgba(30,43,110,0.15);
  z-index: 1;
  flex-shrink: 0;
}

.hik-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.hik-content:hover { transform: translateY(-3px); }

.hik-year {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--bg);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
}

.hik-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.hik-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hik-empty { visibility: hidden; }

/* ===== رجال القبيلة ===== */
.tribe-men-grid-f {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(auto-fill, 1fr));
  /*grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
  gap: 30px;
  margin-bottom: 30px;
}

.tribe-men-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  /*grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
  gap: 30px;
}

.tribe-man-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  /*cursor: pointer;*/
}

.tribe-man-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.tribe-man-btn {
  margin-top:12px;
  font-size:0.8rem;
  color:var(--secondary);
  cursor: pointer;
}

.tribe-man-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 4px solid var(--bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tribe-man-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
  margin: 0 auto 15px;
}

.tribe-man-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.4;
}

.tribe-man-title {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 400;
  margin-bottom: 12px;
}

.tribe-man-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== النماذج ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,43,110,0.1);
}

.form-control::placeholder { color: #aaa; }

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E2B6E'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-left: 40px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ===== التنبيهات ===== */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-warning { background: #fef3c7; border: 1px solid #fde68a; color: #92400e; }
.alert-info    { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }

/* ===== المودال ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal-overlay.active .modal-box { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bg);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all var(--transition);
}

.modal-close:hover { background: #fee2e2; color: var(--danger); }

/* ===== صفحة Hero الداخلية ===== */
.page-hero {
  background: var(--hero-page-bg);/*linear-gradient(135deg, var(--primary), var(--primary-light));*/
  color: var(--hero-page-text);
  padding: 60px 0;
  text-align: center;
  margin-top:-20px;
}

.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p  { opacity: 0.85; font-size: 1.05rem; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .separator { color: var(--text-muted); }

/* ===== نموذج الأعمال والمناسبات ===== */
.form-section {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.form-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

/* تغيير شكل الماوس لأي صورة قابلة للتكبير في الموقع */
img:not(a img) {
    cursor: zoom-in;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .timeline::before { display: none; }
  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  .timeline-item:nth-child(even) .timeline-content { order: 2; }
  .timeline-item:nth-child(even) .timeline-empty   { display: none; }
  .timeline-empty { display: none; }

  .hik::before { display: none; }
  .hik-item {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  .hik-item:nth-child(even) .hik-content { order: 2; }
  .hik-item:nth-child(even) .hik-empty   { display: none; }
  .hik-empty { display: none; }

  /*.hamburger { display: none; }*/

}

@media (max-width: 768px) {
  .container { grid-template-columns: 1fr; }
  .container1 { grid-template-columns: 1fr; }
  .section-padding { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }
  .hero-section { padding: 70px 0; }
  .hero-title { font-size: 2rem; }
  .main-nav { display: none; }
  .hamburger { display: flex !important; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }

/* فرض العرض الكامل ومنع التمدد */
    html, body {
        width: 100%;
        overflow-x: hidden; /* إخفاء أي شيء يخرج عن نطاق العرض */
    }

    /* إجبار الهيدر والفوتر والحاويات الرئيسية على أخذ عرض الشاشة بالكامل */
    header, footer, .container, .row-container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 5px !important;  /* هامش بسيط جداً للراحة */
        padding-right: 5px !important;
        box-sizing: border-box !important;
    }  

}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .container1 { padding: 0 15px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .tribe-men-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal-box { padding: 25px 20px; }
}

/* تأثير رسم دائرة يدوية حمراء حول الكلمة */
/*
.headline {
  font-family: sans-serif;
  font-size: 40px;
  align-items: center;
  color: #333;
  direction: rtl; 
  display: flex;
  gap: 10px;
}
*/
/* الحاوية المحيطة بالكلمة */
.circle-highlight {
  position: relative;
  display: inline-block;
  padding: 5px 15px; /* مسافة أمان لكي لا يمر الخط فوق الحروف */
  color: #fdf17f;
}

/* تنسيق الـ SVG ليكون خلفية متحركة فوق وتحت الكلمة */
.hand-drawn-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* لجعل الخط يظهر بوضوح */
  pointer-events: none; /* لمنع الدائرة من إعاقة تحديد النص */
}

/* تنسيق الخط الأحمر المرسوم داخل الـ SVG */
.hand-drawn-circle path {
  fill: none;
  stroke: #e74c3c; /* اللون الأحمر */
  stroke-width: 3; /* سماكة الخط */
  stroke-linecap: round;
  stroke-linejoin: round;

  /* سر الأنيمايشن: تحديد طول الخط البرمجي وإخفائه بالكامل في البداية */
  stroke-dasharray: 500;
  stroke-dashoffset: 500;

  /* استدعاء الحركة عند تحميل الصفحة مباشرة */
  animation: drawPerfectCircle 1.5s ease-out forwards;
}

/* الأنيمايشن الذي يسحب الخط ليظهر كأنه يُرسم بقلم الآن */
@keyframes drawPerfectCircle {
  to {
    stroke-dashoffset: 0; /* يسحب الإخفاء ليرتسم الخط بالكامل حول الكلمة */
  }
}


/* ==================================================================
   [عرض الصور في الخبر]
   ================================================================== */
/* الحاوية الأساسية الصور */
.news-grid-item { 
    width: 100%; 
    direction: rtl; 
    /*background: #1E2B6E; */
    padding: 0; /* تم إضافة بادئة لتوفير مساحة داخلية */
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    position: relative; 
    margin-top: 25px;
}

/* حاوية الصور الخاصة بالخبر */
.news-gallery {
    display: flex;
    flex-wrap: wrap; /* هذا السطر يسمح للصور بالنزول لسطر جديد تلقائياً */
    gap: 10px; /* الفراغ البسيط بين الصور */
    width: 100%;
}

/* التحكم بالصور داخل الحاوية */
.news-gallery img {
    /* حساب العرض: هنا يعرض 3 صور في السطر مع خصم الفراغات */
    width: calc((100% - 30px) / 4); 
    height: auto; /* الحفاظ على أبعاد الصورة */
    object-fit: cover; /* لضمان عدم تشوه الصورة */
    border-radius: 4px; /* زوايا منحنية بسيطة حسب الرغبة */
}

/* ==================================================================
   [التوافقية المتكاملة مع الجوال] شاشات الموبايل والتابلت
   ================================================================== */
/* تحويل القائمة تلقائياً على الجوال لشريط منسدل انسيابي ومتطابق */
@media (max-width: 992px) {
    .desktop-only-nav { display: none !important; } /* ok */
    /*.mobile-menu-toggle { display: flex; }*/

    /*.mobile-only-nav {
        position: absolute; top: 80px; left: 0; width: 100%; background: #ffffff;
        box-shadow: 0 10px 20px rgba(88, 51, 122, 0.08); z-index: 999; display: none !important;
    }
    .mobile-only-nav.active { display: block !important; } /* تفتح بـ كلاس دالتك المفضلة *//*
    
    .mobile-only-nav ul { flex-direction: column; padding: 20px; gap: 5px; }

    .mobile-only-nav .pc-sub-dropdown {
        position: static;/* !important;*/ /* إلغاء الطيران الجانبي تماماً *//*
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        transform: none !important;
        /*padding: 5px 15px 5px 0 !important; /* إزاحة ناعمة لجهة اليمين لتبين التبعية الشجرية *//*
        background: rgba(88, 51, 122, 0.03) !important; /* خلفية شفافة لتمييز الفروع *//*
        box-sizing: border-box !important;
        margin: 0 !important;
    }*/
    
    .main-nav {
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(88, 51, 122, 0.08);
        border-top: 1px solid rgba(88, 51, 122, 0.05); /*  التعديل الأول */
        max-height: 0;  /*  التعديل الأول */
        overflow: hidden; /*  التعديل الأول */
        /* transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); التعديل الأول*/
        transition: max-height 0.4s ease; /*  التعديل الثاني */

        display: none; /*  التعديل الثالث */ /* يتم التحكم بالظهور آلياً عبر كلاس .active التابع لدالتك */
        z-index: 999; /*  التعديل الثالث */
    }
    /* عندما تصبح القائمة نشطة على الموبايل */
    .main-nav.active { 
        /* max-height: 400px;  */
        max-height: 80vh; /* تحديد أقصى ارتفاع مسموح به مع إمكانية التمرير */
        overflow-y: auto; 
        display: block !important; /*  التعديل الثالث */
    }
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        /* gap: 10px;
        text-align: center; */
        gap: 5px;
    }
    .main-nav a {
        display: block;
        padding: 12px;
    }

    /* إلغاء الاندفاع الجانبي والظهور المطلق على الجوال لتناسب الشاشة الطولية */
    .main-nav .dropdown-menu,
    .main-nav .dropdown-menu .sub-dropdown {
        position: relative; /* !important; */ /* إلغاء الطيران الجانبي تماماً */
        box-shadow: none;
        background: rgba(88, 51, 122, 0.03);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* إخفاؤها لتفتح عند التفاعل */ /* غير موجود بالتعديل الثالث */
        padding-right: 15px !important;
        border: none;
        min-width: auto;
    }

    /* فتح القوائم الفرعية بسلاسة تحت بعضها عند وقوف الماوس أو اللمس في الموبايل */
    .main-nav ul li:hover > .dropdown-menu,
    .dropdown-menu li:hover > .sub-dropdown {
        display: block;
    }

    /* فتح القائمة الفرعية التلقائي على الجوال عند اللمس */
    .main-nav .dropdown-menu.open {
        display: block !important;
    }

    /* جعل القائمة الفرعية على الجوال مفرودة ومنسدلة لأسفل بشكل أنيق ولائق */
    .mobile-sub-menu {
        position: static; box-shadow: none; background: rgba(88, 51, 122, 0.03);
        padding-right: 15px !important; border: none; display: none; /* تنطوي وتفتح باللمس */
    }
    .mobile-dropdown-trigger.open > .mobile-sub-menu {
        display: block !important; /* تفتح بتناغم تام مع الكلاس open التابع لدالتك */
    }
 }
