/* =========================================================
   PALESTINE JOURNAL OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE
   OJS custom style — English only (LTR)
   Paste into: Website Settings > Appearance > Advanced > Journal style sheet
   ========================================================= */

/* ---------- 1. FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');


/* ---------- 2. GENERAL ---------- */
body {
    font-family: "Source Sans 3", sans-serif !important;
    background: #f5f8fa !important;
    color: #243746 !important;
}

body p,
body li,
body td,
body th,
body input,
body textarea,
body select,
form label,
.pkp_structure_main p,
.pkp_structure_main li,
.pkp_structure_main td,
.pkp_structure_main th,
.obj_article_summary .abstract,
.obj_article_details p,
.pkp_block p,
.pkp_block li {
    font-family: "Source Sans 3", sans-serif !important;
    font-size: 16.5px !important;
    line-height: 1.85 !important;
}


/* ---------- 3. HEADINGS ---------- */
h1, h2, h3, h4, h5, h6,
.page_title,
.pkp_block .title,
.pkp_site_name,
.pkp_site_name a,
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.obj_article_summary .title,
.obj_article_summary .title a,
.obj_article_details .title {
    font-family: "Inter", sans-serif !important;
    line-height: 1.6 !important;
    padding-right: 2px !important;
    padding-left: 2px !important;
    margin-bottom: 4px !important;
}

.page_title,
.pkp_block .title,
h2,
h3 {
    color: #075c8b !important;
    font-weight: 700 !important;
}

h2 {
    border-bottom: 2px solid #12a8ad !important;
    padding-bottom: 8px !important;
    margin-bottom: 20px !important;
}


/* ---------- 4. HEADER ---------- */
.pkp_structure_head {
    position: relative !important;
    overflow: visible !important;
    z-index: 100 !important;
    min-height: 135px !important;
    padding: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #075b8b 0%, #087e9e 45%, #18a9a8 100%) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12) !important;
}

/* Decorative header shape (top-left corner) */
.pkp_structure_head::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 280px !important;
    height: 100px !important;
    background: rgba(255, 255, 255, .12) !important;
    border-radius: 0 0 100% 0 !important;
    pointer-events: none !important;
}

.pkp_head_wrapper {
    position: relative !important;
    overflow: visible !important;
    z-index: 100 !important;
    max-width: 1100px !important;
    min-height: 98px !important;
    margin: 0 auto !important;
    padding-top: 10px !important;
    padding-bottom: 0 !important;
}


/* ---------- 5. LOGO + JOURNAL TITLE (logo left, title right of it) ---------- */
.pkp_site_name {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 100px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
}

.pkp_site_name a {
    display: flex !important;
    direction: ltr !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    color: #fff !important;
    background: none !important;
    text-align: left !important;
    text-decoration: none !important;
    pointer-events: auto !important;
}

.pkp_site_name img {
    display: block !important;
    order: 1 !important;
    width: auto !important;
    height: auto !important;
    max-width: 145px !important;
    max-height: 120px !important;
    margin: 0 !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    /* Soft white glow separating the dark logo from the blue background */
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px rgba(255, 255, 255, .6)) !important;
}

/* The title is injected by the Custom Header script (see custom-header.html) */
.pkp_site_name a::after {
    content: none !important;
}

.journal-title {
    display: block !important;
    order: 2 !important;
    flex: 0 1 auto !important;
    max-width: 760px !important;
    direction: ltr !important;
    text-align: left !important;
    color: #fff !important;
    font-family: "Inter", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;
}

.journal-title span {
    display: block !important;
}

/* Second line (ISSN) is smaller and lighter */
.journal-title span:nth-child(2) {
    font-size: 14px !important;
    font-weight: 500 !important;
}


/* ---------- 6. PRIMARY NAVIGATION ---------- */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
    position: relative !important;
    overflow: visible !important;
    z-index: 100 !important;
}

.pkp_navigation_primary_wrapper {
    min-height: 43px !important;
}

.pkp_navigation_primary > li {
    position: relative !important;
    overflow: visible !important;
    z-index: 100 !important;
}

.pkp_navigation_primary > li > a {
    min-height: 43px !important;
    padding: 10px 16px !important;
    color: #fff !important;
    font-family: "Inter", sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    line-height: 23px !important;
    transition: all .25s ease !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li.is_active > a {
    background: #064b73 !important;
    color: #fff !important;
}

/* Menu icons (Font Awesome) */
.pkp_navigation_primary > li > a::before {
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    margin-right: 7px !important;
}

.pkp_navigation_primary > li:nth-child(1) > a::before { content: "\f015"; } /* Current  – home     */
.pkp_navigation_primary > li:nth-child(2) > a::before { content: "\f02d"; } /* Archives – book     */
.pkp_navigation_primary > li:nth-child(3) > a::before { content: "\f02e"; } /* About    – bookmark */
.pkp_navigation_primary > li:nth-child(4) > a::before { content: "\f05a"; } /* info     */
.pkp_navigation_primary > li:nth-child(5) > a::before { content: "\f0c0"; } /* users    */


/* ---------- 7. DROPDOWN (desktop) ---------- */
.pkp_navigation_primary ul,
.pkp_navigation_primary .sub-menu {
    display: block !important;
    visibility: hidden !important;      /* hidden, but stays open briefly after the mouse leaves */
    opacity: 0 !important;
    transition: opacity .15s ease .3s, visibility 0s linear .45s !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;                 /* LTR: dropdown aligned to the left edge of its tab */
    right: auto !important;
    z-index: 99999 !important;
    min-width: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: #064b73 !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3) !important;
}

.pkp_navigation_primary li:hover > ul,
.pkp_navigation_primary li:focus-within > ul {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity .15s ease 0s, visibility 0s linear 0s !important;
}

/* Moving from one menu to another closes the old one immediately (no overlap).
   The delay only applies when leaving the whole menu. */
@media (min-width: 769px) {
    .pkp_navigation_primary:hover > li:not(:hover) > ul {
        visibility: hidden !important;
        opacity: 0 !important;
        transition: none !important;
    }
}

/* Dropdown attaches directly under its tab: no offset, no gap */
.pkp_navigation_primary {
    align-items: flex-start !important;
}

.pkp_navigation_primary > li {
    height: auto !important;
    align-self: flex-start !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.pkp_navigation_primary > li > ul {
    top: 100% !important;
    margin-top: 0 !important;
    transform: none !important;
}

/* Invisible bridge so hover is not lost while moving from the tab to the dropdown */
.pkp_navigation_primary > li > ul::before {
    content: "" !important;
    position: absolute !important;
    top: -25px !important;
    left: 0 !important;
    right: 0 !important;
    height: 25px !important;
    background: transparent !important;
}

.pkp_navigation_primary ul li {
    display: block !important;
    float: none !important;
    width: 100% !important;
}

.pkp_navigation_primary ul li a {
    display: block !important;
    padding: 10px 15px !important;
    background: #064b73 !important;
    color: #fff !important;
    font-family: "Inter", sans-serif !important;
    font-size: 13px !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.pkp_navigation_primary ul li a:hover {
    background: #087e9e !important;
    color: #fff !important;
}


/* ---------- 8. USER MENU (Login / Register / admin) — top right ---------- */
.pkp_structure_head .pkp_navigation_user_wrapper,
#navigationUserWrapper {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 9999999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    transform: none !important;         /* cancels the theme's translateY(-100%) */
    -webkit-transform: none !important;
}

.pkp_navigation_user,
#navigationUser {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;   /* buttons packed to the right */
    gap: 8px !important;
    direction: ltr !important;
    width: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
}

.pkp_navigation_user > li,
#navigationUser > li {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_user a,
#navigationUser a {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 7px 12px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .25) !important;
    border: 1px solid rgba(255, 255, 255, .4) !important;
    border-radius: 4px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all .2s ease !important;
}

.pkp_navigation_user a:hover,
#navigationUser a:hover {
    background: #fff !important;
    color: #075b8b !important;
}

.pkp_navigation_user > li + li > a::before,
#navigationUser > li + li > a::before {
    content: none !important;
}

/* Dropdown of the logged-in user (admin ▾): white items on a white panel were invisible */
.pkp_navigation_user ul,
#navigationUser ul {
    right: 0 !important;                /* opens toward the left so it stays inside the page */
    left: auto !important;
    min-width: 190px !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    list-style: none !important;
    background: #fff !important;
    border: 1px solid #e1ebf0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15) !important;
}

.pkp_navigation_user ul li,
#navigationUser ul li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_user ul a,
#navigationUser ul a {
    display: block !important;
    padding: 9px 16px !important;
    background: transparent !important;
    color: #075c8b !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.pkp_navigation_user ul a:hover,
#navigationUser ul a:hover {
    background: #edf6fa !important;
    color: #064b73 !important;
}


/* ---------- 8b. LANGUAGE SWITCHER — removed (English only) ---------- */
.block_language,
.pkp_block.block_language,
.language-toggle,
.lang-switch {
    display: none !important;
}


/* ---------- 9. BUTTONS ---------- */
.cmp_button,
a.cmp_button,
.pkp_button,
a.pkp_button,
.action_button,
.submit-btn,
.pkp_block.block_make_submission a,
.block_make_submission .make_submission,
a.make_submission {
    padding: 10px 20px !important;
    background: #16aaa9 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    font-family: "Inter", sans-serif !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(22, 170, 169, .3) !important;
    transition: all .3s ease !important;
}

.cmp_button:hover,
a.cmp_button:hover,
.pkp_button:hover,
.pkp_block.block_make_submission a:hover,
a.make_submission:hover {
    background: #0e8584 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}


/* ---------- 10. SIDEBAR ---------- */
.pkp_block {
    margin-bottom: 20px !important;
    padding: 18px !important;
    background: #fff !important;
    border: 1px solid #e1ebf0 !important;
    border-radius: 9px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .04) !important;
}

/* Button-only blocks have no title: no empty space above the button */
.pkp_block .title:empty,
.pkp_block.block_make_submission .title,
.pkp_block:has(a[href*="wa.me"]) .title,
.pkp_block:has(a[href*="whatsapp.com"]) .title {
    display: none !important;
}

.pkp_block .title {
    margin-bottom: 16px !important;
    padding: 10px 14px !important;
    background: #edf6fa !important;
    color: #075c8b !important;
    border-radius: 7px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
}


/* ---------- 11. FOOTER ---------- */
.pkp_structure_footer {
    padding: 15px 0 !important;
    background: #075c8b !important;
    color: #fff !important;
    text-align: center !important;
}

.pkp_structure_footer a {
    color: #bfeff0 !important;
}

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

.pkp_structure_footer_wrapper {
    background: #075c8b !important;
}

/* Centered, white OJS / PKP logo */
.pkp_brand_footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    float: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 10px 0 !important;
    text-align: center !important;
}

.pkp_brand_footer a {
    display: inline-block !important;
    float: none !important;
    margin: 0 auto !important;
}

.pkp_brand_footer img {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-height: 60px !important;
    margin: 0 auto !important;
    filter: brightness(0) invert(1) !important;   /* black logo becomes white */
}


/* ---------- 12. ARTICLE PAGE ---------- */
/* DOI / Keywords headings inline, without the global h2 underline */
.obj_article_details .item.doi h2,
.obj_article_details .item.keywords h2,
.obj_article_details .item.doi h3,
.obj_article_details .item.keywords h3,
.obj_article_details .item.doi .label,
.obj_article_details .item.keywords .label {
    display: inline !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: inherit !important;
}

.obj_article_details .item.doi {
    direction: ltr !important;
    text-align: left !important;
    width: 100% !important;
}

.obj_article_details .item.doi .label {
    display: inline-block !important;
    margin-right: 5px !important;
    font-weight: bold !important;
}

.obj_article_details .item.doi .value {
    display: inline-block !important;
    direction: ltr !important;
    unicode-bidi: plaintext !important;
}

/* Tighter spacing between authors, DOI, keywords, dates */
.obj_article_details .item.authors,
.obj_article_details .item.doi,
.obj_article_details .item.keywords,
.obj_article_details .item.published {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

.obj_article_details .item.authors ul,
.obj_article_details .item.authors li {
    margin-bottom: 6px !important;
}

/* Keywords and DOI use the same font as body text */
.obj_article_details .item.keywords,
.obj_article_details .item.keywords .value,
.obj_article_details .item.doi .value {
    font-family: "Source Sans 3", sans-serif !important;
    font-size: 16.5px !important;
    line-height: 1.85 !important;
}

/* Hide the References heading when there are no references */
.obj_article_details .item.references:has(.value:empty),
.obj_article_details .item.references:not(:has(.value p)):not(:has(.value ul)) {
    display: none !important;
}


/* ---------- 13. SIDEBAR BUTTONS: WhatsApp + Make a Submission ---------- */
a[href*="wa.me"],
a[href*="whatsapp.com"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 18px !important;
    background: #1fa855 !important;
    color: #fff !important;
    border-radius: 9px !important;
    font-size: 16.5px !important;
    font-family: "Inter", sans-serif !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(31, 168, 85, .35) !important;
    transition: all .3s ease !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
}

a[href*="wa.me"] *,
a[href*="whatsapp.com"] * {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* WhatsApp icon drawn as inline SVG (no font needed) */
a[href*="wa.me"]::before,
a[href*="whatsapp.com"]::before {
    content: "" !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23fff' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

a[href*="wa.me"]:hover,
a[href*="whatsapp.com"]:hover {
    background: #188a46 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Same padding on both cards so both buttons have equal width */
.pkp_block.block_make_submission,
.pkp_block:has(a[href*="wa.me"]),
.pkp_block:has(a[href*="whatsapp.com"]) {
    padding: 14px !important;
}

.pkp_block.block_make_submission a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 14px 18px !important;
    background: linear-gradient(135deg, #17b3b1 0%, #0e8584 100%) !important;
    border-radius: 9px !important;
    font-size: 16.5px !important;
    line-height: 1.4 !important;
    box-shadow: 0 4px 12px rgba(14, 133, 132, .35) !important;
}

.pkp_block.block_make_submission a::before {
    content: "\f093";                   /* upload icon (Font Awesome Free) */
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-size: 16px !important;
}

.pkp_block.block_make_submission a:hover {
    box-shadow: 0 6px 16px rgba(14, 133, 132, .45) !important;
}


/* ---------- 14. INNER PAGES: titles and forms (login, register, search) ---------- */
.pkp_structure_main h1,
.pkp_structure_main .page_title {
    color: #075c8b !important;
}

.pkp_structure_main input[type="text"],
.pkp_structure_main input[type="email"],
.pkp_structure_main input[type="password"],
.pkp_structure_main input[type="search"],
.pkp_structure_main input[type="tel"],
.pkp_structure_main input[type="url"],
.pkp_structure_main select,
.pkp_structure_main textarea {
    padding: 10px 12px !important;
    background: #fff !important;
    border: 1px solid #cddce5 !important;
    border-radius: 7px !important;
    font-family: "Source Sans 3", sans-serif !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

.pkp_structure_main input[type="text"]:focus,
.pkp_structure_main input[type="email"]:focus,
.pkp_structure_main input[type="password"]:focus,
.pkp_structure_main input[type="search"]:focus,
.pkp_structure_main input[type="tel"]:focus,
.pkp_structure_main input[type="url"]:focus,
.pkp_structure_main select:focus,
.pkp_structure_main textarea:focus {
    border-color: #16aaa9 !important;
    box-shadow: 0 0 0 3px rgba(22, 170, 169, .2) !important;
    outline: none !important;
}

/* Submit buttons inside forms: same look as the other site buttons.
   Icon and text sit on one line (the theme's icon box used to overlap the text). */
.pkp_structure_main form button[type="submit"],
.pkp_structure_main form input[type="submit"] {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 28px !important;
    background: #16aaa9 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    font-family: "Inter", sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    box-shadow: 0 2px 6px rgba(22, 170, 169, .3) !important;
    transition: all .3s ease !important;
}

.pkp_structure_main form button[type="submit"]::before,
.pkp_structure_main form button[type="submit"]::after {
    content: none !important;
    display: none !important;
}

/* Search icon on the search page button */
.pkp_page_search .pkp_structure_main form button[type="submit"]::before {
    content: "\f002" !important;
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

.pkp_structure_main form button[type="submit"] .fa,
.pkp_structure_main form button[type="submit"] [class*="fa-"],
.pkp_structure_main form button[type="submit"] > span {
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #fff !important;
    line-height: 1 !important;
}

.pkp_structure_main form button[type="submit"]:hover,
.pkp_structure_main form input[type="submit"]:hover {
    background: #0e8584 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}


/* ---------- 15. TABLET / SMALL DESKTOP (769–1060px): keep title clear of the user menu ---------- */
@media (min-width: 769px) and (max-width: 1060px) {
    .journal-title {
        max-width: 480px !important;
        font-size: 16px !important;
    }

    .journal-title span:nth-child(2) {
        font-size: 13px !important;
    }
}


/* =========================================================
   16. MOBILE — keep this section last in the file
   ========================================================= */
@media (max-width: 768px) {

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

    /* On mobile the user menu stays inside the ☰ menu instead of floating over the header */
    .pkp_structure_head .pkp_navigation_user_wrapper,
    #navigationUserWrapper {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    /* 20px left padding so the ☰ button sits close to the edge (set to 0 to touch it) */
    .pkp_head_wrapper {
        padding: 0 0 0 20px !important;
    }

    /* Remove the side spacing the theme adds */
    .pkp_site_name_wrapper,
    .pkp_site_name {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    .pkp_site_name a {
        margin-right: 0 !important;
        padding-right: 0 !important;
        gap: 10px !important;
    }

    /* Let the header grow with the title length */
    .pkp_structure_head,
    .pkp_head_wrapper,
    .pkp_site_name_wrapper,
    .pkp_site_name {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .pkp_site_name {
        min-height: 0 !important;
        padding: 12px 0 !important;
    }

    .pkp_site_name img {
        max-width: 80px !important;
        max-height: 80px !important;
    }

    .journal-title {
        min-width: 0 !important;
        max-width: calc(100vw - 190px) !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        font-size: 12px !important;
        line-height: 1.7 !important;
    }

    .journal-title span {
        white-space: normal !important;
    }

    /* ISSN line: each number on its own line, without the stray "|" separator */
    .journal-title span:nth-child(2) {
        font-size: 0 !important;
    }

    .journal-title span:nth-child(2) bdi {
        display: block !important;
        font-size: 10.5px !important;
    }

    /* Submenus on mobile: in the normal flow (accordion), not floating */
    .pkp_navigation_primary ul,
    .pkp_navigation_primary .sub-menu {
        position: static !important;
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: none !important;
        width: 100% !important;
        min-width: 0 !important;
        box-shadow: none !important;
    }

    /* Fallback without the toggle script: open on tap (focus) */
    .pkp_navigation_primary li:hover > ul,
    .pkp_navigation_primary li:focus-within > ul {
        display: block !important;
    }

    /* With the Custom Header script (adds class "sub-js"): open/close on each tap */
    html.sub-js .pkp_navigation_primary li:hover > ul,
    html.sub-js .pkp_navigation_primary li:focus-within > ul {
        display: none !important;
    }

    html.sub-js .pkp_navigation_primary li.sub-open > ul {
        display: block !important;
    }

    .pkp_navigation_primary > li > ul::before {
        display: none !important;
    }

    /* Full-width menu rows: highlight spans the whole row and joins the submenu */
    .pkp_navigation_primary > li {
        display: block !important;
        width: 100% !important;
    }

    .pkp_navigation_primary > li > a {
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
        width: 100% !important;
        padding-right: 18px !important;
        text-decoration: none !important;
    }

    /* Small arrow for items with a submenu (far right), flips when open */
    .pkp_navigation_primary > li:has(> ul) > a::after {
        content: "" !important;
        display: inline-block !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        margin-left: auto !important;
        vertical-align: middle !important;
        border-left: 5px solid transparent !important;
        border-right: 5px solid transparent !important;
        border-top: 6px solid currentColor !important;
        transition: transform .2s ease !important;
    }

    html:not(.sub-js) .pkp_navigation_primary > li:focus-within > a::after,
    .pkp_navigation_primary > li.sub-open > a::after {
        transform: rotate(180deg) !important;
    }

    /* Search page: stop horizontal stretching on mobile */
    .pkp_page_search .pkp_structure_content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        overflow-x: hidden !important;
    }

    .pkp_page_search .pkp_structure_main .search_results,
    .pkp_page_search .pkp_structure_main table,
    .pkp_page_search .pkp_structure_main form {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
    }
}

/* شريط: المجلة قيد التأسيس — في الصفحة الرئيسية للمجلة فقط */
.page_index_journal::before {
    content: "This journal is currently under establishment. Content will be published soon.";
    display: block;
    margin: 0 0 24px;
    padding: 14px 18px;
    background: #fff8e1;
    border: 1px solid #ffe08a;
    border-radius: 9px;
    color: #7a5a00;
    font-family: "Cairo", sans-serif;
    font-weight: 600;
    line-height: 1.6;
}