/* --- تثبيت الهوية البصرية (المتغيرات اللونية) --- */
:root {
    --ishtar-blue: #1D53BD;
    --ishtar-light-red: #cc331f;
    --babylon-gold: #C4A81F;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --text-dark: #333333;
}

/* --- التنسيقات الأساسية --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- تصميم الترويسة الموحد (بوابة عشتار الكبيرة) --- */
header {
    background-color: var(--ishtar-blue) !important;
    color: var(--white) !important;
    padding: 15px 50px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 5px solid var(--babylon-gold) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 40px !important;
}

.logo-container img {
    width: 90px !important; 
    height: auto !important;
}

.logo-text h1 {
    font-size: 1.5rem !important;
    color: var(--babylon-gold) !important;
    font-weight: 900 !important;
}

.logo-text p {
    font-size: 0.9rem !important;
    color: var(--white) !important;
    letter-spacing: 1px !important;
}

nav {
    display: flex !important;
    align-items: center !important;
}

nav ul {
    list-style: none !important;
    display: flex !important;
    gap: 25px !important;
    flex-wrap: wrap !important;
}

nav ul li a {
    text-decoration: none !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease !important;
}

nav ul li a:hover {
    color: var(--babylon-gold) !important;
}

/* --- الفوتر الأسود الفاخر الموحد لكل صفحات الموقع --- */
footer {
    background-color: #1A1A1A !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 25px 15px !important;
    border-top: 4px solid var(--babylon-gold) !important;
    font-size: 0.85rem !important;
    width: 100% !important;
    margin-top: auto !important;
    display: block !important;
}

footer p {
    margin-bottom: 8px !important;
    color: #ffffff !important;
    text-align: center !important;
}

footer .footer-links {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 10px !important;
    flex-wrap: wrap !important;
}

footer .footer-links a {
    color: var(--babylon-gold) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: color 0.3s ease !important;
}

footer .footer-links a:hover {
    color: #ffffff !important;
}

/* --- قسم الترحيب (Hero Section) --- */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--white);
    border-bottom: 3px dashed var(--ishtar-blue);
}

.hero-section h2 {
    font-size: 2.5rem;
    color: var(--ishtar-blue);
    margin-bottom: 20px;
}


.hero-section h3 {
    font-size: 2.5rem;
    color: var(--ishtar-light-red);
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* --- الحاوية الرئيسية للواتساب --- */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 10px; 
    z-index: 1000;
}

/* --- القائمة المنبثقة للواتساب --- */
.whatsapp-menu {
    position: absolute;
    bottom: 70px; 
    right: 30px; 
    width: 200px;
    background-color: var(--white);
    border: 2px solid var(--babylon-gold);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.whatsapp-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.wa-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: var(--light-bg);
    transition: all 0.3s ease;
}

.wa-item:hover {
    background-color: var(--ishtar-blue);
    color: var(--white);
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border: 3px solid var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    outline: none;
    position: relative; 
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* --- تجاوب الشاشات للهيدر والفوتر العالمي --- */
@media (max-width: 768px) {
    header {
        padding: 15px !important;
        justify-content: center !important;
        text-align: center !important;
    }
    header .logo-container {
        flex-direction: column !important;
        gap: 8px !important;
    }
    header nav ul {
        justify-content: center !important;
        gap: 15px !important;
    }
}
/* ===================================================
   👑 نظام القائمة المنسدلة الذكية (Dropdown Menu) 
   =================================================== */

/* 1. تجهيز العنصر الأب في الهيدر ليحتضن القائمة الفرعية */
.dropdown-parent {
    position: relative !important;
}

/* 2. صندوق القائمة المنسدلة (أبيض، بحافة ذهبية، وظل ناعم) */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important; /* الانبثاق من اليمين ليتوافق مع لغة الموقع العربية RTL */
    background-color: #ffffff !important;
    min-width: 290px !important; /* عرض مريح جداً للنصوص الطويلة */
    box-shadow: 0 10px 30px rgba(29, 83, 189, 0.15) !important;
    border-top: 4px solid #C4A81F !important; /* اللمسة البابلية الذهبية */
    border-radius: 0 0 10px 10px !important;
    display: none !important; /* مخفية افتراضياً وتظهر فقط بالماوس */
    list-style: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    z-index: 99999 !important; /* تطفو فوق كتل الشاشة والزجاج */
}

/* 3. عناصر القائمة المنسدلة عمودياً */
.dropdown-menu li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* 4. تصميم روابط الأقسام الداخلية */
.dropdown-menu li a {
    display: block !important;
    padding: 14px 20px !important;
    color: #2D3748 !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    text-decoration: none !important;
    border-bottom: 1px solid #EDF2F7 !important;
    text-align: right !important;
    background: none !important;
    transition: all 0.25s ease-in-out !important;
}

/* إزالة خط الفصل السفلي لآخر قسم في المنيو */
.dropdown-menu li:last-child a {
    border-bottom: none !important;
}

/* 5. حركات التفاعل والانزلاق عند تمرير الماوس فوق خيارات الأقسام */
.dropdown-menu li a:hover {
    background-color: #F4F7FC !important; /* لمعان أزرق خفيف جداً بالخلفية */
    color: #1D53BD !important; /* قلب لون الكتابة للأزرق الرسمي */
    padding-right: 28px !important; /* إزاحة يمنية ناعمة تعطي انطباع الـ 3D التفاعلي */
}


/* 6. الزناد السحري: إظهار المنيو فورياً وبنعومة انزلاقية عند وقوف الماوس على العنوان الأب */
.dropdown-parent:hover .dropdown-menu {
    display: block !important;
    animation: dropdownSlideEffect 0.25s ease-out !important;
}

/* حركة الأنيميشن للانزلاق من الأعلى للأسفل */
@keyframes dropdownSlideEffect {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
