/* استدعاء خط Cairo من جوجل */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

/* تطبيق الخط على جميع عناصر الموقع */
html, body, p, a, h1, h2, h3, h4, h5, h6, span, div, li, input, textarea, button {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700; /* لجعل الخط عريض (Bold) بشكل افتراضي */
}

/* تحسين شكل الخط ليكون مريحاً للعين */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

--------------------------------------
/* =========================================
   إعدادات قسم الهيرو (الترتيب الرأسي الجديد)
========================================= */
.modern-stacked-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* توسيط جميع العناصر */
    padding: 60px 20px;
    max-width: 900px; /* تصغير العرض قليلاً ليكون النص مقروءاً ومريحاً للعين */
    margin: 0 auto;
    font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7f6 100%);
    border-radius: 24px;
    overflow: hidden;
}

.hero-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- تنسيقات النصوص --- */
.hero-subtitle {
    color: #007bff;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 8px 25px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-weight: 900;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.9;
    max-width: 750px; /* تحديد عرض النص حتى لا يكون طويلاً جداً ومزعجاً في القراءة */
    margin: 0 auto;
}

/* --- الصورة والحركة الهندسية (Morphing Blob) --- */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* المسافة بين الصورة والنص الذي تحتها */
    width: 100%;
}

.morphing-image {
    width: 100%;
    max-width: 400px; /* حجم الصورة للكمبيوتر */
    height: 400px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphingBlob 8s ease-in-out infinite;
}

@keyframes morphingBlob {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* --- كلاسات الجافاسكريبت للحركة (Animations CSS) --- */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.reveal-element.active, 
.reveal-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- التجاوب مع شاشات الجوال (Responsive Design) --- */
@media (max-width: 768px) {
    .modern-stacked-hero {
        padding: 40px 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .morphing-image {
        height: 280px; /* تصغير الصورة للموبايل */
        max-width: 280px;
    }

    .hero-description {
        font-size: 1.05rem;
    }
}





------------------------------------------------

/* حاوية عرض الـ PDF */
.pdf-viewer-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
}

/* الرأس العلوي (العنوان وزر التحميل) */
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.pdf-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

/* زر التحميل */
.download-pdf-btn {
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
}

.download-pdf-btn:hover {
    background-color: #0056b3;
}

/* غلاف الإطار لضمان التجاوب */
.pdf-frame-wrapper {
    position: relative;
    width: 100%;
    background: #525659; /* لون خلفية القارئ الافتراضي */
}

/* تعديلات الجوال */
@media (max-width: 768px) {
    .pdf-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pdf-frame-wrapper iframe {
        height: 450px; /* تقليل الارتفاع في الموبايل */
    }
}




------------------------------------------------


/* منع التفاف النص في القائمة العلوية وجعل العناصر بجانب بعضها */
nav ul, .header-navigation, .main-menu { 
    display: flex !important;
    flex-wrap: nowrap !important; /* يمنع نزول النص تحت بعضه */
    align-items: center !important;
    justify-content: center !important; /* لتوسيط القائمة */
}

nav ul li, .menu-item {
    white-space: nowrap !important; /* يمنع كسر الجملة الطويلة لسطرين */
    margin-left: 15px !important; /* مسافة بين العناصر */
    margin-right: 15px !important;
}

/* تعديل عرض الروابط داخل القائمة */
nav ul li a {
    display: inline-block !important;
    width: auto !important;
}