﻿/* ✅ صفحة ممتدة لكامل الطول لمنع تحريك الفوتر */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    padding-top: 70px;
    padding-bottom: 120px; /* مساحة للفوتر الثابت */
}

/* ✅ تثبيت الفوتر في أسفل الصفحة */
footer {
    background-color: #6A1B9A;
    color: white;
    padding: 20px 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

/* ✅ تباعد داخلي في القائمة */
.navbar .container {
    padding-right: 15px;
    padding-left: 15px;
}

/* ✅ القائمة في الجوال */
@media (max-width: 991px) {
    .top-menu {
        width: 100%;
        padding: 1rem;
        background-color: #6A1B9A;
    }

        .top-menu .navbar-nav {
            flex-direction: column !important;
            align-items: flex-start !important;
        }

            .top-menu .navbar-nav > li {
                padding: 0.5rem 1rem;
                width: 100%;
            }
}

/* ✅ القائمة في الشاشات الكبيرة */
@media (min-width: 992px) {
    .top-menu {
        text-align: left;
    }

        .top-menu .navbar-nav {
            flex-direction: row;
            justify-content: flex-start;
        }
}

/* ✅ تنسيق قائمة DevExpress */
.dx-bs5.bg-light {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background-color: #e9ecef;
    border-radius: .3rem;
}

@media (min-width: 576px) {
    .dx-bs5.bg-light {
        padding: 4rem 2rem;
    }
}

/* ✅ رأس الصفحة */
.navbar.bg-light {
    background-color: #6A1B9A !important;
}

.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
    color: white !important;
}

.navbar-light .navbar-toggler {
    border-color: white;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ✅ بدون تجاوز للعرض */
.container, #ctl01 > div.container {
    /* يمكن تعديل العرض لاحقًا */
}

/* ✅ DevExpress CardView */
.dxeCardView_Rounded .dxeCardView_Rounded,
.dxeCardView_Rounded .dxeCardView_Rounded * {
    box-sizing: border-box;
}

.dxeCardContentCell {
    width: 100% !important;
    padding: 15px !important;
    text-align: right;
    direction: rtl;
}

.job-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
}

.card-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    text-align: right;
}

.card-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: right;
    word-wrap: break-word;
}

/* ✅ زر التقديم */
.apply-button {
    display: block;
    background-color: #6A1B9A;
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
    width: 100%;
    transition: background-color 0.3s;
}

    .apply-button:hover {
        background-color: #8E24AA;
        color: white;
    }

/* ✅ للهواتف */
@media (max-width: 767px) {
    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .apply-button {
        padding: 7px 10px;
        font-size: 0.9rem;
    }

    .dxeCardContentCell {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
    }
}

/* ✅ إصلاحات RTL إضافية */
.dxeCardView_Rounded .dxeCardView_Rounded {
    direction: rtl !important;
}

    .dxeCardView_Rounded .dxeCardView_Rounded .dxeCardViewItem {
        text-align: right !important;
    }

/* ✅ ألوان الروابط في القائمة */
.navbar-light .navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
}

    .navbar-light .navbar-nav .nav-link:hover {
        color: #FFD700 !important;
    }




/* ✅ تجعل الصفحة تملأ الشاشة دائمًا */
html, body, form {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ✅ المحتوى الرئيسي يتمدد */
.page-content {
    flex: 1;
    padding-top: 70px;
    padding-bottom: 20px;
}

/* ✅ الفوتر ثابت بأسفل الصفحة */
.site-footer {
    background-color: #6A1B9A;
    color: white;
    padding: 25px 10px;
}
