
/* =========================================================
   JOURNAL OF MULTIDISCIPLINARY EDUCATION, SCIENCE AND TECHNOLOGY (JMEST)
   OJS 3.5 — JMEST academic journal theme
   Header + Navigation + Homepage + Article Cards + Footer
   ========================================================= */


/* =========================================================
   1. HEADER
   ========================================================= */

.pkp_structure_head {
    padding-top: 18px !important;
    padding-bottom: 12px !important;
}

.pkp_head_wrapper {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    box-sizing: border-box;
}

.pkp_site_name_wrapper {
    padding-top: 10px !important;
    padding-bottom: 8px !important;
}

.pkp_site_name {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
}

.pkp_site_name .is_img {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto;
}

.pkp_site_name .is_img img {
    display: block !important;
    width: auto !important;
    max-width: 110px !important;
    max-height: 110px !important;
    height: auto !important;
}

.pkp_site_name .is_text,
.pkp_site_name .jmest-site-title {
    display: block !important;
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
    letter-spacing: -0.35px;
    text-decoration: none !important;
}

.pkp_site_name .is_text:hover,
.pkp_site_name .jmest-site-title:hover {
    color: #d8eaff !important;
}


/* =========================================================
   2. PRIMARY NAVIGATION
   ========================================================= */

.pkp_navigation_primary_row {
    padding-top: 6px !important;
    padding-bottom: 9px !important;
}

.pkp_navigation_primary_wrapper {
    max-width: 1180px !important;
}

.pkp_navigation_primary > li > a {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

.pkp_navigation_search_wrapper a,
.pkp_search_desktop .search_prompt {
    font-size: 15px !important;
    font-weight: 600 !important;
}


/* =========================================================
   3. MAIN CONTENT WIDTH
   ========================================================= */

.pkp_structure_content {
    max-width: 1180px !important;
}

.pkp_structure_main {
    padding-bottom: 70px !important;
}

body.pkp_page_index.pkp_op_index .pkp_structure_content,
.pkp_page_index.pkp_op_index .pkp_structure_content {
    min-height: 420px;
}


/* =========================================================
   4. CURRENT ISSUE / ISSUE PAGE
   ========================================================= */

.page_issue,
.page_index_journal {
    color: #24364b;
}

.obj_issue_toc {
    margin-top: 8px;
}

.obj_issue_toc > .heading {
    margin-bottom: 34px !important;
    padding: 26px 28px !important;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: 0 8px 28px rgba(15, 35, 65, 0.05);
}

.obj_issue_toc > .heading .title,
.obj_issue_toc > .heading .series {
    color: #172a45;
}

.obj_issue_toc > .heading .title {
    font-weight: 700;
}

.obj_issue_toc > .heading .published {
    margin-top: 10px;
    color: #7a8798;
    font-size: 14px;
}

.obj_issue_toc > .heading .published .label {
    font-weight: 600;
    color: #5c6b7d;
}


/* =========================================================
   5. SECTION HEADINGS
   ========================================================= */

.obj_issue_toc .sections {
    margin-top: 24px;
}

.obj_issue_toc .section {
    margin-top: 38px;
}

.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3,
.obj_issue_toc .section > h4 {
    position: relative;
    display: inline-block;
    margin: 0 0 20px !important;
    padding: 0 0 10px 16px;
    color: #46566b;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1.15px;
    text-transform: uppercase;
    border-bottom: 3px solid #3299e5;
}

.obj_issue_toc .section > h2::before,
.obj_issue_toc .section > h3::before,
.obj_issue_toc .section > h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: #d7ad34;
}


/* =========================================================
   6. ARTICLE LIST
   ========================================================= */

.cmp_article_list.articles {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cmp_article_list.articles > li {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
}


/* =========================================================
   7. ARTICLE CARD
   ========================================================= */

.obj_article_summary {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding: 28px 28px 24px !important;
    background: #ffffff;
    border: 1px solid #dfe6ee;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(23, 42, 69, 0.075);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.obj_article_summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3767e8 0%, #3299e5 58%, #a4d4f7 100%);
}

.obj_article_summary:hover {
    transform: translateY(-2px);
    border-color: #cad6e4;
    box-shadow: 0 12px 32px rgba(23, 42, 69, 0.11);
}


/* =========================================================
   8. ARTICLE TITLE
   ========================================================= */

.obj_article_summary .title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.38 !important;
}

.obj_article_summary .title a {
    color: #1c2f49 !important;
    text-decoration: none !important;
}

.obj_article_summary .title a:hover,
.obj_article_summary .title a:focus {
    color: #2b63d9 !important;
}

.obj_article_summary .title .subtitle {
    display: block;
    margin-top: 5px;
    color: #53657c;
    font-size: 15px;
    font-weight: 500;
}


/* =========================================================
   9. AUTHORS / META / PAGES
   ========================================================= */

.obj_article_summary .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 9px !important;
    color: #7c8999;
    font-size: 13px;
}

.obj_article_summary .authors {
    position: relative;
    padding-left: 20px;
    color: #728094 !important;
}

.obj_article_summary .authors::before {
    content: "\2022";
    position: absolute;
    left: 4px;
    top: -2px;
    color: #9eabb9;
    font-size: 21px;
    line-height: 1;
}

.obj_article_summary .pages,
.obj_article_summary .published {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    background: #f4f7fb;
    border: 1px solid #e1e7ef;
    border-radius: 7px;
    color: #68788c !important;
    font-size: 12px;
}


/* =========================================================
   10. ARTICLE COVER
   ========================================================= */

.obj_article_summary .cover {
    float: left;
    margin: 0 20px 12px 0 !important;
}

.obj_article_summary .cover img {
    max-width: 110px !important;
    max-height: 125px !important;
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(20, 41, 68, 0.11);
}


/* =========================================================
   11. PDF / GALLEY BUTTONS
   ========================================================= */

.obj_article_summary .galleys_links {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: 18px 0 0 !important;
    padding: 16px 0 0 !important;
    border-top: 1px solid #edf1f5;
    list-style: none !important;
}

.obj_article_summary .galleys_links > li {
    margin: 0 !important;
}

.obj_article_summary .obj_galley_link,
.obj_article_summary .galley_link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 16px !important;
    border: 1px solid #bed0e4 !important;
    border-radius: 9px !important;
    background: #f8fbff !important;
    color: #28527f !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.obj_article_summary .galleys_links > li:first-child .obj_galley_link,
.obj_article_summary .galleys_links > li:first-child .galley_link {
    border-color: #3767e8 !important;
    background: #3767e8 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 13px rgba(55, 103, 232, 0.24) !important;
}

.obj_article_summary .obj_galley_link:hover,
.obj_article_summary .galley_link:hover {
    transform: translateY(-1px);
    border-color: #3767e8 !important;
}


/* =========================================================
   12. ISSUE ARCHIVE CARDS
   ========================================================= */

.page_issue_archive .issues_archive {
    list-style: none !important;
    margin: 25px 0 0 !important;
    padding: 0 !important;
}

.page_issue_archive .issues_archive > li {
    margin-bottom: 20px !important;
    padding: 24px !important;
    background: #ffffff;
    border: 1px solid #e0e6ee;
    border-radius: 15px;
    box-shadow: 0 7px 24px rgba(23, 42, 69, 0.06);
}


/* =========================================================
   13. ARTICLE DETAIL PAGE
   ========================================================= */

.page_article .obj_article_details {
    margin-top: 18px;
}

.page_article .obj_article_details > .page_title,
.page_article .obj_article_details .main_entry {
    color: #1c2f49;
}

.page_article .obj_article_details .main_entry,
.page_article .obj_article_details .entry_details {
    border-radius: 14px;
}

.page_article .obj_article_details .abstract {
    line-height: 1.75;
}


/* =========================================================
   14. FOOTER
   ========================================================= */

.jmest-footer {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.45fr)
        minmax(145px, 0.80fr)
        minmax(190px, 0.95fr)
        minmax(250px, 1.15fr);
    gap: 48px;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 58px 38px 60px;
    background: #0b2246;
    color: #aeb9c8;
    font-size: 14px;
    line-height: 1.65;
    box-sizing: border-box;
}

.jmest-footer-column {
    min-width: 0;
}

.jmest-footer h4 {
    margin: 0 0 15px;
    color: #8190a7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.jmest-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jmest-footer li {
    margin: 7px 0;
}

.jmest-footer a {
    color: #b7c2d1;
    text-decoration: none;
    transition: color 0.18s ease;
}

.jmest-footer a:hover,
.jmest-footer a:focus {
    color: #ffffff;
    text-decoration: none;
}

.jmest-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.jmest-footer-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 2px solid #d8e1ec;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
}

.jmest-footer-brand strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.jmest-footer-brand small {
    display: block;
    margin-top: 4px;
    color: #7f8da2;
    font-size: 12px;
}

.jmest-footer-about p {
    max-width: 370px;
    margin: 15px 0 19px;
    color: #b5c0ce;
}

.jmest-open-access {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    border: 1px solid #35668f;
    border-radius: 18px;
    padding: 4px 14px;
    color: #a9d2f3;
    font-size: 12px;
}

.jmest-feed-title {
    margin-top: 22px !important;
}

.jmest-feeds {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.jmest-language-title {
    margin-top: 21px !important;
    margin-bottom: 11px !important;
}

.jmest-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jmest-languages a {
    min-width: 40px;
    height: 33px;
    padding: 0 10px;
    border: 1px solid #3e5069;
    border-radius: 5px;
    background: #0c1c31;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e4edf7;
    font-size: 11px;
    font-weight: 700;
}

.jmest-languages a:hover,
.jmest-languages a:focus {
    background: #17385a;
    border-color: #6296c4;
    color: #ffffff;
}

.pkp_structure_footer_wrapper {
    width: 100% !important;
    max-width: none !important;
    background: #0b2246 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_structure_footer {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_structure_footer .pkp_brand_footer {
    display: none !important;
}


/* =========================================================
   15. TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .pkp_site_name .is_text,
    .pkp_site_name .jmest-site-title {
        font-size: 26px !important;
    }

    .jmest-footer {
        grid-template-columns: 1.25fr 1fr;
        gap: 40px 50px;
        max-width: 840px;
        padding: 48px 36px 52px;
    }
}


/* =========================================================
   16. MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .pkp_head_wrapper {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .pkp_site_name {
        gap: 12px !important;
    }

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

    .pkp_site_name .is_text,
    .pkp_site_name .jmest-site-title {
        font-size: 19px !important;
        line-height: 1.22 !important;
    }

    .obj_issue_toc > .heading {
        padding: 20px !important;
    }

    .obj_article_summary {
        padding: 23px 19px 20px !important;
        border-radius: 13px;
    }

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

    .obj_article_summary .meta {
        display: block;
    }

    .obj_article_summary .authors,
    .obj_article_summary .pages,
    .obj_article_summary .published {
        margin-top: 7px;
    }

    .obj_article_summary .galleys_links {
        justify-content: flex-start;
    }

    .obj_article_summary .obj_galley_link,
    .obj_article_summary .galley_link {
        width: 100%;
        box-sizing: border-box;
    }

    .jmest-footer {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: none;
        padding: 38px 25px 44px;
    }
}


/* =========================================================
   MULTILINGUAL FOOTER VISIBILITY
   One Page Footer HTML, language selected by <html lang="">
   ========================================================= */

.jmest-footer-lang {
    display: none;
}

/* English */
html[lang^="en"] .jmest-footer-lang.footer-en {
    display: grid;
}

/* Russian */
html[lang^="ru"] .jmest-footer-lang.footer-ru {
    display: grid;
}

/* Uzbek Latin */
html[lang^="uz"] .jmest-footer-lang.footer-uz {
    display: grid;
}

/* Active language button */
.jmest-languages a.is-active {
    background: #17385a !important;
    border-color: #79a9d2 !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}


/* =========================================================
   17. JMEST COVER + SITE COLORS + ACCESSIBILITY ADJUSTMENTS
   These rules affect the frontend only and do not alter OJS data.
   ========================================================= */
.pkp_structure_head {
    background: #172f75 !important;
    color: #ffffff !important;
}
.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:visited,
.pkp_navigation_search_wrapper a {
    color: #ffffff !important;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #d5ebff !important;
}
.pkp_site_name .is_text,
.pkp_site_name .jmest-site-title { color: #ffffff !important; }

/* Restrict large cover uploaded under Appearance > Homepage Image. */
.pkp_page_index.pkp_op_index .homepage_image img,
.page_index_journal .homepage_image img {
    display: block;
    width: auto !important;
    max-width: min(100%, 340px) !important;
    max-height: 470px !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}
.pkp_page_index.pkp_op_index .homepage_image,
.page_index_journal .homepage_image { text-align: center; }

/* JMEST footer: readable links and consistent appearance on mobile. */
.jmest-footer h4 { color: #99caff !important; }
.jmest-footer strong, .jmest-footer b { color: #ffffff; }
.jmest-footer a { color: #e2edfc !important; }
.jmest-footer a:hover, .jmest-footer a:focus { color: #ffffff !important; text-decoration: underline !important; }
.jmest-footer p { margin-top: 0; }
.jmest-footer .jmest-footer-contact { overflow-wrap: anywhere; }

/* Hide OJS/PKP footer brand mark without hiding the whole footer. */
.pkp_brand_footer,
.pkp_structure_footer .pkp_brand_footer,
.pkp_structure_footer_wrapper .pkp_brand_footer,
#pkp_brand_footer { display: none !important; }

@media (max-width: 650px) {
  .pkp_page_index.pkp_op_index .homepage_image img,
  .page_index_journal .homepage_image img { max-width: min(100%, 290px) !important; max-height: 405px !important; }
  .pkp_site_name .is_text,
  .pkp_site_name .jmest-site-title { font-size: 18px !important; }
}


/* =========================================================
   18. THREE-LANGUAGE SUPPORT — EN / UZ / RU
   This is styling only. OJS locales and localized Page Footer
   content are configured in the OJS administration interface.
   ========================================================= */

/* Cyrillic and Uzbek Latin are kept readable without changing English text. */
html:lang(ru) .jmest-footer,
html:lang(uz) .jmest-footer {
    font-family: "Segoe UI", Arial, sans-serif;
}

/* Natural casing for translated headings; avoid awkward long words. */
html:lang(ru) .jmest-footer h4,
html:lang(uz) .jmest-footer h4 {
    text-transform: none;
    letter-spacing: 0.25px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Journal's OJS Language Toggle Block — sidebar links. */
.pkp_block.block_languageToggle .content ul,
.pkp_block.block_languageToggle ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.pkp_block.block_languageToggle li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pkp_block.block_languageToggle li a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #d8e5f5;
    border-radius: 7px;
    color: #174a8a;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
}
.pkp_block.block_languageToggle li a:hover,
.pkp_block.block_languageToggle li a:focus {
    border-color: #88b5eb;
    background: #eaf4ff;
    color: #0d3470;
}

/* Three-column footer collapses as before; long translated text wraps. */
.jmest-footer-column,
.jmest-footer-column a,
.jmest-footer-brand small {
    overflow-wrap: anywhere;
}
@media (max-width: 650px) {
    html:lang(ru) .jmest-footer,
    html:lang(uz) .jmest-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* JMEST — Multilingual journal subtitle */

@media (min-width: 992px) {
  html[lang^="uz"] .pkp_site_name .is_text::after {
    content: "Multidisiplinar ta’lim, fan va texnologiyalar jurnali";
  }

  html[lang^="ru"] .pkp_site_name .is_text::after {
    content: "Журнал междисциплинарного образования, науки и технологий";
  }

  html[lang^="uz"] .pkp_site_name .is_text::after,
  html[lang^="ru"] .pkp_site_name .is_text::after {
    display: block;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #e1ecff;
    margin-top: 5px;
    white-space: normal;
  }
}
