/* تنسيقات عامة للموقع */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f9f9f9;
    color: #333;
}
/* تنسيق شريط التنقل */
header {
    background-color: #0A2540; /* لون كحلي دبلوماسي */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;

    
}

header .logo {
    font-size: 30px;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 15px;
    gap: 30%; 
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
   
    display: flex;
}

header nav ul li {
    margin-left: 20px;
    
}

header nav ul li a {
    color: #cbd5e1;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;

}

header nav ul li a:hover {
    color: #d4b714; /* لون ذهبي عند تمرير الفأرة */
}

header nav ul li a::after {
content: "";
position: absolute;
width: 0;
height: 2px;
bottom: 0;
right: 0;
background-color: #38bdf8;
transition: width 0.3s ease;
}

header nav ul li a:hover:after {
width: 100%;

}
/* تنسيق القسم الترحيبي */
.hero {
    background-color: #113f67;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero button {
    background-color: #FFD700;
    color: #113f67;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;

}

/* تنسيق التذييل */
footer {
    background-color: #0A2540;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 7%;
    white-space: nowrap;
}
/* تنسيق حاوية تسجيل الدخول */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: right;
}

.login-container h2 {
    color: #0A2540;
    margin-bottom: 20px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #0A2540;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.btn-submit:hover {
    background-color: #113f67;
}
/* تنسيق عنوان الصفحة */
.page-title {
    text-align: center;
    padding: 60px 20px;
    background-color: #f0f4f8;
    color: #0A2540;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.page-title h1 {
    margin-bottom: 10px;
}

/* تنسيق حاوية البطاقات (Grid) */
.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 5%;
    background-color: #f9f9f9;
    
}

/* تنسيق البطاقة الفردية */
.program-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* شارات التصنيف */
.program-badge {
    position: static;
    top: 15px;
    left: 15px;
    right: 15px;
    text-align: center;
    background-color: #0A2540;
    color: #fff;
    padding: 5px 10px;
    font-size: 16px;

    border-radius: 4px;
}

.program-badge.course {
    background-color: #b98314; /* لون مختلف للدورات */
}

.program-card h3 {
    color: #113f67;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 20px;
}

.program-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.program-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #444;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 20px;

    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.program-card ol{
    flex-grow: 1;
    padding: 20px;
    margin: 0;
}

/* زر التسجيل داخل البطاقة */
.btn-enroll {
    display: block;
    text-align: center;
    background-color: #0A2540;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-enroll:hover {
    background-color: #FFD700;
    color: #0A2540;
}

/* تمييز الرابط النشط في القائمة */
header nav ul li a.active {
    color: #FFD700;
    border-bottom: 2px solid #FFD700;
}
/* حاوية الاتصال المقسمة */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px 5%;
    background-color: #f9f9f9;
}

/* تنسيق قسم النموذج */
.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-form h3, .contact-info h3 {
    color: #0A2540;
    margin-bottom: 25px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
    display: inline-block;
}

/* تنسيق حقل النص الكبير */
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

/* تنسيق قسم معلومات الاتصال */
.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: #0A2540;
    color: white;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* مكان الخريطة الوهمي */
.mock-map {
    background-color: #113f67;
    height: 200px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #FFD700;
    padding: 10px;
    font-size: 14px;
    color: #FFD700;
}
/* تنسيق قسم العميد المطور */
.dean-section {
    padding: 60px 5%;
    background-color: #ffffff;
}

.dean-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    background: #fdfdfd;
    border: 1px solid #eef2f5;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.dean-image img {
    width: 250px;
    height: 300px;
    object-fit: cover; /* لضمان عدم تشوه الصورة */
    border-radius: 8px;
    border-bottom: 5px solid #FFD700; /* لمسة ذهبية أسفل الصورة */
}

.dean-details {
    flex: 1;
}

.title-badge {
    background: #0A2540;
    color: #fff;
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.dean-details h2 {
    color: #0A2540;
    margin: 0 0 15px 0;
    font-size: 26px;
}

.short-bio {
    font-size: 16px;
    color: #444;
    font-weight: bold;
    margin-bottom: 15px;
}

.dean-quote {
    font-style: italic;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-more {
    color: #0A2540;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.btn-more:hover {
    color: #b98314;
}

/* تنسيق قسم الدكاترة */
.faculty-section {
    padding: 60px 5%;
    background-color: #f4f7f6;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: #0A2540;
    font-size: 28px;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.faculty-card {
    background: #ffffff;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-top: 3px solid #113f67;
}

.faculty-img {
    width: 130px;
    height: 130px;
    border-radius: 12px; /* صورة دائرية دلالة على الطابع الأكاديمي الشخصي */
    object-fit: cover;
    margin-bottom: 15px;
    border: none !important;
    background-size: contain ;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 !important;
    margin: 0 !important;

}

.faculty-card h3 {
    color: #0A2540;
    margin: 10px 0 5px 0;
    font-size: 19px;
}

.faculty-specialty {
    color: #b98314;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.faculty-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 70px; /* لتوحيد حجم المربعات */
    overflow: hidden;
}

.btn-faculty-more {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #0A2540;
    color: #0A2540;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-faculty-more:hover {
    background-color: #0A2540;
    color: #ffffff;
}
/* تحسين شريط التنقل لبوابة الطلاب */
.btn-nav-login {
    background-color: #FFD700;
    color: #0A2540 !important;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: bold;
}
.btn-nav-login:hover {
    background-color: #ffffff;
    color: #0A2540 !important;
}

/* تنسيق القسم الترحيبي (Hero) */
.hero-section {
    background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(17, 63, 103, 0.9)), url('../images/hero-bg.jpg') no-repeat center center/cover;
   color: #FFD700;
    padding: 120px 5%;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    background-color: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid #FFD700;
}

.hero-section h1 {
    font-size: 38px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary {
    background-color: #FFD700;
    color: #0A2540;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary:hover { background-color: #e6c200; }
.btn-secondary:hover { background-color: #ffffff; color: #0A2540; }

/* تنسيق قسم النبذة المختصرة */
.brief-section {
    padding: 60px 5%;
    background-color: #ffffff;
    text-align: center;
}

.brief-section h2 {
    color: #0A2540;
    font-size: 28px;
    margin-bottom: 20px;
}

.brief-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.read-more-link {
    color: #113f67;
    text-decoration: none;
    font-weight: bold;
}

/* تنسيق قسم الأخبار والإعلانات */
.news-section {
    padding: 60px 5%;
    background-color: #f4f7f6;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 { color: #0A2540; font-size: 28px; }
.section-title p { color: #666; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-card {
    background: #ffffff;
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border-right: 4px solid #FFD700; /* لمسة جمالية في الطرف الأيمن للخبر */
}

.goals-card{
    margin-top: 40px;

}

.news-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    max-width: 1800px;
    margin: 0 auto;
}

.news-card2 {
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}


.news-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.news-card h3 {
    color: #0A2540;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.news-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    color: #113f67;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* قسم الشركاء والاعتمادات */
.partners-section {
    padding: 40px 5%;
    background-color: #ffffff;
    text-align: center;
    border-top: 1px solid #eee;
    margin-bottom: 80px;
}

.partners-section h3 {
    color: #999;
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.partner-logo {
    font-weight: bold;
    color: #555;
    font-size: 16px;
    border: 2px dashed #ccc;
    padding: 10px 20px;
    border-radius: 4px;
}
/* تنسيقات خاصة بجسم لوحة التحكم */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    background-color: #f4f7f6;
    margin: 0;
}

/* تنسيق الشريط الجانبي */
.sidebar {
    width: 260px;
    background-color: #0A2540;
    color: white;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-header h3 { margin: 0 0 5px 0; color: #FFD700; }
.sidebar-header p { margin: 0; font-size: 14px; opacity: 0.8; }

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background-color: #113f67;
    color: #FFD700;
    border-right: 4px solid #FFD700;
}

.logout-link {
    margin-top: auto;
    color: #ff6b6b !important;
}

/* منطقة المحتوى الرئيسي */
.dashboard-content {
    flex: 1;
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.dashboard-header h2 { color: #0A2540; margin: 0; }
.student-id { background: #e0e6ed; padding: 5px 12px; border-radius: 4px; font-size: 14px; font-weight: bold; }

/* شبكة الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border-bottom: 4px solid #0A2540;
}

.stat-card h4 { margin: 0 0 10px 0; color: #666; font-size: 14px; }
.stat-number { margin: 0; font-size: 24px; font-weight: bold; color: #113f67; }

/* الجداول */
.current-courses h3 { color: #0A2540; margin-bottom: 15px; }

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.dashboard-table th, .dashboard-table td {
    padding: 15px 20px;
    text-align: right;
    border-bottom: 1px solid #eef2f5;
}

.dashboard-table th { background-color: #113f67; color: white; }

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.active { background-color: #d4edda; color: #155724; }
/* تنسيق أزرار التحكم الإدارية داخل الجدول */
.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    margin-left: 5px;
}

.btn-action.accept {
    background-color: #28a745;
    color: white;
}

.btn-action.accept:hover {
    background-color: #218838;
}

.btn-action.reject {
    background-color: #dc3545;
    color: white;
}

.btn-action.reject:hover {
    background-color: #c82333;
}

/* تمييز خلفية شريط الإدارة الجانبي بلون أغمق قليلاً للفرق */
.admin-sidebar {
    background-color: #051424;
}
/* تنسيق قسم الهيرو الجديد */
.faculty-hero {
    height: 300px;
    background: url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    background: rgba(10, 37, 64, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* شبكة الدكاترة */
.faculty-grid-container { padding: 60px 5%; }
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.doctor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.doctor-card:hover { transform: translateY(-10px); }

.doc-img-box {
    height: 250px;
    overflow: hidden;
    background: #f9f9f9;
}

.doc-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card h3 { color: #0A2540; margin: 15px 0 5px; }
.specialty { color: #b98314; font-weight: bold; font-size: 14px; }
.cv-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #0A2540;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}
/* تنسيق صفحة السيرة الذاتية الكاملة Profile */
.profile-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 30px;
    border-top: 5px solid #0A2540;
}

.profile-header {
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.profile-main-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #eef2f5;
}

.info-text h2 {
    color: #0A2540;
    margin: 0 0 5px 0;
    font-size: 24px;
}

.info-text p {
    color: #b98314;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.badge {
    background: #e0e6ed;
    color: #0A2540;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
}

.cv-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cv-section h3 {
    color: #0A2540;
    font-size: 18px;
    border-right: 4px solid #b98314;
    padding-right: 10px;
    margin-bottom: 15px;
}

.cv-section ul {
    padding-right: 20px;
    margin: 0;
}

.cv-section li {
    margin-bottom: 8px;
    color: #444;
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #0A2540;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.back-link:hover {
    color: #b98314;
}
/* تنسيقات عامة للموقع */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* الحاوية الرئيسية التي تقسم الصفحة */
.main-container {
    display: flex;
    min-height: 110px; /* لتأخذ الصفحة كامل الارتفاع */
    flex-wrap: wrap; /* لجعل التصميم متجاوباً مع الشاشات الصغيرة */
}

/* تنسيق مشترك للقسمين */
.section {
    flex: 1; /* تجعل كل قسم يأخذ مساحة متساوية 50% */
    min-width: 300px; /* لمنع صغر القسم جداً على الهواتف */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* لون النص */
    
}

/* تخصيص لون الخلفية لكل قسم (مثل ألوان موقعك) */
.section-one {
    background-color: #1e5f74; /* اللون الأزرق الداكن */
    color: #ecbb0b;

}

.section-two {
    background-color: #0d3b4c; /* لون أزرق مختلف أو أغمق قليلاً للتفريق */
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* خط فاصل بسيط */
     color: #ecbb0b;
     
}

/* تنسيق العناصر الداخلية (الأزرار والنصوص) */
.badge {
    background-color: #f0a500;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    max-width: 400px;
    line-height: 1;
    margin-bottom: 30px;
}

.btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background-color: white;
    color: #1e5f74;
}
/* 1. التحكم بالحاوية التي تجمع الشعارين بجانب بعضهما */
.logo-container {
    display: flex;
    gap: 100px;          /* المسافة بين الشعارين (يمكنك زيادتها أو تقليلها) */
    align-items: center; /* لجعل الشعارين على استقامة واحدة عمودياً */
}

/* 2. تصغير حجم الصور وتحديد أبعادها */
.logo-img {
    width: 70px;        /* العرض الجديد للشعارات (صغره أو كبره حسب رغبتك) */
    height: auto;       /* لكي تحافظ الصورة على أبعادها دون أن تتشوه */
}
/* إعدادات الخطوط والتنسيق العام */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f2;
    color: #2b2b2b;
    margin: 0;
    padding: 20px;
    line-height: 1.8;
}

/* حاوية المجلة الرئيسية */
.magazine-container {
    max-width: 1800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);

    

}

/* رأس الصفحة */
.magazine-header .category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: bold;
    display: flex;

    

}

.magazine-header hr, .magazine-footer hr {
    border: none;
    border-top: 2px solid #2b2b2b;
    margin: 10px 0 30px 0;
    width: 100%;
    display: flex;
    
    
}

/* العناوين */
.main-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #111;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

/* الصور */
.main-image {
    margin-bottom: 30px;
    display: flex;
    gap: 100%;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    font-size: 0.85rem;
    color: #777;
    margin-top: 8px;
}

/* تقسيم المقال إلى أعمدة (سر شكل المجلة) */
.article-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* تقسيم الصفحة لعمودين متساويين */
    gap: 40px; /* المسافة بين العمودين */
    text-align: justify; /* محاذاة النص ليصبح مستوياً من الجانبين */
}

/* الاقتباس المميز وسط النص */
.pull-quote {
    grid-column: span 1; /* يمكن تعديلها لـ span 2 إذا أردت أن يقطع الاقتباس العمودين */
    font-size: 1.3rem;
    font-weight: bold;
    color: #c0392b; /* لون مميز للاقتباس */
    border-right: 4px solid #c0392b;
    padding-right: 15px;
    margin: 20px 0;
}

/* تذييل الصفحة */
.magazine-footer hr {
    margin: 40px 0 10px 0;
    width: 100%s;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.page-number {
    font-weight: bold;
}

/* متجاوب مع الشاشات الصغيرة (الهواتف) */
@media (max-width: 768px) {
    .article-columns {
        grid-template-columns: 1fr; /* يتحول لعمود واحد في الهواتف لسهولة القراءة */
        gap: 20px;
    }
    .main-title {
        font-size: 1.8rem;
    }
}
/* إعدادات التذييل ليمتد على كامل عرض الشاشة */
.magazine-footer {
    width: 100%;
    background-color: #0b1b61; /* خلفية داكنة كمثال للمجلات المحترفة */
    color: #ffffff; /* لون نص أبيض ليتباين مع الخلفية */
    padding: 20px 0;
    margin-top: 50px;
    ;
}

/* الحاوية الداخلية لضبط محاذاة النص مع محتوى المجلة العلوي */
.footer-content {
    max-width: 900px; /* نفس عرض حاوية المجلة تماماً */
    margin: 0 auto; /* لتوسيط المحتوى في المنتصف */
    padding: 0 40px; /* نفس الحشوة الجانبية للمجلة */
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    width: 100%;
}

/* تعديل بسيط للون رقم الصفحة ليناسب الخلفية الداكنة */
.magazine-footer .page-number {
    font-weight: bold;
    color: #f4f4f2;
}
/* 1. نطبق الفليكس على عنصر الـ ul المباشر لتصطف القائمة أفقياً */
.magazine-header ul {
    display: flex;
    flex-direction: row; /* للتأكد من اصطفافها بجانب بعضها */
    list-style: none;    /* لحذف النقاط السوداء الخاصة بالقائمة */
    padding: 0;
    margin: 0;
    gap: 20px;          /* المسافة بين الكلمات (جرب 20 بكسل بدلاً من 100 بكسل) */
    justify-content: center;
}

/* 2. تنسيق الكلمات أو الروابط نفسها (اختياري حسب رغبتك) */
.magazine-header ul li a {
    text-decoration: none; /* لحذف الخط الذي تحت الرابط */
    font-size: 0.9rem;
    font-weight: bold;
    color: #b6882c;
    align-content: center;
}

/* --- تنسيق شبكة الأقسام الـ 10 للمجلة --- */
/* الحاوية الأبوية الكبرى - تعيد التنسيق الأبيض الملموم والمريح للعين */
.magazine-container {
    max-width: 1200px; /* العرض الأقصى لضمان عدم تمدد الكروت بشكل مشوه */
    margin: 40px auto;
    background-color: #ffffff; /* الخلفية البيضاء الأنيقة */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* الظل الناعم القديم */
    border: 1px solid #e2e8f0;
}

/* شبكة الكروت بالداخل - عمودين و5 صفوف متناسقة */
.magazine-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* عمودين متساويين */
    gap: 25px; /* مسافة أمان ثابتة ومنتظمة بين الأقسام */
    padding: 10px 0;
}

/* --- إعادة التصميم الجمالي القديم لكارد القسم (Section Interface) --- */
.section-interface {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* تأثير الحركة عند تمرير الماوس فوق الكارد */
.section-interface:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

/* الهيدر الداخلي (العنوان والبادج) */
.interface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.interface-header h2 {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 700;
}

/* البادج الأزرق المضيء (Badge) */
.badge-text {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
}

/* عناصر واجهة العرض الافتراضية */
.internal-features {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 15px;
}

.internal-features strong {
    color: #0f172a;
    font-weight: 600;
}

/* صندوق الشرح التفصيلي التوضيحي (الرمادي ذو الحافة الجانبية) */
.explanation-placeholder {
    background-color: #f8fafc;
    border-right: 4px solid #cbd5e1; /* حافة رمادية تعطي طابع الملاحظات الذكية */
    padding: 12px 15px;
    border-radius: 4px;
}

.placeholder-text {
    font-size: 0.88rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.6;
}

/* --- التجاوب مع الشاشات الصغيرة --- */
@media (max-width: 900px) {
    .magazine-content {
        grid-template-columns: 1fr; /* عمود واحد على الموبايل */
        gap: 20px;
    }
    .interface-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* --- شارات حالة المادة الدراسية (Status Badges) --- */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px; /* زوايا دائرية بالكامل لتعطي مظهر الشارة */
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
}

/* الحالة: مستمر (Active) */
.status-badge.active {
    background-color: #e0fdf4; /* خلفية خضراء فاتحة مريحة */
    color: #115e59;            /* نص أخضر داكن متناسق */
    border: 1px solid #bbf7d0;  /* إطار خفيف جداً لتحديد الشارة */
}

/* حالة إضافية مستقبلاً: مكتمل (Completed) في حال احتجتها */
.status-badge.completed {
    background-color: #e0f2fe; /* خلفية زرقاء فاتحة */
    color: #0369a1;            /* نص أزرق داكن */
    border: 1px solid #bae6fd;
}

/* --- 📱 التجاوب الشامل للهواتف المحمولة (Media Query) --- */
@media (max-width: 768px) {
    
    /* 1. تحويل كافة شبكات العرض (Grids) إلى عمود واحد تلقائياً */
    .news-grid, .stats-grid, .interfaces-container {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* 2. ضبط بوابات التحكم (لوحة الطالب والإدارة) على الموبايل */
    .dashboard-body {
        display: flex;
        flex-direction: column; /* تحويل التوزيع الجانبي ليكون عمودياً فوق بعضه */
    }

    .sidebar {
        width: 100% !important;
        height: auto !important;
        padding: 15px;
    }

    .dashboard-content {
        padding: 15px !important;
    }

    /* 3. جعل الجداول قابلة للتمرير الأفقي اللطيف لحمايتها من الانضغاط */
    .current-courses {
        overflow-x: auto;
    }
    
    .dashboard-table {
        min-width: 500px; /* تأمين مساحة قراءة مريحة لبيانات الجدول */
    }
}

/* --- تنسيق مجموعة الروابط الداخلية داخل الكاردات --- */
.internal-links-group {
    display: flex;
    flex-direction: column; /* ترتيب الروابط عمودياً تحت بعضها */
    gap: 10px; /* مسافة أمان صغيرة بين كل رابط والآخر */
    margin-top: 15px;
    text-align: right;
}

/* تنسيق العناوين الجانبية الصغيرة (مثل: مجلس الأمناء، الأنشطة الطلابية) */
.internal-links-group h4 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-top: 10px;
    margin-bottom: 2px;
    border-right: 3px solid #38bdf8; /* خط أزرق صغير يميز العنوان الجانبي */
    padding-right: 8px;
}

/* التنسيق الجمالي للرابط الفرعي */
.internal-links-group a {
    font-size: 0.9rem;
    color: #475569; /* لون رمادي أنيق ورصين للنص */
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #f8fafc; /* خلفية خفيفة جداً تحدد مساحة النقر */
    transition: all 0.2s ease;
    display: block;
}

/* تأثير مرور الماوس (Hover) فوق الرابط الفرعي */
.internal-links-group a:hover {
    color: #0284c7; /* يتحول النص للون الأزرق الداكن للمعهد */
    background-color: #e0f2fe; /* تتحول الخلفية للون أزرق سماوي ناعم */
    padding-right: 15px; /* حركة إزاحة خفيفة لليمين تعطي إحساساً بالتفاعل */
}