/* ========== القواعد العامة ========== */
body {
    font-family: 'Cairo', sans-serif;
    background-color: #f9f9f9;
    direction: rtl;
    text-align: right;
}


/* ========== شريط التنقل ========== */
.navbar {
    margin-bottom: 0;
    border-radius: 0;
}

.navbar-default {
    background-color: #337ab7;
    border: none;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a {
    color: #fff;
    font-weight: bold;
}

.navbar-default .navbar-nav > li > a:hover {
    background-color: #286090;
    color: #fff;
}

/* ========== الفوتر ========== */
footer {
    background-color: #eee;
    padding: 20px 10px;
    margin-top: 40px;
    font-size: 14px;
    color: #333;
}

footer a {
    color: #337ab7;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ========== الصفحة الرئيسية ========== */
.jumbotron {
    background-color: #ffffff;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* ========== الأزرار المخصصة ========== */
.btn-primary {
    background-color: #337ab7;
    border-color: #2e6da4;
}

.btn-primary:hover {
    background-color: #286090;
    border-color: #204d74;
}

/* ========== تنسيقات إضافية حسب الحاجة ========== */
/* مثل تنسيق البطاقات، العناوين، الأقسام... */

/* ========== الصفحة الرئيسية (index) ========== */

.jumbotron {
    background-color: #ffffff;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.jumbotron h1 {
    font-size: 36px;
    color: #333;
}

.jumbotron p {
    font-size: 18px;
    color: #555;
}

section {
    margin-top: 50px;
    margin-bottom: 50px;
}

section h2 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.img-thumbnail {
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.page-header h1 {
    font-weight: bold;
    color: #286090;
}

.about-section p {
    font-size: 16px;
    color: #444;
}

.about-section ul {
    list-style-type: square;
    padding-left: 20px;
}

.about-section ul li {
    margin-bottom: 8px;
    color: #555;
}


.panel-primary > .panel-heading {
    background-color: #337ab7;
    border-color: #2e6da4;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
}

.panel-body {
    font-size: 15px;
    color: #333;
    text-align: center;
}

.thumbnail {
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail img {
    border-radius: 8px 8px 0 0;
}

.caption h3 {
    color: #337ab7;
    font-weight: bold;
}

.caption p {
    color: #555;
}

table {
    font-size: 15px;
    direction: rtl;
}
th, td {
    vertical-align: middle !important;
}

/* ========== تعديل ترتيب قائمة navbar لتناسب RTL في Bootstrap 3 ========== */
.navbar-nav {
    float: none !important; /* نلغي الفلوت */
    display: flex !important;
    flex-direction: row-reverse !important; /* لترتيب العناصر من اليمين لليسار */
    justify-content: flex-start !important;
    direction: ltr !important; /* حتى ترتيب النصوص داخل الروابط طبيعي */
}

.navbar-nav > li {
    float: none !important; /* نلغي الفلوت */
}

}
