/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BODY
========================= */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f6f9;
    color: #1f2937;
}

/* =========================
   CONTAINER
========================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* =========================
   HEADER / SITE NAME AREA
========================= */
header {
    background: #ffffff;
    color: #111827;
    text-align: center;
    padding: 0;
}

.pkp_structure_head,
.pkp_site_name_wrapper {
    background: #ffffff !important;
}

.pkp_site_name_wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_site_name {
    width: 100%;
    margin: 0;
    text-align: center;
}

.pkp_site_name a {
    display: block;
    width: 100%;
}

.pkp_site_name img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
    border: none;
}

/* إذا كانت صورة الهيدر طويلة */
@media (min-width: 992px) {
    .pkp_site_name .is_img img {
        max-height: none !important;
        width: 100% !important;
        object-fit: cover;
    }
}

/* =========================
   PRIMARY NAVIGATION
========================= */
.pkp_navigation_primary_row {
    background: #08111f !important;
    border-top: 1px solid #0f2038;
    border-bottom: 1px solid #0f2038;
    padding-left: 2rem;
    padding-right: 2rem;
}

#navigationPrimary,
#navigationUser {
    background: transparent !important;
}

#navigationPrimary a,
.pkp_navigation_search_wrapper a,
.pkp_search {
    color: #e5e7eb !important;
    font-weight: 500;
    transition: 0.3s ease;
}

#navigationPrimary a:hover,
.pkp_navigation_search_wrapper a:hover,
.pkp_search:hover {
    color: #38bdf8 !important;
    background: transparent !important;
}

.pkp_navigation_primary > li > a:focus,
.pkp_navigation_search_wrapper a:focus {
    background: transparent !important;
    color: #38bdf8 !important;
    outline: none;
}

/* User menu */
#navigationUser a {
    color: #7dd3fc !important;
}

#navigationUser a:hover {
    color: #ffffff !important;
}

#navigationUser .dropdown-menu {
    background: #0f172a !important;
    border: 1px solid #1e293b;
}

#navigationUser .dropdown-menu a {
    color: #e5e7eb !important;
}

#navigationUser .dropdown-menu a:hover {
    background: #111827 !important;
    color: #38bdf8 !important;
}

/* =========================
   MAIN CONTENT
========================= */
main {
    margin: 25px 0;
}

.pkp_structure_main {
    background: transparent;
}

.page,
.obj_issue_toc,
.obj_article_summary,
.obj_galley_link,
.block_make_submission a,
.cmp_button,
button,
a.button {
    border-radius: 4px;
}

/* محتوى الصفحات */
.pkp_structure_content {
    background: transparent;
}

/* بطاقات أو كتل المحتوى */
.cmp_article_list > li,
.obj_article_summary,
.obj_issue_summary,
.block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* =========================
   GRID
========================= */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.column {
    flex: 1;
    padding: 10px;
}

/* =========================
   LINKS / BUTTONS
========================= */
a {
    color: #0f4c81;
    text-decoration: none;
}

a:hover {
    color: #0ea5e9;
    text-decoration: none;
}

.cmp_button,
button,
input[type="submit"],
a.read_more {
    background: #0f172a;
    color: #ffffff !important;
    border: 1px solid #0f172a;
    padding: 8px 16px;
    transition: 0.3s ease;
}

.cmp_button:hover,
button:hover,
input[type="submit"]:hover,
a.read_more:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff !important;
}

/* =========================
   FOOTER
========================= */
.pkp_footer_content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
}

.pkp_brand_footer {
    display: none !important;
}

.pkp_structure_footer_wrapper,
.pkp_structure_footer {
    background: #07090c !important;
    border-top: 1px solid #1e293b !important;
    border-bottom: none !important;
    color: #cbd5e1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* في حال كان هناك محتوى نصي عادي داخل الفوتر */
.pkp_structure_footer_wrapper a,
.pkp_structure_footer a {
    color: #cbd5e1 !important;
}

.pkp_structure_footer_wrapper a:hover,
.pkp_structure_footer a:hover {
    color: #38bdf8 !important;
}

/* إلغاء ستايل الفوتر القديم */
footer {
    text-align: center;
    padding: 0;
    background: transparent !important;
    color: inherit;
}

/* =========================
   SIDEBAR / BLOCKS
========================= */
.pkp_block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 16px;
    margin-bottom: 20px;
}

.pkp_block .title {
    color: #0f172a;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .column {
        flex: 100%;
    }

    .pkp_navigation_primary_row {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pkp_site_name img {
        width: 100% !important;
        height: auto !important;
    }
}

@media (min-width: 992px) {
    .pkp_navigation_primary_row {
        background: #08111f !important;
        padding-left: 2.143rem;
        padding-right: 2.143rem;
    }
}