



/* ===============================
   1) سهم Google (Chevron)
=============================== */
header .dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .25s ease;
  z-index: 50;
}

header .group:hover > .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  color: #065f46;
  transition: .25s ease;
}

.nav-link:hover {
  background: #ecfdf5;
}

.dropdown-item {
  display: block;
  padding: 8px 15px;
  font-size: 15px;
  color: #333;
  transition: .25s ease;
}

.dropdown-item:hover {
  background: #f0fdf4;
  color: #065f46;
}

.chevron, .chevron-left {
  width: 14px;
  height: 14px;
}


.chevron {
    width: 16px;
    height: 16px;
    stroke: #444;
    transition: transform 0.25s ease;
}

.group:hover > a .chevron {
    transform: rotate(180deg);
}

/* ===============================
   2) القائمة المنسدلة — تأثير Google
=============================== */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    background: white;
    border: 1px solid #ebebeb;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 8px 0;
}

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

/* ===============================
   3) عناصر القائمة — Google Style
=============================== */
.dropdown-item {
    padding: 10px 16px;
    display: block;
    color: #333;
    font-size: 15px;
    transition: 0.25s;
}

.dropdown-item:hover {
    background: #f1f3f4;
    color: #000;
}

/* ===============================
   4) القائمة الفرعية (يمين)
=============================== */
.dropdown-sub {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.25s ease;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 8px 0;
}

.group/sub:hover .dropdown-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* السهم الفرعي */
.chevron-left {
    width: 16px;
    height: 16px;
    stroke: #777;
    transition: transform 0.25s ease;
}

.group/sub:hover .chevron-left {
    transform: translateX(-3px);
}

/* ===============================
   5) قائمة الموبايل — Google Material
=============================== */
#mobileMenu {
    background: #ffffff;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -2px 0 20px rgba(0,0,0,0.1);
}

/* طبقة سوداء خلف المينيو */
#menuBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: none;
    z-index: 40;
}

#menuBackdrop.show {
    display: block;
}

/* ملخص الأقسام */
.mobile-dropdown summary {
    font-weight: 600;
    font-size: 18px;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.mobile-dropdown summary::-webkit-details-marker {
    display: none;
}

.mobile-dropdown[open] summary {
    color: #0d8b61;
}

.mobile-dropdown a {
    display: block;
    padding: 8px 0;
    padding-right: 12px;
    color: #444;
}

.mobile-dropdown a:hover {
    color: #0d8b61;
}

/* =======================================================
   🔰 3) Highlight الصفحة الحالية
======================================================= */

.nav-link.active,
.mobile-link.active,
.dropdown-item.active {
  color: #007A45 !important;
  font-weight: 700;
}

/* =======================================================
   🔰 4) قائمة الموبايل (Google-style)
======================================================= */

#mobileToggle {
  cursor: pointer;
}

#mobileMenu {
  transition: transform .35s ease;
  transform: translateX(100%);
}

.mobile-link {
  padding: 10px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid #f1f1f1;
}

.mobile-dropdown summary {
  font-weight: bold;
  cursor: pointer;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.mobile-dropdown a {
  display: block;
  padding: 8px 15px;
  color: #065f46;
  transition: .2s ease;
}

.mobile-dropdown a:hover {
  background: #e9fdf4;
}

nav .group div a:hover {
  background: #ecfdf5;
}


.goal-item::before {
  content: "●";
  color: #1e88e5;      /* نفس لون النقاط في نشاط */
  font-size: 18px;
  position: absolute;
  right: 0;
  top: 2px;
}


:root { 
    --brand:#065f46; 
    --brand-2:#10b981; 
}

* { 
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; 
}

/* الروابط */
.nav-link { color:#065f46; padding:6px 8px; border-radius:12px; }
.nav-link:hover { background:#ecfdf5; }
.mobile-link { padding:10px 12px; border-radius:10px; color:#065f46; background:#ecfdf5; }

/* الأزرار */
.btn-primary { background:#065f46; color:#fff; padding:10px 16px; border-radius:999px; font-weight:700; }
.btn-primary:hover { background:#064e3b; }

.btn-secondary { background:#ffffff; color:#065f46; padding:10px 16px; border-radius:999px; font-weight:700; border:1px solid #d1fae5; }
.btn-secondary:hover { background:#ecfdf5; }

/* الكروت العادية */
.card { 
    background:#fff; 
    border:1px solid #e5e7eb; 
    border-radius:16px; 
    padding:18px; 
    box-shadow: 0 10px 16px rgba(0,0,0,.04); 
    transform: translateY(16px); 
    opacity:.001; 
    transition:all .7s ease; 
}
.card[data-visible='true']{ 
    transform: translateY(0); 
    opacity:1; 
}

/* الفوتر */
footer a.footer-link { color:#c7ffef; }
footer a.footer-link:hover { color:#fff; text-decoration:underline; }

/* شعارات الشركاء */
.partner-logo { height:60px; width:auto; opacity:.95; filter:grayscale(10%); }

/* سطر الشركاء */
.marquee { mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track { animation: scroll 24s linear infinite; display:flex; gap:32px; align-items:center; }

@keyframes scroll { 
    from { transform: translateX(0); } 
    to { transform: translateX(-50%); } 
}

/* ─────────────────────────── */
/* 🔥 البطاقات الاحترافية الدائرية */
/* ─────────────────────────── */

.circle-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.circle-card {
    width: 280px;
    height: 360px;
    background: #ffffff;
    border-radius: 40px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    border: 1px solid #e6e6e6;
    transition: 0.35s ease;
    position: relative;
}

.circle-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* الأيقونة */
.circle-icon {
    width: 85px;
    height: 85px;
    background: var(--brand);
    color: white;
    font-size: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 15px;
    box-shadow: 0px 6px 12px rgba(6,95,70,0.4);
}

/* العنوان */
.circle-card h3 {
    font-size: 22px;
    color: var(--brand);
    margin-bottom: 12px;
    font-weight: bold;
}

/* النص */
.circle-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* زر المزيد */
.circle-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--brand);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.circle-btn:hover {
    background: #064e3b;
}

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

.whatsapp-float {
  z-index: 99999 !important;
}

/* =======================================================
   🔥 التعديلات لحل مشكلة تداخل العناصر في Hero Section
   ======================================================= */

/* 1. حل مشكلة الزر الأخضر الكبير "استكشف فعالياتنا" */
/* نفترض أن هذا الزر يستخدم فئة خاصة لقسم البطل */
.hero-cta-button {
    /* تطبيق ظل نصي (Text Shadow) لجعله يبرز على خلفية الصورة المزدحمة */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    color: #ffffff !important; /* لضمان أن النص أبيض وواضح */
    font-size: 1.5rem; /* لجعل النص أكبر وأكثر أهمية */
    font-weight: 700;
}

/* 2. حل مشكلة الزر الأبيض الدائري "اتصل بنا" */
/* نفترض أن هذا الزر يستخدم فئة خاصة للزر الدائري */
.contact-circle-button {
    /* زيادة عتامة الخلفية البيضاء لضمان الوضوح التام */
    background-color: rgba(255, 255, 255, 0.95);
    /* إضافة ظل بسيط لتحسين التباين على الصورة */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    /* التأكد من لون النص الداخلي ليكون قاتماً وواضحاً على الخلفية الفاتحة */
    color: var(--brand); /* استخدام اللون الأخضر الداكن للعلامة التجارية */
    font-weight: 700;
    /* إضافة حد بسيط لمزيد من التمييز */
    border: 1px solid rgba(0, 0, 0, 0.1); 
}

/* 3. تظليل الصورة الخلفية (اختياري لكن موصى به) */
/* إذا كان لديك عنصر حاوية حول الصورة والأزرار، استخدم هذه الفئة */
.hero-section-overlay {
    position: relative;
}

.hero-section-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* طبقة سوداء شفافة بنسبة 30% لتغميق الصورة الخلفية قليلاً */
    background-color: rgba(0, 0, 0, 0.3); 
    z-index: 1; /* تأكد أن هذه الطبقة أسفل الأزرار */
}

.text-shadow-strong {
    text-shadow: 0 0 8px rgba(0, 0, 0, 1), 0 0 15px rgba(0, 0, 0, 0.7);
}

/* ==================================================== */
/* 🔥 التعديلات المجمعة (تصغير الكروت وزيادة التباين) */
/* ==================================================== */

/* الفئة الجديدة لزيادة وضوح العنوان الرئيسي على الصورة */
.text-shadow-strong {
    text-shadow: 0 0 8px rgba(0, 0, 0, 1), 0 0 15px rgba(0, 0, 0, 0.7);
}

/* تنسيق البطاقات الدائرية (Circle Cards) - تم تعديل الهوامش والأبعاد */
.circle-cards {
    max-width: 1280px;
    /* 🛠️ تم التعديل: لتقليل التداخل ورفع البطاقات قليلاً وتقليل الهامش السفلي */
    margin: -50px auto 20px; 
    padding: 0 1rem;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
    .circle-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.circle-card {
    background: white;
    border-radius: 1.5rem;
    /* 🛠️ تم التعديل: لتقليل الحجم الكلي للبطاقة */
    padding: 1.5rem; 
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #ecfdf5; /* emerald-50 */
    transition: transform 0.3s ease;
}
.circle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.circle-icon {
    width: 80px;
    height: 80px;
    background: #d1fae5; /* green-100 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}
.circle-card h3 {
    /* 🛠️ تم التعديل: تصغير العنوان الداخلي */
    font-size: 1.25rem; 
    font-weight: 700;
    color: #065f46; /* emerald-800 */
    margin-bottom: 0.75rem;
}
.circle-card p {
    color: #4b5563; /* gray-600 */
    margin-bottom: 1.5rem;
}

/* تنسيق الأزرار - تم تعديل التباين */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #059669; /* emerald-600 */
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: background-color 0.3s, transform 0.2s;
    /* 🛠️ تم التعديل: إضافة ظل نصي لوضوح الزر الأخضر على الصورة */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9); 
}
.btn-primary:hover {
    background-color: #047857; /* emerald-700 */
    transform: translateY(-1px);
}
.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 9999px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    /* 🛠️ تم التعديل: إضافة ظل نصي لوضوح الزر الأبيض على الصورة */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9); 
}
.btn-secondary:hover {
    background-color: white;
    color: #059669; /* emerald-600 */
    transform: translateY(-1px);
}

/* ========================================= */
/*         تنسيقات شريط التنقل الرئيسي        */
/*           (Dropdown Menu - Desktop)        */
/* ========================================= */

.nav-link {
    /* تنسيق افتراضي للروابط العادية */
    color: #10b981; /* زمردي */
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0d8b57; /* زمردي أغمق عند التحويم */
}

/* القائمة المنسدلة الرئيسية (الـ Dropdown) */
.dropdown-menu {
    position: absolute;
    right: 0; /* يبدأ من اليمين بسبب dir="rtl" */
    top: 100%;
    z-index: 50;
    width: 250px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    margin-top: 10px;
    /* لإخفاء القائمة افتراضياً */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* إظهار القائمة عند التحويم على الـ group */
.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* رابط داخل القائمة المنسدلة */
.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #1f2937; /* رمادي داكن */
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap; /* لمنع كسر النص */
}

.dropdown-item:hover {
    background-color: #ecfdf5; /* خلفية زمردية فاتحة عند التحويم */
    color: #065f46;
}


/* ========================================= */
/*             القوائم الفرعية               */
/* ========================================= */

/* القائمة الفرعية (Sub-Dropdown) */
.dropdown-sub {
    position: absolute;
    right: 100%; /* تظهر على يسار القائمة الرئيسية في RTL */
    top: 0;
    z-index: 60;
    width: 200px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-right: 10px;
    /* إخفاء افتراضي */
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px); /* حركة انزلاق بسيطة */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* إظهار القائمة الفرعية عند التحويم على الـ group-sub */
.group-sub:hover .dropdown-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ========================================= */
/*           تنسيقات قائمة الجوال            */
/*              (Mobile Menu)               */
/* ========================================= */

/* حركة الانزلاق لفتح القائمة الجوال */
@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade li {
    animation: fade-in-down 0.4s ease-out forwards;
}

/* تنسيق زر القائمة المنسدلة في الجوال */
.mobile-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background-color: #f0fdf4; /* أخضر فاتح جداً */
    color: #065f46; /* أخضر داكن */
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #d1fae5;
    transition: background-color 0.2s;
}

.mobile-dropdown-btn:hover {
    background-color: #d1fae5;
}

/* تنسيق روابط القائمة الفرعية في الجوال */
.mobile-dropdown a {
    display: block;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 6px;
    color: #1f2937;
    transition: background-color 0.2s;
}

.mobile-dropdown a:hover {
    background-color: #ecfdf5;
    color: #065f46;
}

/* سهم القائمة الفرعية (JavaScript يتحكم بالـ rotate-180) */
.mobile-dropdown-btn svg {
    transition: transform 0.3s ease;
}

/* حجم الرسم البياني لمنع التمدد */
.chart-box canvas {
    height: 260px !important;
    max-height: 300px;
}

