/* =================================
   تنسيقات عامة - General Styles
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    background: white;
    color: #333;
}

/* =================================
   الشريط العلوي - Header
   ================================= */
.header {
    background: white;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 998; /* لضمان بقائه فوق المحتوى */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.logo {
    width: 60px;
    height: 60px;
    background: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(10px, 3vw, 30px);
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-menu a:hover {
    color: black;
}

/* =================================
   القائمة الجانبية - Sidebar
   ================================= */
.sidebar-toggle {
    background: #333;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px; /* لزيادة التباعد قليلاً */
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* يجب أن يكون فوق كل شيء */
}

.sidebar-toggle:hover {
    background: #555;
    transform: scale(1.05);
}

.sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* تحريك الخطوط عند الفتح */
.sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


.sidebar {
    position: fixed;
    top: 0; /* يبدأ من الأعلى */
    right: -260px; /* إخفاء القائمة خارج الشاشة */
    width: 250px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    right: 0; /* إظهار القائمة */
}

.sidebar-header {
    padding: 15px 20px;
    background: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #555;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #eee;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-right: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: #f5f5f5;
    border-right-color: #333;
    padding-right: 23px;
}


/* =================================
   قسم البداية - Hero Section
   ================================= */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(33, 33, 33, 0.7)), url('https://via.placeholder.com/1200x600.png?text=Background+Image') no-repeat center center/cover;
    color: white;
    padding: 60px 20px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-building {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.building-icon {
    width: clamp(150px, 30vw, 200px);
    height: clamp(120px, 25vw, 150px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* حجم النص داخل الأيقونة */
}


/* =================================
   الأزرار - Buttons
   ================================= */
.cta-button, .more-button, .join-button {
    background: black;
    color: white;
    padding: 12px 25px;
    border: 2px solid white;
    border-radius: 25px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover, .more-button:hover, .join-button:hover {
    background: black;
    color: white;
}

.more-button {
    background: black;
    color: white;
    border-color: black;
    margin: 20px auto;
    display: block;
}

.more-button:hover {
    background: white;
    color: black;
}

/* =================================
   قسم الإحصائيات - Stats Section
   ================================= */
.stats {
    background: black;
    color: white;
    padding: 50px 20px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: clamp(1rem, 2vw, 1.1rem);
    opacity: 0.9;
}


/* =================================
   أقسام المحتوى - Content Sections
   ================================= */
.content-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    background: black;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    display: inline-block;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.document-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.document-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.document-icon {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    background: #333;
    border-radius: 10px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* =================================
   قسم الانضمام - Join Section
   ================================= */
.join-section {
    background: black;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.join-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.join-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.9;
}


/* =================================
   الشريط السفلي - Footer
   ================================= */
.footer {
    background: #333;
    color: white;
    padding: 50px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: white;
    font-size: clamp(1.1rem, 2vw, 1.2rem);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #555;
    border: 1px solid #777;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: black;
    border-color: white;
}

.footer-bottom {
    border-top: 1px solid #555;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}


/* =================================
   تجاوبية الموقع - Responsive
   ================================= */

/* شاشات التابلت */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none; /* إخفاء القائمة العلوية في الشاشات الصغيرة */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* شاشات الموبايل */
@media screen and (max-width: 480px) {
    .logo {
        width: 50px;
        height: 50px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }
}
/* =================================
   تنسيقات صفحة المركز الإعلامي
   ================================= */

/* تنسيق ترويسة الصفحة الداخلية */
.page-header {
    background-color: #f1f1f1; /* لون خلفية هادئ */
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid #ddd;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* تنسيق الشبكة التي تحتوي على البطاقات */
.media-grid {
    display: grid;
    /* عرض عمودين في الشاشات المتوسطة والكبيرة */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* المسافة بين البطاقات */
}

/* تنسيق البطاقة الواحدة */
.media-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 15px; /* نفس استدارة الحواف في الصفحة الرئيسية */
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column; /* لترتيب المحتوى بشكل عمودي */
    align-items: center;
}

.media-card:hover {
    transform: translateY(-5px); /* تأثير الرفع عند مرور الماوس */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* تنسيق أيقونة البطاقة */
.media-card .card-icon {
    font-size: 2.5rem; /* حجم الأيقونة (الإيموجي) */
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    background-color: #f8f9fa; /* لون خلفية الأيقونة */
    border-radius: 50%; /* لجعلها دائرية */
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.media-card p {
    color: #666;
    flex-grow: 1; /* لجعل الفقرة تأخذ المساحة المتاحة ودفع الزر للأسفل */
    margin-bottom: 20px;
}

/* تنسيق زر "عرض المزيد" داخل البطاقة */
.media-card .card-button {
    background: black;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 2px solid black;
}

.media-card .card-button:hover {
    background: white;
    color: black;
}

/* =================================
   تنسيقات صفحة بوابة بيوت الخبرة
   ================================= */

/* حاوية لمربعات الدخول والتسجيل */
.portal-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* عمودان متساويان */
    gap: 30px; /* المسافة بين المربعين */
    margin-top: 20px;
}

/* تنسيق المربع الواحد (للتسجيل أو الدخول) */
.portal-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px; /* نفس استدارة الحواف في الموقع */
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* ظل أكثر بروزًا قليلاً */
    transition: transform 0.3s, box-shadow 0.3s;
}

.portal-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* تنسيق الأيقونة داخل المربع */
.portal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.portal-box h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
}

.portal-box p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* تنسيق الزر الرئيسي في المربع */
.portal-button {
    display: inline-block;
    background: black;
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid black;
    transition: all 0.3s ease;
}

.portal-button:hover {
    background: white;
    color: black;
}

/* تعديلات للشاشات الصغيرة (الموبايل) */
@media screen and (max-width: 768px) {
    .portal-container {
        grid-template-columns: 1fr; /* عرض المربعات فوق بعضها */
    }

    .portal-box {
        padding: 30px 20px;
    }
}

/* =================================
   تنسيقات صفحة بوابة المستشارين
   ================================= */

/* شبكة عرض المستشارين */
.consultant-grid {
    display: grid;
    /* عرض عدد مرن من الأعمدة حسب حجم الشاشة */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px; /* المسافة بين البطاقات */
}

/* تنسيق بطاقة المستشار الواحدة */
.consultant-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 15px; /* للحفاظ على التناسق */
    text-align: center;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.consultant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* تنسيق صورة المستشار */
.consultant-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* لجعل الصورة دائرية */
    object-fit: cover; /* لضمان ملائمة الصورة للدائرة دون تشويه */
    margin: 0 auto 15px auto;
    border: 4px solid #f0f0f0;
    display: block;
}

/* تنسيق اسم المستشار */
.consultant-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

/* تنسيق تخصص المستشار */
.consultant-specialty {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* زر عرض الملف الشخصي (إعادة استخدام كلاس موجود) */
.consultant-card .card-button {
    background: #333;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    border: 2px solid #333;
}

.consultant-card .card-button:hover {
    background: white;
    color: #333;
}

/* =================================
   تنسيقات صفحة الهوية البصرية
   ================================= */

/* شبكة عرض أصول الهوية */
.asset-grid {
    display: grid;
    /* عمودان في الشاشات الكبيرة وعمود واحد في الصغيرة */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; /* المسافة بين البطاقات */
}

/* تنسيق بطاقة الأصل الواحدة */
.asset-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column; /* لترتيب المحتوى عمودياً */
    align-items: center; /* توسيط المحتوى */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.asset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* تنسيق أيقونة البطاقة */
.asset-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.asset-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.asset-description {
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1; /* يدفع الأزرار لأسفل للمحافظة على محاذاتها */
}

/* حاوية روابط التحميل */
.download-links {
    display: flex;
    flex-wrap: wrap; /* للسماح بانتقال الأزرار لسطر جديد */
    gap: 10px; /* المسافة بين أزرار التحميل */
    justify-content: center; /* توسيط الأزرار */
    width: 100%;
}

/* تنسيق زر التحميل */
.download-button {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.download-button:hover {
    background-color: black;
    color: white;
    border-color: black;
}

/* كلاس إضافي لزر يأخذ كامل العرض */
.download-button.full-width {
    width: 100%;
}

/* =================================
   تنسيقات صفحة "عن المعهد" (الجديدة)
   ================================= */

/* تعديل على الحاوية الرئيسية لجعلها تستخدم كامل العرض */
#about-page.page-container {
    max-width: 1200px;
    margin: 20px auto; /* تقليل المسافة العلوية */
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* القائمة الجانبية للتنقل (تصميم داكن جديد) */
#about-page .side-nav {
    flex: 0 0 220px;
    position: sticky;
    top: 100px;
    background: #333; /* خلفية داكنة */
    border-radius: 10px;
    padding: 10px 0;
}

#about-page .side-nav ul {
    list-style: none;
}

#about-page .side-nav a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #ccc; /* لون نص فاتح */
    font-weight: bold;
    border-right: 4px solid transparent;
    transition: all 0.3s;
}

#about-page .side-nav a:hover {
    background-color: #444; /* لون أغمق عند المرور */
    color: white;
}

/* تنسيق الرابط النشط في القائمة الجانبية */
#about-page .side-nav a.active {
    color: white;
    background-color: #000;
    border-right-color: white; /* لون الخط الجانبي */
}

/* حاوية المحتوى الرئيسي */
#about-page .main-content {
    flex-grow: 1;
}

/* تعديل على الأقسام داخل المحتوى */
#about-page .content-section {
    padding: 40px 0; /* مسافات داخلية للقسم */
    border-bottom: 1px solid #eee; /* فاصل بين الأقسام */
}
#about-page .content-section:last-child {
    border-bottom: none; /* إزالة الفاصل من آخر قسم */
}

/* حاوية الهيكل التنظيمي */
.structure-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

/* تعديلات للشاشات الصغيرة */
@media screen and (max-width: 768px) {
    #about-page.page-container {
        flex-direction: column;
    }
    #about-page .side-nav {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
}

/* =================================
   تنسيقات صفحة بوابة المناقصات
   ================================= */

.tender-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* المسافة بين كل مناقصة وأخرى */
}

/* تنسيق بطاقة المناقصة الواحدة */
.tender-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between; /* لتوزيع المحتوى على الجانبين */
    align-items: center;
    flex-wrap: wrap; /* للسماح بانتقال المحتوى لأسفل في الشاشات الصغيرة */
    gap: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}
.tender-item:hover {
     box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.tender-info {
    flex-grow: 1; /* لجعل قسم المعلومات يأخذ أكبر مساحة ممكنة */
}

.tender-ref {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.tender-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #333;
}

.tender-dates {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #555;
    flex-wrap: wrap;
}
.tender-dates .fa {
    margin-left: 5px;
}

.tender-actions {
    display: flex;
    flex-direction: column; /* لترتيب الحالة والزر فوق بعض */
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* لمنع هذا القسم من التقلص */
    min-width: 150px;
    text-align: center;
}

/* تنسيق حالة المناقصة (مفتوحة/مغلقة) */
.tender-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.tender-status.status-open {
    background-color: #e8f5e9; /* أخضر فاتح */
    color: #2e7d32;
}
.tender-status.status-closed {
    background-color: #ffebee; /* أحمر فاتح */
    color: #c62828;
}

/* تعطيل الزر للمناقصات المغلقة */
.card-button.disabled {
    background-color: #f5f5f5;
    color: #aaa;
    border-color: #ddd;
    pointer-events: none; /* لمنع النقر عليه */
}

/* =================================

/* =================================
   تنسيقات صفحة البوابات الإلكترونية (المعدلة)
   ================================= */

/* استخدام شبكة بأربعة أعمدة في الشاشات الكبيرة */
.eportal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* تصغير المساحات الداخلية للبطاقات في هذه الصفحة فقط */
.eportal-grid .portal-box {
    padding: 25px 20px; /* تقليل المساحة الداخلية */
    display: flex;
    flex-direction: column;
}

/* تصغير حجم الأيقونة */
.eportal-grid .portal-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* تصغير حجم العنوان */
.eportal-grid .portal-box h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* تعديل القائمة لتكون أكثر إحكامًا */
.eportal-grid .portal-services {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    flex-grow: 1; /* يدفع الزر للأسفل */
}

.eportal-grid .portal-services li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    padding-right: 15px;
    position: relative;
}

.eportal-grid .portal-services li::before {
    content: "•";
    color: black;
    position: absolute;
    right: 0;
    top: 0;
}

/* تعديل الزر ليكون آخر عنصر في الأسفل */
.eportal-grid .portal-button {
    margin-top: 20px; /* إضافة مسافة علوية لدفع الزر للأسفل */
    width: 100%;
}

.eportal-grid .portal-button .fa {
    margin-right: 8px; /* مسافة بين النص والسهم */
}
/* =================================
   تنسيقات القائمة المنسدلة (Dropdown)
   ================================= */

/* جعل القائمة الرئيسية تسمح بترتيب العناصر المنسدلة */
.nav-menu li {
    position: relative; /* مهم لجعل القائمة المنسدلة في موضع مطلق بالنسبة للعنصر الأب */
}

/* تنسيق القائمة المنسدلة نفسها */
.dropdown-menu {
    display: none; /* إخفاء القائمة المنسدلة افتراضياً */
    position: absolute;
    top: 100%; /* يبدأ أسفل العنصر الأب مباشرة */
    right: 0; /* محاذاة لليمين (بداية القائمة) */
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 10; /* تأكد من أنها تظهر فوق المحتوى الآخر */
    border-top: 3px solid black;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 0 0 5px 5px;
}

/* تنسيق عناصر القائمة المنسدلة */
.dropdown-menu li {
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    color: #333;
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    font-weight: normal;
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #f1f1f1;
    color: black;
}

/* **الخاصية الأهم:** إظهار القائمة المنسدلة عند مرور مؤشر الفأرة على العنصر الأب */
.nav-menu li.dropdown:hover .dropdown-menu {
    display: block;
}
/* =================================
   تنسيقات القائمة المتداخلة (Nested List)
   ================================= */

/* هذا هو العنصر <li> الأب للقائمة المتداخلة */
.dropdown-menu .has-submenu {
    position: relative; 
}

/* هذا هو الرابط <a> الذي تنقر عليه */
.dropdown-menu .has-submenu .submenu-toggle {
    display: flex; /* لترتيب السهم والنص */
    justify-content: space-between;
    align-items: center;
}

/* هذا هو <ul> المتداخل (مخفي افتراضيًا) */
.dropdown-menu .nested-menu {
    display: none; /* إخفاء القائمة افتراضيًا */
    list-style: none;
    padding: 0;
    margin: 0;
    
    /* تنسيقات لجعلها تبدو متداخلة */
    background-color: #f8f8f8; /* لون خلفية مختلف قليلاً */
    padding-right: 15px; /* إزاحة لليمين */
}

/* هذا هو <li> داخل <ul> المتداخل (رؤية، رسالة، قيم) */
.dropdown-menu .nested-menu li {
    border-bottom: none; /* إزالة الخط الفاصل الرئيسي */
}

/* هذا هو الرابط <a> داخل <li> المتداخل */
.dropdown-menu .nested-menu li a {
    padding: 10px 15px;
    font-size: 0.9rem; /* خط أصغر */
    color: #555;
    font-weight: normal;
}

.dropdown-menu .nested-menu li a:hover {
    background-color: #eee;
}

/* هذه هي القاعدة الأهم: إظهار القائمة عندما يتم إضافة كلاس .open */
.dropdown-menu .has-submenu.open > .nested-menu {
    display: block;
}

/* (اختياري) تدوير السهم عند الفتح */
.dropdown-menu .has-submenu.open > .submenu-toggle .fa-caret-left {
    transform: rotate(-90deg);
    transition: transform 0.3s;
}

.sodoa {
   font-size: xx-large;
   direction: rtl;
   text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

.fa.fa-language {
    font-size: xx-large;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    font: bold;
}

/* الكود الصحيح */
.textsize {
    font-size: 14px !important; /* أو 0.9rem */
}

/* =================================
   زر انضم إلينا في الشريط العلوي
   ================================= */

.join-us-button {
    background: black; /* لون الخلفية أسود */
    color: white; /* لون النص أبيض */
    padding: 8px 20px; /* مساحات داخلية لجعله يبدو كزر */
    border-radius: 20px; /* حواف دائرية */
    text-decoration: none; /* إزالة الخط تحت الرابط */
    font-weight: bold; /* خط عريض */
    transition: all 0.3s; /* حركة ناعمة عند التغيير */
    white-space: nowrap; /* لمنع انكسار النص إلى سطر جديد */
    font-size: 0.9rem; /* حجم خط مناسب للشريط العلوي */
}

.join-us-button:hover {
    background: #333; /* تغيير لون الخلفية عند مرور الماوس */
    transform: scale(1.05); /* تكبير بسيط لإعطاء تأثير تفاعلي */
}

/* شاشات التابلت */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none; /* إخفاء القائمة العلوية في الشاشات الصغيرة */
    }

    /* ===== أضف هذا الكود لإخفاء الزر الجديد أيضاً ===== */
    .join-us-button {
        display: none;
    }
    /* ================================================== */

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.languagebutton {
    background: black; /* لون الخلفية أسود */
    color: white; /* لون النص أبيض */
    padding: 8px 10px; /* مساحات داخلية لجعله يبدو كزر */
    border-radius: 20px; /* حواف دائرية */
    text-decoration: none; /* إزالة الخط تحت الرابط */
    font-weight: bold; /* خط عريض */
    transition: all 0.3s; /* حركة ناعمة عند التغيير */
    white-space: nowrap; /* لمنع انكسار النص إلى سطر جديد */
    font-size: 0.9rem; /* حجم خط مناسب للشريط العلوي */
}

/* =================================
   تنسيقات بطاقة التقليب (Flip Card) لصفحة الخدمات
   ================================= */

/* حاوية البطاقة الرئيسية - تحدد الأبعاد والمنظور الثلاثي */
.flip-card {
    background-color: transparent;
    width: 100%; /* تأخذ العرض من الشبكة */
    height: 350px; /* يمكنك تعديل الارتفاع حسب المحتوى */
    perspective: 1000px; /* ضروري لتأثير القلب ثلاثي الأبعاد */
    font-family: 'Arial', sans-serif;
}

/* العنصر الداخلي الذي يقوم بالدوران */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

/* عند مرور الماوس، يتم تدوير العنصر الداخلي 180 درجة */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* تنسيق مشترك للوجهين الأمامي والخلفي */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* لإخفاء الوجه الآخر عند الدوران */
    
    /* استخدام نفس تنسيقات البطاقة الأصلية (.media-card) */
    background: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* تنسيق الوجه الأمامي (يحتوي على نفس تنسيق media-card) */
.flip-card-front {
    color: #333;
}

.flip-card-front h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.flip-card-front p {
    color: #666;
}

.flip-card-front .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تنسيق الوجه الخلفي */
.flip-card-back {
    background: black; /* خلفية مختلفة للتباين */
    color: white;
    transform: rotateY(180deg); /* تدويره مسبقاً ليكون مخفياً */
}

.flip-card-back h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.flip-card-back p {
    font-size: 1rem;
    line-height: 1.6;
}

/* تنسيق الزر في الوجه الخلفي */
.flip-card-back .card-button {
    margin-top: auto; /* يدفع الزر لأسفل البطاقة */
    background: white;
    color: black;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.flip-card-back .card-button:hover {
    background: black;
    color: white;
}
/* =================================
   تنسيقات قسم شركاء النجاح (Swiper)
   ================================= */

/* حاوية لتنظيم (العنوان) بجانب (السلايدر) */
.partners-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    /* هذا سيستخدم max-width: 1200px من كلاس .section-container */
}

/* --- 1. منطقة العنوان (الجزء الأيمن) --- */
.partners-title-area {
    flex-basis: 30%; /* العنوان يأخذ 30% */
    flex-shrink: 0; /* لا تدعه يتقلص */
    text-align: right;
}

.partners-title-area h3 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: normal;
}

.partners-title-area h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 15px;
}

.partners-title-area p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px; /* مساحة لإظهار الزر */
}

/* --- 2. زر "اعرض الكل" الجديد --- */
.partners-show-all-btn {
    display: inline-block;
    background: #333; /* استخدام اللون الأسود الرئيسي للموقع */
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #333;
}

.partners-show-all-btn:hover {
    background: #ffffff;
    color: #333;
}

/* --- 3. منطقة السلايدر (الجزء الأيسر) --- */
.partners-slider-area {
    flex-basis: 70%; /* السلايدر يأخذ 70% */
    overflow: hidden; /* ضروري لعمل Swiper */
}

/* --- 4. تخصيص شرائح السلايدر --- */
/* هذا الكود يستهدف .swiper-slide داخل السلايدر الخاص بنا فقط */
.partners-slider-area .swiper-slide {
    height: 100px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    
    /* لتوسيط الشعار داخل المربع */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.partners-slider-area .swiper-slide img {
    max-width: 100%;
    max-height: 60px; /* ارتفاع موحد للشعارات */
    height: auto;
    object-fit: contain; /* للحفاظ على أبعاد الشعار */
}

/* --- 5. تخصيص نقاط التنقل (الدوائر) --- */
/* نجعل النقاط تظهر أسفل السلايدر */
.partners-slider-area .swiper-pagination {
    position: static; /* نلغي التموضع الافتراضي */
    margin-top: 20px; 
}

/* لون النقطة غير النشطة */
.partners-slider-area .swiper-pagination-bullet {
    background-color: #aaa; 
    opacity: 1;
}

/* لون النقطة النشطة (نستخدم اللون الأسود الرئيسي) */
.partners-slider-area .swiper-pagination-bullet-active {
    background-color: #000; 
}

/* --- 6. كود التجاوب (لشاشات الجوال) --- */
@media (max-width: 768px) {
    .partners-wrapper {
        flex-direction: column; /* جعل العنوان فوق السلايدر */
        text-align: center;
    }
    
    .partners-title-area {
        text-align: center;
        margin-bottom: 30px;
        flex-basis: auto; /* إلغاء العرض الثابت */
    }

    .partners-slider-area {
         width: 100%; 
         flex-basis: auto;
    }
}

/* =================================
   تنسيقات صفحة شركاء النجاح (partners.html)
   ================================= */

/* تنسيق عنوان القسم (مثل: القطاع الحكومي) */
.partners-page-title {
    font-size: 2rem; /* حجم خط كبير */
    color: #000;
    border-bottom: 2px solid #eee; /* خط فاصل سفلي */
    padding-bottom: 10px;
    margin-bottom: 30px; /* مسافة سفلية */
    margin-top: 30px; /* مسافة علوية (للفصل بين الأقسام) */
}

/* تنسيق شبكة الشعارات */
.logo-grid {
    display: grid;
    /* الشبكة المتجاوبة: 
      - تنشئ أعمدة بعرض 150 بكسل على الأقل.
      - (auto-fit) تملأ المساحة المتاحة بأكبر عدد ممكن من الأعمدة.
      - (1fr) توزع المساحة المتبقية بالتساوي.
      - النتيجة: 6-7 شعارات في الصف على الشاشة الكبيرة، و 2-3 على الجوال.
    */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px; /* المسافة بين مربعات الشعارات */
}

/* تنسيق المربع الواحد لكل شعار */
.logo-grid-item {
    background: #ffffff;
    border: 1px solid #eee; /* إطار خفيف جداً */
    border-radius: 10px; /* نفس استدارة حواف الموقع */
    padding: 20px;
    height: 110px; /* ارتفاع موحد لجميع المربعات */
    
    /* لتوسيط الشعار داخل المربع تماماً */
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: all 0.3s ease;
}

/* تأثير بسيط عند مرور الماوس (اختياري لكنه يعطي لمسة احترافية) */
.logo-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    border-color: #ddd;
}

/* تنسيق الصورة (الشعار) داخل المربع */
.logo-grid-item img {
    max-width: 100%;
    max-height: 65px; /* ارتفاع أقصى للشعار لضمان عدم خروجه */
    object-fit: contain; /* للحفاظ على أبعاد الشعار */
}

/* =================================
   تنسيقات زر التذكرة العائم والنموذج
   ================================= */

/* --- 1. تنسيق الزر العائم --- */
.floating-ticket-btn {
    position: fixed;
    bottom: 30px;
    right: 30px; /* تحديد الموقع: أسفل اليمين */
    width: 60px;
    height: 60px;
    background-color: #004a3f; /* لون أخضر داكن (يمكنك تغييره) */
    color: white;
    border: none;
    border-radius: 50%; /* لجعله دائرياً */
    font-size: 28px; /* حجم الأيقونة */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 990; /* لضمان ظهوره فوق العناصر الأخرى */
    
    /* تحديد حركة الظهور والاختفاء عند التمرير */
    transition: transform 0.3s ease-out;
}

.floating-ticket-btn:hover {
    background-color: #002d26; /* لون أغمق عند التمرير */
    transform: scale(1.1); /* تكبير بسيط */
}

/* --- 2. كلاس الحركة عند التمرير (يتم إضافته عبر JS) --- */
.floating-ticket-btn.hidden {
    /* إخفاء الزر عبر تحريكه للأسفل خارج الشاشة */
    transform: translateY(100px);
}

/* --- 3. تنسيق خلفية النموذج (البوب أب) --- */
.modal-overlay {
    display: none; /* مخفي افتراضياً */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* خلفية سوداء شبه شفافة */
    z-index: 1000; /* ليكون فوق كل شيء (حتى الزر العائم) */
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* للسماح بالتمرير إذا كان النموذج طويلاً */
}

/* كلاس لتشغيل العرض عبر JS */
.modal-overlay.active {
    display: flex; /* إظهار النموذج */
}

/* --- 4. تنسيق صندوق النموذج --- */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 550px; /* تحديد عرض أقصى للنموذج */
    position: relative;
    margin: 20px 0; /* هامش لضمان عدم الالتصاق بحواف الشاشة */
    
    /* حركة ظهور ناعمة للنموذج */
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* عند تفعيل النموذج، تظهر المحتويات بحركة ناعمة */
.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* --- 5. تنسيق زر الإغلاق (X) --- */
.modal-close {
    position: absolute;
    top: 10px;
    /* بما أن الموقع RTL، نضعه على اليسار */
    left: 20px; 
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: #333;
}

/* --- 6. تنسيق محتوى النموذج --- */
.modal-content h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #000;
}
.modal-content p {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
}

/* --- 7. تنسيق حقول النموذج --- */
.ticket-form .form-group {
    margin-bottom: 15px;
}

/* (جديد) شبكة لحقلي الجوال والإيميل لوضعهما جنباً إلى جنب */
.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
/* إخفاء الشبكة في الجوال وجعل الحقول تحت بعض */
@media (max-width: 500px) {
    .form-group-grid {
        grid-template-columns: 1fr;
    }
}


.ticket-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ticket-form input[type="text"],
.ticket-form input[type="tel"],
.ticket-form input[type="email"],
.ticket-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
}

.ticket-form input[type="file"] {
    width: 100%;
    font-size: 0.9rem;
}

/* =================================
   تنسيقات صفحة تسجيل دخول الموظفين
   ================================= */

/* تعديل بسيط على القسم ليحتوي النموذج بشكل أفضل */
.login-section .section-container {
    display: flex;
    justify-content: center; /* توسيط النموذج أفقياً */
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* حاوية النموذج الرئيسية */
.login-form-container {
    background: white;
    padding: 40px 30px;
    border-radius: 15px; /* نفس استدارة حواف الموقع */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    width: 100%;
    max-width: 450px; /* تحديد عرض أقصى للنموذج */
    text-align: center;
}

/* أيقونة المستخدم أعلى النموذج */
.login-icon {
    font-size: 4rem; /* حجم كبير للأيقونة */
    color: #333; /* لون الأيقونة */
    margin-bottom: 20px;
}

/* تنسيقات النموذج نفسه */
.login-form .form-group {
    margin-bottom: 20px;
    text-align: right; /* محاذاة النصوص لليمين */
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

/* استخدام نفس تنسيقات حقول نموذج البوب أب */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #333; /* تغيير لون الإطار عند التركيز */
    outline: none;
}

/* تنسيق خيارات "تذكرني" و "نسيت كلمة المرور" */
.form-options {
    display: flex;
    justify-content: space-between; /* توزيع العناصر على الجانبين */
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.remember-me input[type="checkbox"] {
    margin-left: 8px; /* مسافة بين الصندوق والنص */
    cursor: pointer;
}

.forgot-password {
    color: #0056b3; /* لون أزرق للرابط (يمكن تغييره) */
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #003d80; /* لون أغمق عند التمرير */
}

/* =================================
 تنسيق زر بوابة الموظفين (صورة + نص) في الهيدر
 ================================= */

.employee-portal-img-button {
    display: inline-flex; /* لترتيب الصورة والنص */
    flex-direction: column; /* لجعل النص تحت الصورة */
    align-items: center; /* توسيط أفقي */
    text-decoration: none;
    vertical-align: middle;
    margin-right: 15px;
    padding: 5px;
    transition: transform 0.3s ease;
    min-width: 80px;
    text-align: center;
}

.employee-portal-img-button img {
    display: block;
    /* ====> عدّل هذه القيمة للتحكم بالارتفاع <==== */
    height: 45px; /* جرب 38px أو 40px أو الحجم الذي تراه مناسباً */
    /* =============================================== */
    width: auto; /* العرض سيتكيف تلقائياً */
    margin-bottom: 3px; /* مسافة بين الصورة والنص */
}

/* تنسيق النص "بوابة الموظفين" */
.employee-portal-img-button .portal-img-text {
    font-size: 17px; /* يمكنك تعديل حجم الخط هنا إذا أردت */
    color: #333;
    line-height: 1.2;
    font-weight: bold;
}

.employee-portal-img-button:hover {
    transform: scale(1.08);
}

/* --- إخفاء الزر في الشاشات الصغيرة --- */
@media screen and (max-width: 768px) {
    .employee-portal-img-button {
        display: none;
    }
}

/* =================================
   تنسيقات صفحة بوابة التوظيف
   ================================= */

/* توسيط حاوية النموذج */
.application-section .section-container {
    display: flex;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* حاوية النموذج الرئيسية (مشابهة لنموذج تسجيل الدخول) */
.application-form-container {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    width: 100%;
    max-width: 650px; /* يمكن زيادة العرض قليلاً عن نموذج الدخول */
    text-align: center;
}

/* أيقونة الحقيبة أعلى النموذج */
.application-icon {
    font-size: 3.5rem; /* حجم الأيقونة */
    color: #333;
    margin-bottom: 15px;
}

.application-form-container h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
}

/* تنسيقات النموذج نفسه */
.application-form .form-group {
    margin-bottom: 18px;
    text-align: right;
}

.application-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #555;
}

/* إضافة نجمة حمراء للحقول المطلوبة */
.application-form label .required {
    color: red;
    margin-right: 4px;
}

/* استخدام نفس تنسيقات الحقول السابقة */
.application-form input[type="text"],
.application-form input[type="tel"],
.application-form input[type="email"],
.application-form textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.application-form input[type="text"]:focus,
.application-form input[type="tel"]:focus,
.application-form input[type="email"]:focus,
.application-form textarea:focus {
    border-color: #333;
    outline: none;
}

/* تنسيق حقل رفع الملف */
.application-form input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
    background-color: #f9f9f9;
}
/* ملاحظة صغيرة تحت حقل الملف */
.application-form .form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #777;
}

/* استخدام نفس تنسيقات الشبكة للحقول المتجاورة */
.application-form .form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
@media (max-width: 500px) {
    .application-form .form-group-grid {
        grid-template-columns: 1fr;
    }
}


















/* =================================
 تنسيقات الهيدر الجديدة (الروابط والأزرار)
 ================================= */

/* 1. تعديل الحاوية الرئيسية للهيدر */
.nav-container {
    /* (مهم) إلغاء التوزيع القديم */
    /* justify-content: space-between; <-- يتم إلغاؤه */
}

/* 2. القائمة الرئيسية (لإعطائها مساحة مرنة في الوسط) */
.main-nav {
    flex-grow: 1; /* تجعل القائمة تأخذ المساحة المتاحة في الوسط */
    display: flex;
    justify-content: center; /* توسيط القائمة نفسها (اختياري) */
    margin: 0 20px; /* إضافة هوامش لتبعد عن الشعار والعناصر اليسرى */
}

/* 3. (جديد) الحاوية اليسرى لكل الأزرار والروابط */
.header-left-side {
    display: flex;
    flex-direction: column; /* لترتيب الروابط فوق الأزرار */
    align-items: flex-start; /* محاذاة لليسار (بداية العناصر) */
    gap: 8px; /* مسافة رأسية بين صف الروابط وصف الأزرار */
    flex-shrink: 0; /* منعها من الانكماش */
    margin-right: auto; /* (مهم) يدفعها إلى أقصى اليسار */
}

/* 4. تنسيق الروابط العلوية (الصف الأول) */
.header-top-links {
    display: flex;
    align-items: center;
    gap: 10px; /* مسافة بين الروابط */
    width: 100%; /* جعلها تأخذ كامل عرض الحاوية اليسرى */
    justify-content: flex-end; /* محاذاة لليسار */
}
.header-top-links .top-link {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    transition: color 0.3s;
}
.header-top-links .top-link:hover {
    color: black;
}
.header-top-links .top-link-divider {
    color: #ccc;
    font-size: 13px;
    margin: 0 -5px;
}
.header-top-links .nav-search-button {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0 5px;
}
.header-top-links .nav-search-button:hover {
    color: black;
}

/* 5. (جديد) حاوية أزرار الدخول (الصف الثاني) */
.header-login-buttons {
    display: flex;
    gap: 10px; /* مسافة بين الزرين */
    width: 100%;
    justify-content: center;
}

/* 6. (جديد) تنسيق الأزرار (عام) */
.header-login-buttons .btn {
    display: inline-block;
    padding: 6px 16px; /* حجم الزر */
    border-radius: 5px; /* استدارة الحواف */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* إطار شفاف للتحضير */
}

/* 7. (جديد) تنسيق الزر الأخضر "دخول" */
.header-login-buttons .btn.btn-login-primary {
    background-color: #555; /* لون أخضر (يمكنك تغييره) */
    color: white;
}
.header-login-buttons .btn.btn-login-primary:hover {
    background-color: #555; /* لون أغمق عند المرور */
}

/* 8. (جديد) تنسيق الزر الشفاف "مستخدم جديد" */
.header-login-buttons .btn.btn-login-secondary {
    background-color: transparent;
    color: #555; /* لون النص أخضر */
    border-color: #555; /* لون الإطار أخضر */
}
.header-login-buttons .btn.btn-login-secondary:hover {
    background-color: #555;
    color: white; /* تغيير النص لأبيض عند المرور */
}


/* 9. (مهم) إخفاء العناصر في الموبايل */
@media screen and (max-width: 768px) {
    .main-nav {
        display: none; /* إخفاء القائمة الرئيسية */
    }
    .header-left-side {
        display: none; /* إخفاء كل العناصر اليسرى الجديدة */
    }
    /* (ملاحظة: هذا الكود سيبقي على الشعار وزر القائمة الجانبية فقط) */
}