
/* ============================================================
   INFORMATIC EDUCATION JOURNAL (IEJ)
   OJS 3.5 - Custom Journal Style Sheet
   Visual direction: clean academic / modern blue journal
   ============================================================ */

/* ---------- 1. GLOBAL ---------- */
:root {
    --iej-blue: #0b5ea8;
    --iej-blue-dark: #083f73;
    --iej-blue-light: #eaf4fb;
    --iej-cyan: #19a7d8;
    --iej-text: #1f2937;
    --iej-muted: #64748b;
    --iej-border: #dbe4ec;
    --iej-bg: #f6f9fc;
    --iej-white: #ffffff;
    --iej-shadow: 0 8px 24px rgba(15, 55, 90, 0.08);
    --iej-radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--iej-bg);
    color: var(--iej-text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    font-size: 15px;
}

a {
    color: var(--iej-blue);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

a:hover,
a:focus {
    color: var(--iej-blue-dark);
}

/* ---------- 2. MAIN SITE WIDTH ---------- */
.pkp_structure_page {
    background: var(--iej-white);
}

.pkp_structure_main {
    background: var(--iej-white);
}

.pkp_structure_content {
    max-width: 1240px;
    margin: 0 auto;
}

/* ---------- 3. HEADER / MASTHEAD ---------- */
.pkp_structure_head {
    background: var(--iej-white);
    border-bottom: 1px solid var(--iej-border);
}

.pkp_head_wrapper {
    max-width: 1240px;
    margin: 0 auto;
}

.pkp_site_name {
    padding: 28px 0 20px;
}

.pkp_site_name_wrapper {
    display: flex;
    align-items: center;
    min-height: 74px;
}

.pkp_site_name a {
    text-decoration: none;
}

.pkp_site_name .is_img {
    max-height: 78px;
}

.pkp_site_name .is_img img {
    max-height: 78px;
    width: auto;
}

/* Text masthead when no image logo is used */
.pkp_site_name > a:not(.is_img) {
    color: var(--iej-blue-dark);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.5px;
}

/* ---------- 4. PRIMARY NAVIGATION ---------- */
.pkp_navigation_primary_row {
    background: var(--iej-blue-dark);
    border-top: 0;
    border-bottom: 0;
}

.pkp_navigation_primary {
    max-width: 1240px;
    margin: 0 auto;
}

.pkp_navigation_primary > li > a {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 15px 17px;
    border: 0;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.pkp_navigation_primary > li > a:before {
    display: none;
}

.pkp_navigation_primary > li > ul {
    background: var(--iej-white);
    border: 1px solid var(--iej-border);
    box-shadow: var(--iej-shadow);
}

.pkp_navigation_primary > li > ul a {
    color: var(--iej-text);
    padding: 10px 15px;
}

.pkp_navigation_primary > li > ul a:hover {
    background: var(--iej-blue-light);
    color: var(--iej-blue);
}

/* ---------- 5. USER NAVIGATION ---------- */
.pkp_navigation_user {
    font-size: 13px;
}

.pkp_navigation_user > li > a {
    color: var(--iej-muted);
    font-weight: 600;
}

.pkp_navigation_user > li > a:hover {
    color: var(--iej-blue);
}

/* ---------- 6. HOMEPAGE ---------- */
.pkp_page_index .pkp_structure_main {
    padding-top: 0;
}

.pkp_page_index .page_index_journal {
    padding-top: 0;
}

/* Hero area created without changing OJS templates */
.pkp_page_index .homepage_about {
    position: relative;
    margin: 0 0 34px;
    padding: 58px 52px;
    background:
        linear-gradient(135deg, rgba(8,63,115,.97), rgba(11,94,168,.93)),
        linear-gradient(135deg, #083f73, #0b5ea8);
    color: #fff;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.pkp_page_index .homepage_about:after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -90px;
    top: -120px;
    border: 45px solid rgba(255,255,255,.07);
    border-radius: 50%;
}

.pkp_page_index .homepage_about h2,
.pkp_page_index .homepage_about h3 {
    color: #fff;
    border: 0;
    margin-top: 0;
    font-weight: 800;
}

.pkp_page_index .homepage_about p {
    color: rgba(255,255,255,.92);
    max-width: 900px;
}

.pkp_page_index .homepage_about a {
    color: #fff;
    text-decoration: underline;
}

/* ---------- 7. HOMEPAGE CONTENT ---------- */
.pkp_page_index .homepage_image {
    margin-bottom: 28px;
}

.pkp_page_index .additional_content {
    margin: 30px 0;
}

/* ---------- 8. JOURNAL DESCRIPTION / ABOUT ---------- */
.journal-description,
.homepage_about {
    font-size: 15px;
}

.journal-description h2,
.homepage_about h2 {
    font-size: 24px;
    line-height: 1.25;
}

/* ---------- 9. CURRENT ISSUE ---------- */
.current_issue {
    margin-top: 34px;
}

.current_issue .page-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--iej-blue);
}

.current_issue .page-header h2 {
    color: var(--iej-blue-dark);
    font-weight: 800;
    margin: 0;
}

.obj_issue_toc {
    background: var(--iej-white);
    border: 1px solid var(--iej-border);
    border-radius: var(--iej-radius);
    padding: 25px;
    box-shadow: var(--iej-shadow);
}

.obj_issue_toc .heading {
    color: var(--iej-blue-dark);
}

/* ---------- 10. ARTICLE CARDS ---------- */
.obj_article_summary {
    background: var(--iej-white);
    border: 1px solid var(--iej-border);
    border-radius: 9px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 3px 12px rgba(15,55,90,.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.obj_article_summary:hover {
    transform: translateY(-2px);
    border-color: #b9d3e7;
    box-shadow: 0 9px 22px rgba(15,55,90,.09);
}

.obj_article_summary .title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 750;
    margin-bottom: 8px;
}

.obj_article_summary .title a {
    color: var(--iej-blue-dark);
    text-decoration: none;
}

.obj_article_summary .title a:hover {
    color: var(--iej-blue);
}

.obj_article_summary .meta {
    color: var(--iej-muted);
    font-size: 13px;
}

/* ---------- 11. SIDEBAR ---------- */
.pkp_structure_sidebar {
    padding-top: 30px;
}

.pkp_block {
    background: var(--iej-white);
    border: 1px solid var(--iej-border);
    border-radius: var(--iej-radius);
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(15,55,90,.05);
}

.pkp_block .title {
    color: var(--iej-blue-dark);
    font-size: 16px;
    font-weight: 800;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--iej-blue);
}

.pkp_block a {
    text-decoration: none;
}

.pkp_block li {
    border-bottom: 1px solid #edf2f7;
    padding: 8px 0;
}

.pkp_block li:last-child {
    border-bottom: 0;
}

/* ---------- 12. BUTTONS ---------- */
.cmp_manuscript-button,
.pkp_button,
button,
input[type="submit"],
a.btn {
    border-radius: 6px;
    font-weight: 700;
    transition: all .2s ease;
}

.pkp_button,
input[type="submit"],
button[type="submit"] {
    background: var(--iej-blue);
    border-color: var(--iej-blue);
    color: #fff;
}

.pkp_button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--iej-blue-dark);
    border-color: var(--iej-blue-dark);
    color: #fff;
}

/* ---------- 13. PAGE HEADERS ---------- */
.page-header {
    border-bottom: 1px solid var(--iej-border);
}

.page-header h1,
.page-header h2 {
    color: var(--iej-blue-dark);
    font-weight: 800;
}

/* ---------- 14. ARTICLE PAGE ---------- */
.obj_article_details {
    background: var(--iej-white);
}

.obj_article_details .page-header {
    padding-bottom: 20px;
}

.obj_article_details .title {
    color: var(--iej-blue-dark);
    font-weight: 800;
    line-height: 1.3;
}

.obj_article_details .authors {
    color: var(--iej-muted);
}

.item {
    margin-bottom: 28px;
}

.item > h2 {
    color: var(--iej-blue-dark);
    font-weight: 800;
}

/* ---------- 15. TABLES ---------- */
table {
    border-collapse: collapse;
    width: 100%;
}

table th {
    background: var(--iej-blue-dark);
    color: #fff;
    font-weight: 700;
}

table th,
table td {
    padding: 10px 12px;
    border: 1px solid var(--iej-border);
}

table tr:nth-child(even) {
    background: #f8fbfd;
}

/* ---------- 16. FORMS ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
select,
textarea {
    border: 1px solid #cbd7e3;
    border-radius: 6px;
    background: #fff;
    color: var(--iej-text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--iej-blue);
    box-shadow: 0 0 0 3px rgba(11,94,168,.10);
    outline: none;
}

/* ---------- 17. ANNOUNCEMENTS ---------- */
.obj_announcement_summary {
    background: var(--iej-white);
    border: 1px solid var(--iej-border);
    border-radius: var(--iej-radius);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(15,55,90,.04);
}

.obj_announcement_summary .title a {
    color: var(--iej-blue-dark);
    font-weight: 800;
}

/* ---------- 18. FOOTER ---------- */
.pkp_structure_footer_wrapper {
    margin-top: 50px;
    background: var(--iej-blue-dark);
    border-top: 4px solid var(--iej-cyan);
}

.pkp_structure_footer {
    max-width: 1240px;
    margin: 0 auto;
    color: rgba(255,255,255,.86);
}

.pkp_structure_footer_wrapper a {
    color: #fff;
}

.pkp_brand_footer {
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

/* ---------- 19. SEARCH ---------- */
.search_input {
    border-radius: 6px;
}

.search_results .obj_article_summary {
    margin-bottom: 14px;
}

/* ---------- 20. ACCESSIBILITY ---------- */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(25,167,216,.55);
    outline-offset: 2px;
}

/* ---------- 21. RESPONSIVE ---------- */
@media (max-width: 991px) {
    .pkp_head_wrapper,
    .pkp_navigation_primary,
    .pkp_structure_content,
    .pkp_structure_footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pkp_site_name > a:not(.is_img) {
        font-size: 25px;
    }

    .pkp_page_index .homepage_about {
        padding: 42px 30px;
    }

    .pkp_structure_sidebar {
        padding-top: 10px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .pkp_site_name {
        padding: 20px 0 15px;
    }

    .pkp_site_name > a:not(.is_img) {
        font-size: 21px;
        line-height: 1.25;
    }

    .pkp_site_name .is_img,
    .pkp_site_name .is_img img {
        max-height: 58px;
    }

    .pkp_navigation_primary_row {
        overflow-x: auto;
    }

    .pkp_navigation_primary {
        white-space: nowrap;
    }

    .pkp_navigation_primary > li > a {
        padding: 12px 11px;
        font-size: 13px;
    }

    .pkp_page_index .homepage_about {
        padding: 35px 22px;
        border-radius: 0 0 10px 10px;
    }

    .pkp_page_index .homepage_about h2 {
        font-size: 22px;
    }

    .obj_issue_toc,
    .obj_article_summary,
    .pkp_block {
        padding: 16px;
    }

    .obj_article_summary .title {
        font-size: 16px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .pkp_head_wrapper,
    .pkp_navigation_primary,
    .pkp_structure_content,
    .pkp_structure_footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .pkp_site_name > a:not(.is_img) {
        font-size: 19px;
    }

    .pkp_page_index .homepage_about {
        padding: 28px 18px;
    }

    .pkp_page_index .homepage_about p {
        font-size: 14px;
    }
}

/* ============================================================
   END IEJ CUSTOM STYLE
   ============================================================ */
