/* ==========================================================
   IJESE HEADER CSS — LARGER LOGO + PROPORTIONAL TITLE
========================================================== */

/* 1. MAIN NAVBAR */
#headerNavigationContainer {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-bottom: 4px solid #0f3d91 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    padding: 0 !important;
}

/* 2. TOP USER NAV */
#navigationUser {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    float: right !important;
}

#navigationUser li a {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f3d91 !important;
    padding: 4px 12px !important;
}

/* 3. NAVBAR HEADER */
#headerNavigationContainer .navbar-header {
    float: none !important;
    width: 100% !important;
}

/* 4. SITE HEADER WRAPPER — logo + text in one row */
.site-header-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding: 14px 8px 14px 0 !important;
    gap: 20px !important;
    box-sizing: border-box !important;
}

/* 5. LOGO — increased to 110px */
.navbar-brand-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    height: auto !important;
}

.navbar-brand-logo img.journal-logo {
    height: 110px !important;
    width: 110px !important;
    max-height: 110px !important;
    max-width: 110px !important;
    display: block !important;
    position: static !important;
    top: auto !important;
    margin: 0 !important;
    object-fit: contain !important;
}

/* 6. TEXT BLOCK — fills remaining width */
.journal-text-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* 7. TITLE WRAPPER */
.site-name {
    width: 100% !important;
}

/* 8. TITLE — scaled up to match 110px logo */
.journal-title-link {
    display: block !important;
    font-size: clamp(18px, 2.6vw, 42px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #0f3d91 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.3px !important;
}

.journal-title-link:hover {
    color: #0a2d6e !important;
    text-decoration: none !important;
}

/* 9. SUBTITLE */
.journal-subtitle {
    font-size: 14px !important;
    color: #475569 !important;
    font-weight: 500 !important;
    margin-top: 6px !important;
    white-space: nowrap !important;
    display: block !important;
    letter-spacing: 0.2px !important;
}

/* 10. NAV BAR — flex row, thin, search inline */
#nav-menu {
    background: #0f3d91 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

/* 11. NAV LINKS */
#main-navigation {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
    align-items: center !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

#main-navigation > li > a {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 12px !important;
    display: block !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
}

#main-navigation > li > a:hover,
#main-navigation > li > a:focus {
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}

/* 12. DROPDOWN */
#main-navigation .dropdown-menu {
    background: #0f3d91 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 0 !important;
    padding: 4px 0 !important;
    top: 100% !important;
}

#main-navigation .dropdown-menu li a {
    color: #ffffff !important;
    font-size: 13px !important;
    padding: 7px 16px !important;
}

#main-navigation .dropdown-menu li a:hover {
    background: rgba(255,255,255,0.15) !important;
}

/* 13. SEARCH — inline on the right of nav bar */
.pull-md-right {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    padding: 0 !important;
}

.navbar-form {
    display: flex !important;
    align-items: center !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar-form .form-group {
    margin: 0 !important;
}

.navbar-form .form-control {
    height: 30px !important;
    font-size: 13px !important;
    width: 160px !important;
    border-radius: 4px 0 0 4px !important;
    padding: 4px 8px !important;
}

.navbar-form .btn {
    height: 30px !important;
    background: #ffffff !important;
    color: #0f3d91 !important;
    border: none !important;
    border-radius: 0 4px 4px 0 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 0 12px !important;
    line-height: 30px !important;
}

.navbar-form .btn:hover {
    background: #e2e8f0 !important;
}

/* 14. MOBILE ADJUSTMENTS */
@media (max-width: 991px) {
    .site-header-wrapper {
        flex-wrap: wrap !important;
        padding: 10px 12px !important;
        gap: 12px !important;
    }

    .navbar-brand-logo img.journal-logo {
        height: 72px !important;
        width: 72px !important;
        max-height: 72px !important;
        max-width: 72px !important;
    }

    .journal-title-link {
        font-size: clamp(15px, 4vw, 22px) !important;
        white-space: normal !important;
    }

    .journal-subtitle {
        font-size: 12px !important;
        white-space: normal !important;
    }

    #nav-menu {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    #main-navigation {
        flex-direction: column !important;
        width: 100% !important;
    }

    #main-navigation > li {
        width: 100% !important;
    }

    #main-navigation > li > a {
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        padding: 10px 14px !important;
    }

    .pull-md-right {
        width: 100% !important;
        padding: 8px 14px !important;
    }

    .navbar-form .form-control {
        width: 100% !important;
    }
}

/* CORE FONTS SETUP */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body,
html,
.pkp_page,
.pkp_structure_main,
.pkp_navigation_primary,
.pkp_block,
.pkp_block_content,
.pkp_page_content,
input,
textarea,
select,
button {
    font-family: 'Inter', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
}

/* ==========================================================
   15. CONTENT TYPE DECORATION & SUBHEADING COLORS
========================================================== */
.pkp_page_content h3,
.entry_content h3,
.page_about h3,
h3 {
    color: #0f3d91 !important;
    font-weight: 700 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Optional: Sets list label components and strong highlights to matching blue */
.pkp_page_content ul li strong,
.pkp_page_content ol li strong {
    color: #0f3d91;
}

/* ==========================================================
   MOBILE FIXES — CONTENT, SIDEBAR, READABILITY
========================================================== */

/* ── SIDEBAR: stack below main content on mobile ── */
@media (max-width: 991px) {
    .col-md-8,
    .col-sm-8,
    .col-md-9,
    .col-sm-9 {
        width: 100% !important;
        float: none !important;
    }
    .col-md-4,
    .col-sm-4,
    .col-md-3,
    .col-sm-3 {
        width: 100% !important;
        float: none !important;
        margin-top: 2rem !important;
    }
}

/* ── BODY TEXT: readable on small screens ── */
@media (max-width: 767px) {
    body, p, li, td {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    h1 { font-size: 22px !important; }
    h2 { font-size: 19px !important; }
    /* h3 already handled above by your existing rules */
}

/* ── CONTAINER PADDING: stop content touching screen edges ── */
@media (max-width: 767px) {
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* ── ARTICLE LIST: spacing between articles on homepage ── */
@media (max-width: 767px) {
    .obj_article_summary {
        margin-bottom: 1.8rem !important;
        padding-bottom: 1.2rem !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .obj_article_summary .title a {
        font-size: 15px !important;
        line-height: 1.6 !important;
        display: block !important;
    }
    .obj_article_summary .authors {
        font-size: 13px !important;
        color: #475569 !important;
    }
}

/* ── PDF / GALLEY LINKS: bigger tap area ── */
.galley-link,
a.galley-link,
.obj_galley_link a,
ul.galleys_links a {
    display: inline-block !important;
    padding: 6px 14px !important;
    min-height: 36px !important;
    line-height: 24px !important;
    border-radius: 4px !important;
}

/* ── ISSUE COVER IMAGE: don't overflow on phones ── */
@media (max-width: 767px) {
    .obj_issue_summary img,
    .current_issue img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ── TABLES IN ARTICLE PAGES: horizontal scroll instead of overflow ── */
@media (max-width: 767px) {
    .pkp_page_content table,
    .entry_content table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        font-size: 13px !important;
    }
}

/* ── ABSTRACT PAGE: author affiliations + metadata ── */
@media (max-width: 767px) {
    .obj_article_details .authors,
    .obj_article_details .article-meta {
        font-size: 13px !important;
    }
    .obj_article_details .abstract {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
}