/* =========================================================
   فصلنامه نگاه شهروند
   OJS Default Theme — نسخه اصلاح‌شده 2
   ========================================================= */

/* ---------- پایه ---------- */
html,
body {
    direction: rtl;
    text-align: right;
    overflow-x: hidden !important;
}

body {
    font-family: "Noto Sans Arabic", "Noto Sans", Tahoma, Arial, sans-serif;
    background: #f5f7f9;
    color: #243746;
    line-height: 1.9;
}

* {
    box-sizing: border-box;
}

a {
    color: #1E6292;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #154a70;
}

/* ---------- سربرگ ---------- */
.pkp_structure_head {
    background: #1E6292 !important;
    border: 0 !important;
    box-shadow: 0 4px 16px rgba(15, 45, 65, 0.14);
}

.pkp_head_wrapper {
    max-width: 1240px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.pkp_site_name_wrapper {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
}

.pkp_site_name {
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 0 14px !important;
    margin: 0 !important;
    text-align: right !important;
}

.pkp_site_name .is_img {
    display: block !important;
    margin: 0 !important;
}

.pkp_site_name .is_img img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 230px !important;
    max-height: 86px !important;
    object-fit: contain;
    margin: 0 !important;
}

/* ---------- منوی اصلی ---------- */
.pkp_navigation_primary_wrapper {
    min-height: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.pkp_navigation_primary {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0 !important;
    direction: rtl;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_primary > li {
    margin: 0 !important;
}

.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    padding: 13px 9px !important;
    border-bottom: 3px solid transparent;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
}

/* جست‌وجو و حساب کاربری */
.pkp_navigation_search_wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_search_wrapper a,
.pkp_navigation_user > li > a {
    color: #ffffff !important;
    font-size: 14px;
}

.pkp_navigation_user {
    direction: rtl;
}

/* ---------- ساختار محتوا ---------- */
.pkp_structure_content {
    display: block !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 32px 22px 46px !important;
}

/* حذف کامل ستون کناری خالی */
.pkp_page_index .pkp_structure_sidebar,
.pkp_structure_sidebar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

/* تمام‌عرض شدن محتوای اصلی */
.pkp_page_index .pkp_structure_main,
.pkp_structure_main {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 30px 32px !important;
    background: #ffffff;
    border: 0 !important;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(25, 55, 75, 0.07);
}

/* حذف خطوط عمودی باقی‌مانده */
.pkp_structure_content::before,
.pkp_structure_content::after,
.pkp_structure_main::before,
.pkp_structure_main::after {
    display: none !important;
    content: none !important;
}

/* ---------- درباره مجله ---------- */
.homepage_about,
.journal-description,
.additional_content {
    width: 100% !important;
    max-width: none !important;
    background: #f1f6fa;
    border: 0 !important;
    border-right: 5px solid #1E6292 !important;
    border-radius: 10px;
    padding: 22px 24px !important;
    margin: 0 0 26px !important;
}

.homepage_about h2,
.homepage_about h3 {
    color: #173f5f;
    margin-top: 0;
}

/* ---------- فراخوان‌ها و اطلاعیه‌ها ---------- */
.cmp_announcements {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.obj_announcement_summary {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    background: #ffffff;
    border: 1px solid #dce6ed !important;
    border-right: 5px solid #1E6292 !important;
    border-radius: 10px;
    padding: 22px 24px !important;
    margin: 0 0 18px !important;
    box-shadow: 0 4px 14px rgba(30, 98, 146, 0.06);
}

.obj_announcement_summary .title,
.obj_announcement_summary .title a {
    color: #1E6292;
    font-weight: 800;
}

.obj_announcement_summary .summary,
.obj_announcement_summary .description,
.obj_announcement_summary .read_more {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* ---------- دکمه‌ها ---------- */
.cmp_button,
.pkp_button,
button,
input[type="submit"],
.block_make_submission a {
    background: #1E6292;
    border: 1px solid #1E6292;
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 18px;
}

.cmp_button:hover,
.pkp_button:hover,
button:hover,
input[type="submit"]:hover,
.block_make_submission a:hover {
    background: #154a70;
    border-color: #154a70;
    color: #ffffff !important;
}

/* ---------- فوتر فشرده ---------- */
.pkp_structure_footer_wrapper {
    background: #173f5f !important;
    color: #ffffff;
    border: 0 !important;
    margin-top: 34px !important;
}

.pkp_structure_footer {
    display: flex !important;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    min-height: 0 !important;
    max-width: 1240px !important;
    padding: 24px 22px !important;
}

.pkp_footer_content {
    flex: 1;
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_footer_content,
.pkp_footer_content p,
.pkp_footer_content a {
    color: #ffffff !important;
}

.pkp_footer_content p {
    margin: 5px 0 !important;
}

.pkp_brand_footer {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_brand_footer img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 125px !important;
    max-height: 65px !important;
    opacity: 0.82;
    filter: brightness(0) invert(1);
}

/* ---------- جلوگیری از خروج عناصر از صفحه ---------- */
img,
iframe,
table,
pre {
    max-width: 100% !important;
}

table {
    width: 100%;
}

/* ---------- تبلت و موبایل ---------- */
@media (max-width: 1100px) {
    .pkp_navigation_primary {
        flex-wrap: wrap !important;
    }

    .pkp_navigation_primary > li > a {
        padding: 11px 8px !important;
    }
}

@media (max-width: 991px) {
    .pkp_structure_content {
        padding: 18px 0 30px !important;
    }

    .pkp_structure_main {
        padding: 22px !important;
        border-radius: 0;
    }

    .pkp_navigation_primary {
        display: block !important;
    }

    .pkp_navigation_primary > li > a,
    .pkp_navigation_search_wrapper a,
    .pkp_navigation_user > li > a {
        color: #173f5f !important;
    }

    .pkp_structure_footer {
        display: block !important;
    }

    .pkp_brand_footer {
        margin-top: 18px !important;
    }
}

@media (max-width: 600px) {
    .pkp_site_name {
        padding: 12px 0 !important;
    }

    .pkp_site_name .is_img img {
        max-height: 68px !important;
    }

    .pkp_structure_main {
        padding: 16px !important;
    }

    .homepage_about,
    .journal-description,
    .additional_content,
    .obj_announcement_summary {
        padding: 17px !important;
    }
}
