/* CSS Reset and Base Styles */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: 'Tajawal', sans-serif;

}



/* المتغيرات المخصصة */

:root {

    --primary-color: #3f51b5;

    --secondary-color: #2196f3;

    --accent-color: #ff5722;

    --light-color: #ffffff;

    --dark-color: #1a237e;

    --success-color: #4caf50;

    --warning-color: #ffc107;

    --danger-color: #f44336;

    --white: #FFFFFF;

    --gray: #f5f5f5;

    --dark-gray: #757575;

    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    --transition: all 0.3s ease;

}



/* التنسيقات العامة */

body {

    font-family: 'Tajawal', sans-serif;

    background-color: rgba(63, 81, 181, 0.1);

    color: #333;

    line-height: 1.6;

    height: 100%;

    padding-bottom: 70px;

    /* لمنع التداخل مع القائمة السفلية */

}





/* قسم الصورة الترحيبية */

.container-fluid {

    margin-bottom: 2% !important;

}



.welcome-image {

    height: 90px !important;

    /* ارتفاع ثابت */

    width: 100% !important;

    /* object-fit: contain; */

    object-fit: fill !important;

    border-radius: 0 0 0.2rem 0.2rem;

    background-color: #f5f5f5;

    /* لون خلفية اختياري في حال وجود مساحة فارغة */

    vertical-align: top;

    /* لتحسن التنسيق */



}



/* الإعلان الرئيسي */

.main-ad {

    margin: 0px auto;

}



.main-ad img {

    width: 100%;

    border-radius: 0.5rem;

    aspect-ratio:  5 / 1;

    object-fit: cover;

    transition: var(--transition);

    vertical-align: top;

    /* لتحسن التنسيق */

}



.main-ad:hover img {

    transform: translateY(-3px);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

}





/* تنسيقات السلايدر الرئيسي */

/* تنسيقات السلايدر الرئيسي */

.main-ad-container {

    width: 100%;

    padding: 0% 2% 0% 2%; /*   top rght bottom left */

}



.main-ad-slider {

    width: 100%;

}



.main-ad-slider .primary-slide {

    height: 100% !important;

    width: 100% !important;

    aspect-ratio: 5 / 1;

    /* نسبة ثابتة للصور */

}



.main-ad-image {

    width: 100%;

    border-radius: 0.2rem;

    aspect-ratio: 5 / 1;

    transition: var(--transition);

    vertical-align: top;

    /* لتحسن التنسيق */

}





/* تنسيقات السلايدر الثاني */

.second-ad-container {

    width: 100%;

    padding: 0% 2%;

    margin-top: 2% !important;    /* مسافة تفصل السلايدر الثاني عن العناصر الأخرى */

}



.second-ad-slider {

    width: 100%;

}

/*

.second-ad-slider .swiper-slide {

    /* إذا كنت ترغب بإضافة تنسيقات إضافية لكل شريحة 

    width: 100%;

    aspect-ratio: 5 / 2;

        object-fit: cover;

} */



.second-ad-image {

    width: 100%;

    aspect-ratio: 2 / 1;

        border-radius: 0.2rem;

    transition: var(--transition);

    vertical-align: top;

}





    /* شريط الأخبار العاجلة الذي يتحرك */

    .news-ticker {

        display: flex;

        flex-direction: row; /* ترتيب العناصر رأسيًا */

        align-items: center; /* توسيط العناصر أفقيًا */

        height: 45px; /* زيادة الارتفاع ليكون هناك مساحة كافية */

       

        font-size: larger;

        color: rgb(0, 0, 0) !important;

        /* padding: 0% 0% 0% 0% !important; */ /*   top rght bottom left */

        margin: 2% 2% 0% 2% !important; /*   top rght bottom left */

        border-radius: 10px;

        overflow: hidden;

        box-shadow: var(--shadow);

    }



    .ticker-title {

        font-size: small;

        flex-shrink: 0; /* يمنع العنوان من التمدد أو الحركة */

    }

 

    .flipped-icon {

        display: inline-block;

        transform: scaleX(-1);

        margin-bottom: 0px;

    }



    .ticker-content {

        flex-grow: 1;

        overflow: hidden;

        white-space: nowrap;

        position: relative;

        margin-right: 2px;

    }

    .ticker-content span {

        font-size: small;

        display: inline-block;

        white-space: nowrap;

        animation: ticker 20s linear infinite;

        animation-fill-mode: backwards;



    }



    @keyframes ticker {

        0% { transform: translateX(0); }

        100% { transform: translateX(100%); }

    }



    /*  أزرار التحكم في سرعة الشريط */



/* تنسيق زر التحكم */

.ticker-controls {

    display: flex;

    justify-content: center;

    gap: 3px;

    padding-right: 3px;

    margin-top: 5px;

}



.ticker-controls button {

    width: 15px;

    height: 15px;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;

    border: none;

    border-radius: 50%;

    background-color: #dee2e6;

    color: #6c757d;

    transition: 0.3s;



        /* محاذاة العلامة داخل الدائرة */

        display: flex;

        align-items: center;

        justify-content: center;

}



.ticker-controls button:hover {

    background-color: #c5cbd2;

    transform: scale(1.1);

}





    /* الأقسام الثابتة في Grid Styles */

    /* تنسيقات عامة للأقسام */



    /* ترتيب الصفوف من اليسار إلى اليمين */



.section-item {

    margin-bottom: 15px;

  }



  /* ترتيب الصفوف من اليسار إلى اليمين */

 .row {

    direction: ltr !important;

  }



  /* تنسيق خلفية الأيقونة بشكل دائري وتأثيرات hover */

  .section-icon {

    font-size: 40px; /* يمكنك تعديل القيمة لتكبير أو تصغير حجم الأيقونة */

    color: #007bff;

    background-color: rgba(63, 81, 181, 0.1);

    width: 80px;

    height: 80px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    margin: 0 auto 10px auto;   /*   top rght bottom left */

    transition: transform 0.3s ease, background-color 0.3s ease;

  }

  

  /* تأثير تكبير خفيف عند التمرير */

  .section-icon:hover {

    transform: scale(1.1);

    background-color: rgba(45, 62, 161, 0.1);

  }

  

  /* تنسيق عنوان القسم أسفل الأيقونة */

  .section-title {

    font-size: 16px;

    font-weight: 500;

    line-height: 1.4;

    direction: rtl;

  }

  

  /* فاصل بين الصفوف */

  .separator {

    border-top: 1px solid #ccc;

    padding: 10px 0 10px 0; /* top rght bottom left */

    margin: auto 4% auto; /*   top rght bottom left */

  }

  



 /* الشريط الثاني للأخبار العاجلة الذي يتحرك */

 .news-ticker2 {

    display: flex;

    flex-direction: row; /* ترتيب العناصر رأسيًا */

    align-items: center; /* توسيط العناصر أفقيًا */

    height: 45px; /* زيادة الارتفاع ليكون هناك مساحة كافية */

   

    font-size: larger;

    color: rgb(0, 0, 0) !important;

    background-color: whitesmoke;





    /* padding: 0% 0% 0% 0% !important; */ /*   top rght bottom left */

    margin: -4% 2% 5% 2% ;   /* top rght bottom left */

    border-radius: 10px;

    overflow: hidden;

    box-shadow: var(--shadow);

}



/* تنسيق قائمة المنيو الخاصه بالموبايل */

/* //////////////////////////////////////////////////////////// */

        /* تحديد مساحة المحتوى بحيث يكون شريط التنقل دائمًا في الأسفل */

        #content {

            min-height: calc(100vh - 60px);

            /* تخصيص ارتفاع المحتوى بدون التأثر بشريط التنقل */

            padding-bottom: 60px;

            /* تأمين مساحة مساوية لارتفاع شريط التنقل */

        }



        .navbar {

            position: fixed;

            inset-inline: 0;

            bottom: 0;

            z-index: 350;

            display: flex;

            align-items: center;

            justify-content: space-between;

            overflow-x: auto;

            overflow-y: hidden;

            -webkit-overflow-scrolling: touch;

            padding: 5px;

            height: 55px;

            box-shadow: 0 0 9px rgba(0, 0, 0, 0.12);

        }



        /* تنسيق الأزرار بأسلوب عصري */

        .nav-btn {

            display: flex;

            /* جعل الأيقونة والنص في سطر واحد */

            flex-direction: column;

            align-items: center;

            /* توسيط العناصر عموديًا */

            justify-content: center;

            text-decoration: none;

            /* إزالة التسطير تحت النص */

            background: none;

            border: none;

            font-size: 12px;

            color: #6c757d;

            gap: 0px;

            /* 8px; تحديد مسافة بين الصورة والنص */



            flex-grow: 1;



            transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;



            height: 0px;

            line-height: 1;

            padding-inline: 10px;

        }



        /* أيقونات مسطحة بحجم مناسب */

        .nav-btn i {

            font-size: 22px;

            margin-bottom: 5px;

            font-weight: bold;

            /* جعل الأيقونة أكثر سمكًا */

            transition: transform 0.2s ease-in-out;

        }



        .nav-icon {

            width: 22px;

            /* يمكنك تعديل القيمة حسب الحجم المطلوب */

            height: auto;

            /* الحفاظ على نسبة العرض إلى الارتفاع */

            margin-bottom: 5px;

            /* لضبط المسافة بين الصورة والنص */

        }



        /* النص */

        .nav-btn span {

            font-weight: bold;

            /* جعل الأيقونة أكثر سمكًا */

        }



        /* تأثير عند الضغط */

        .nav-btn:active i {

            transform: scale(0.9);

        }



        /* الأزرار النشطة */

        .nav-btn.active {

            color: #0d6efd;

        }



        /* تأثير اللمس (Ripple Effect) */

        .nav-btn::after {

            content: "";

            position: absolute;

            width: 50px;

            height: 50px;

            background: rgba(13, 110, 253, 0.2);

            border-radius: 50%;

            transform: scale(0);

            opacity: 0;

            transition: transform 0.4s ease-out, opacity 0.4s ease-out;

        }



        .nav-btn:active::after {

            transform: scale(2);

            opacity: 1;

        }



        /* التراكب عند فتح القائمة */



        /* التحكم في زر الاغلاق */

        .closeMenuBtn {

            font-size: 24px;

            color: #6c757d;

            border: none;

            background: none;

            margin-right: auto;

            /* إذا كنت ترغب في دفع الزر لأبعد جهة يسارًا */

            margin-left: -10px;

        }



        .closeMenuBtn i {

            font-size: 24px;

            font-weight: bold;

            /* أو يمكنك استخدام رقم مثل 700 */

        }



        .menu-overlay {

            position: fixed;

            top: 0;

            left: 0;

            width: 100%;

            height: 100%;

            background: rgba(0, 0, 0, 0.5);

            display: flex;

            justify-content: center;

            align-items: flex-end;

            transition: opacity 0.3s ease, visibility 0.3s ease;

            z-index: 1050;

            /* يجعل التراكب فوق كل شيء */



        }



        /* القائمة المنبثقة فوق شريط التنقل */

        .menu-content {

            position: absolute;

            bottom: 55px;

            /* يتوافق مع ارتفاع شريط التنقل */

            width: 100%;

            background: white;

            border-top-left-radius: 15px;

            border-top-right-radius: 15px;

            padding: 20px;

            box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);

            transform: translateY(0%);

            /* إخفاءها عند البداية */

            transition: transform 0.3s ease-in-out;

            z-index: 1100;

            /* يجعل القائمة فوق كل العناصر */

            padding-top: 10px;



        }









        /* الحاوية الرئيسية */

        .menu-container {

            display: flex;

            flex-direction: column;

            gap: 10px;

        }



        .menu-header {

            margin-bottom: 3px !important;

        }



        /* تصميم العناصر */

        .menu-item {

            display: block;

            padding: 10px;

            background-color: #f8f9fa;

            border-radius: 8px;

            text-decoration: none;

            color: #495057;

            transition: background 0.3s ease-in-out, color 0.3s ease-in-out;

            animation: scaleIn 0.3s ease forwards;

            opacity: 0;

        }



        /* تأخير كل عنصر حسب data-delay */

        .menu-item:nth-child(1) {

            animation-delay: 0s;

        }



        .menu-item:nth-child(2) {

            animation-delay: 0.1s;

        }



        .menu-item:nth-child(3) {

            animation-delay: 0.2s;

        }



        .menu-item:nth-child(4) {

            animation-delay: 0.3s;

        }



        /* التأثير عند اللمس */

        .menu-item:hover {

            background-color: rgba(13, 110, 253, 0.1);

            color: #0d6efd;

        }



        /* تنسيق المحتوى داخل العنصر */

        .menu-link-content {

            display: flex;

            align-items: center;

        }



        /* الأيقونات */

        .menu-link-content i {

            font-size: 18px;

            margin-left: 8px;

            /* المسافة بين الأيقونة والنص */

           /* color: #0d6efd;*/

            color: #15428594;

            

        }



        /* النص */

        .menu-link-content span {

            font-size: 16px;

            color: #495057;

        }



        /* تأثير الدخول */

        @keyframes scaleIn {

            from {

                transform: scale(0.9);

                opacity: 0;

            }



            to {

                transform: scale(1);

                opacity: 1;

            }

        }





   













































/* Responsive Styles  /  أنماط التصميم المتجاوبة */

@media (min-width: 768px) { /* الشاشات التي تساوي 768px */

        .welcome-image {

            height: 50px !important;

            object-fit: inherit !important;

        }



        /* الاعلان الرئيسي */

        .main-ad img {

            height: 180px;

            width: 100%;

            aspect-ratio: 5 / 0.7 !important;

            vertical-align: top;

        }



        .main-ad-image {

            width: 100%;

            aspect-ratio: 5 / 0.6 !important;

            vertical-align: top;

        }



        /* الاعلان الثاني */

        .second-ad-image {

            width: 100%;

            aspect-ratio: 5 / 1.3 !important;

            vertical-align: top;

        }



        /* شريط الأخبار العاجلة */

        .ticker-title {

            font-size: large;

        }



        .ticker-content span {

            font-size: large;

            display: inline-block;

        }



        .ticker-controls button {

            width: 20px;

            height: 20px;

            font-size: 18px;

            font-weight: bold;

        }



        /* الشريط الثاني للأخبار العاجلة الذي يتحرك */

        .news-ticker2 {

            margin: 1% 2% 3% 2% ; /* top rght bottom left */

        }

}



  /* تحسين العرض على الشاشات الصغيرة */

  @media (max-width: 576px) {  /* أي شاشة أصغر من أو تساوي 576px */



        .section-icon {

        width: 60px;

        height: 60px;

        font-size: 40px;

        padding: 35px;

        }



        .section-title {

        font-size: 12px;

        }



        .row {

        direction: ltr !important;

        }



    

  }



  @media (min-width: 576px) and (max-width: 767.98px) { /* أي شاشة أكبر من أو تساوي 576px */



    /* الاعلان الرئيسي */

    .main-ad-image {

        width: 100%;

        aspect-ratio: 5 / 0.6 !important;

        vertical-align: top;

    }



          /* الاعلان الثاني */

          .second-ad-image {

            width: 100%;

            aspect-ratio: 5 / 1.5 !important;

            vertical-align: top;

        }



        /* الشريط الثاني للأخبار العاجلة الذي يتحرك */

        .news-ticker2 {

            margin: -2% 2% 3% 2%;

            /* top rght bottom left */

        }

  }







/* الستايل للشاشات التي تساوي 480px أو أكبر */

@media (min-width: 400px) {



        .welcome-image {

            height: 100px !important;

            object-fit: inherit !important;

        } 



        /* الاعلان الرئيسي */

        .main-ad-image {

            width: 100%;

            aspect-ratio: 5 / 0.9;

            vertical-align: top;

        }

}