/* ==========================================================================
   1. تحسين الخطوط والعناوين العامة (Typography & Headings)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #333333;
    background-color: #f7f9fa;
}

/* تنسيق وتفخيم العناوين الرئيسية والفرعية */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: #002d59; /* الأزرق الداكن المستوحى من الغلاف */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

/* تمييز العناوين بلمسة جمالية (خط سفلي أو جانبي) */
.page_title, h1 {
    font-size: 2.2rem;
    border-left: 5px solid #004b8d;
    padding-left: 15px;
    margin-top: 20px;
}

h2 {
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 8px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #004b8d; /* اللون الأزرق الحيوي */
    border-radius: 2px;
}

/* ==========================================================================
   2. القائمة العلوية بتأثير ثلاثي الأبعاد Modern 3D Gradient Menu
   ========================================================================== */
.pkp_navigation_primary_wrapper, .nav-dropdown {
    background: linear-gradient(180deg, #004b8d 0%, #002d59 100%) !important;
    border-bottom: 4px solid #001a33;
    /* تأثير الظل الخارجي والداخلي لإعطاء عمق 3D */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 
                0 4px 10px rgba(0, 0, 0, 0.3) !important;
    border-radius: 4px;
}

/* عناصر القائمة */
.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 15px 20px !important;
    transition: all 0.3s ease;
}

/* تأثير مرور الماوس فوق القائمة */
.pkp_navigation_primary > li > a:hover {
    background: linear-gradient(180deg, #0056a3 0%, #003366 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
}

/* ==========================================================================
   3. الفوتر المظلم وإخفاء أيقونة OJS (Dark Footer Design)
   ========================================================================== */
.pkp_structure_footer_wrapper {
    background-color: #1a1a1a !important; /* أسود/أزرق مسود داكن جداً مثل الصورة الثانية */
    color: #cccccc !important;
    border-top: 3px solid #004b8d;
    padding: 40px 0 20px 0 !important;
}

/* عناوين الفوتر */
.pkp_structure_footer h3, 
.pkp_structure_footer .footer-widget h4 {
    color: #ffffff !important;
    border-left: 3px solid #004b8d;
    padding-left: 10px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* روابط الفوتر */
.pkp_structure_footer a {
    color: #a0aec0 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pkp_structure_footer a:hover {
    color: #ffffff !important;
}

/* إخفاء شعار/أيقونة OJS تماماً من الفوتر */
.pkp_brand_footer {
    display: none !important;
}
/* ==========================================================================
   Two-Column Dark Footer (50% Split)
   ========================================================================== */
.pkp_structure_footer_wrapper {
    background-color: #161616 !important; /* لون أسود خافض ومطفأ */
    color: #b3b3b3 !important;
    border-top: 1px solid #262626;
    padding: 60px 0 30px 0 !important;
    direction: ltr !important;
}

/* حاوية التقسيم الرئيسي */
.custom-footer-container {
    display: flex;
    justify-content: space-between; /* توزيع احترافي بين الطرفين */
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    flex-wrap: wrap;
}

/* تقسيم الفوتر إلى نصفين متساويين */
.footer-column-left, 
.footer-column-right {
    flex: 0 0 45%; /* حجز 45% لكل جانب لترك مسافة جمالية في المنتصف */
    min-width: 300px;
    margin-bottom: 30px;
}

/* تنسيق العناوين مع الخط المذهب جهة اليسار */
.footer-column-title {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid #c5a059 !important;
    text-align: left !important;
}

/* تنسيق النصوص والروابط */
.footer-about-text {
    color: #999999 !important;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
}

.footer-location {
    display: block;
    color: #c5a059 !important;
    font-size: 0.9rem;
    text-align: left;
    margin-top: 15px;
}

.footer-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left;
}

.footer-links-list li {
    margin-bottom: 15px;
    border-bottom: 1px dashed #262626;
    padding-bottom: 10px;
}

.footer-links-list li:last-child {
    border-bottom: none;
}

.footer-links-list li a {
    color: #999999 !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links-list li a:hover {
    color: #ffffff !important;
}

/* الـ Powered By أسفل القسمين وفي المنتصف تماماً */
.footer-bottom-credits {
    text-align: center !important;
    width: 100%;
    clear: both;
    border-top: 1px solid #222222;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #555555 !important;
}

/* إخفاء أيقونة OJS */
.pkp_brand_footer, .pkp_structure_footer .brand {
    display: none !important;
}