/* --- إعدادات الخطوط والألوان الأساسية --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

:root {
    --primary-color: #10526C; /* العنابي الملكي */
    --secondary-color: #d4af37; /* الذهبي */
    --accent-color: #fdfbf7; /* لون بيج فاتح جداً للخلفيات المميزة */
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
}

/* --- الشريط العلوي الرفيع --- */
.top-bar {
    background-color: #1a1a1a;
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--secondary-color);
}
.top-bar a { color: #eee; transition: 0.3s; margin-left: 15px; }
.top-bar a:hover { color: var(--secondary-color); }

/* --- الهيدر الفخم (Logo Area) --- */
.main-header {
    background: #fff;
    padding: 25px 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
/* إضافة نقشة خلفية خفيفة للهيدر لزيادة الجمالية */
.main-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#781d1d 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.03;
    z-index: 0;
}

.header-content { position: relative; z-index: 1; }
.journal-title h1 {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.journal-title p { color: #555; font-size: 1rem; margin: 0; }

.logo-img { height: 90px; width: auto; transition: transform 0.3s; }
.logo-img:hover { transform: scale(1.05); }

/* --- القائمة الرئيسية (Navbar) --- */
.navbar-custom {
    background: var(--primary-color);
    padding: 0;
    box-shadow: 0 4px 10px rgba(120, 29, 29, 0.3);
}
.navbar-custom .nav-link {
    color: #fff !important;
    font-weight: 600;
    padding: 15px 20px !important;
    position: relative;
    font-size: 1rem;
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; width: 0%; height: 4px;
    background-color: var(--secondary-color);
    transition: 0.3s;
}
.navbar-custom .nav-link:hover { background-color: rgba(0,0,0,0.1); }
.navbar-custom .nav-link:hover::after { width: 100%; }

/* --- تصميم الأشرطة الجانبية (Sidebar) --- */
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border-top: 4px solid var(--secondary-color);
}
.widget-title {
    background: #fff;
    padding: 15px 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-content { padding: 15px; }

.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li { border-bottom: 1px solid #f4f4f4; }
.sidebar-menu li:last-child { border-bottom: none; }
.sidebar-menu a {
    display: block;
    padding: 12px 10px;
    color: #444;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}
.sidebar-menu a:hover {
    background-color: #fdfbf7;
    color: var(--primary-color);
    padding-right: 15px; /* تأثير حركة عند اللمس */
}
.sidebar-menu i { color: var(--secondary-color); margin-left: 8px; font-size: 0.8rem; }

/* --- قسم "عن المجلة" المميز --- */
.about-journal-box {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e0e0e0;
    position: relative;
}
.about-journal-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 5px; height: 100%;
    background: var(--secondary-color);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.section-head {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.section-head::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; width: 60px; height: 3px;
    background-color: var(--secondary-color);
}

/* --- بطاقات المقالات (Article Cards) --- */
.article-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
    position: relative;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}
.article-title {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}
.article-title:hover { color: #a02828; }

.meta-info {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}
.meta-info i { color: var(--secondary-color); }

.btn-view {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: 0.3s;
}
.btn-view:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-pdf {
    background-color: #f8f9fa;
    color: #dc3545;
    border: none;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-right: 10px;
}
.btn-pdf:hover { background-color: #dc3545; color: #fff; }

/* --- الفوتر --- */
footer {
    background-color: #151515;
    color: #bbb;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 5px solid var(--secondary-color);
}
footer h5 { color: #fff; margin-bottom: 25px; font-weight: 700; }
footer ul li { margin-bottom: 10px; }
footer a { color: #bbb; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--secondary-color); margin-right: 5px; }
.copyrights { border-top: 1px solid #333; padding-top: 20px; margin-top: 40px; font-size: 0.9rem; }