/* ===========================================================
   Academic International Journal of Medical Update
   OJS Responsive CSS
=========================================================== */


/* ===========================================================
   1) JOURNAL NAME
=========================================================== */

div.pkp_site_name,
div.pkp_site_name span.is_text {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem) !important;
    text-transform: capitalize !important;
    text-align: center !important;
    font-family: inherit !important;

    padding-left: 1rem !important;
    padding-right: 1rem !important;
}


/* Arabic Journal Name */
:lang(ar) div.pkp_site_name,
:lang(ar) div.pkp_site_name span.is_text {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem) !important;
}


/* English Journal Name */
:lang(en) div.pkp_site_name,
:lang(en) div.pkp_site_name span.is_text {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem) !important;
}


/* ===========================================================
   2) GLOBAL TYPOGRAPHY
=========================================================== */

body,
p,
div,
span,
li,
td,
th,
a,
.obj_article_details,
.pkp_structure_main,
.pkp_page_content,
.pkp_structure_content {
    text-align: justify !important;
    line-height: 1.6 !important;
}


/* ===========================================================
   3) LANGUAGE DIRECTION
=========================================================== */

:lang(ar),
[lang="ar"] {
    direction: rtl !important;
}

:lang(en),
[lang="en"] {
    direction: ltr !important;
}


/* ===========================================================
   4) HEADINGS
=========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold !important;
}


/* ===========================================================
   5) H1 — BALANCED ARTICLE TITLE
=========================================================== */

/*
   Important:
   H1 is NOT justified.

   text-wrap: balance keeps the title lines visually balanced
   and prevents excessive spaces between words.
*/

h1 {
    font-size: clamp(1.2rem, 2.2vw, 1.55rem) !important;

    font-weight: bold !important;

    line-height: 1.45 !important;

    text-align: left !important;

    text-wrap: balance !important;

    letter-spacing: normal !important;
    word-spacing: normal !important;

    overflow-wrap: break-word !important;

    margin-top: 0.8rem !important;
    margin-bottom: 0.8rem !important;
}


/* ===========================================================
   6) ENGLISH H1
=========================================================== */

:lang(en) h1,
[lang="en"] h1 {
    direction: ltr !important;
    text-align: left !important;

    text-wrap: balance !important;

    letter-spacing: normal !important;
    word-spacing: normal !important;
}


/* ===========================================================
   7) ARABIC H1
=========================================================== */

:lang(ar) h1,
[lang="ar"] h1 {
    direction: rtl !important;
    text-align: right !important;

    text-wrap: balance !important;

    letter-spacing: normal !important;
    word-spacing: normal !important;
}


/* ===========================================================
   8) H2
=========================================================== */

h2 {
    color: #2B4F81 !important;
}


/* ===========================================================
   9) HEADER
=========================================================== */

.pkp_structure_head {
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;

    padding-top: 10px !important;
    padding-bottom: 10px !important;

    margin-bottom: 0 !important;
}


/* Header Container */

.pkp_site_name_wrapper {
    display: flex !important;

    justify-content: flex-start !important;
    align-items: center !important;

    padding-top: 15px !important;
    padding-bottom: 15px !important;
}


/* Inner Container */

.pkp_structure_head .container,
.pkp_structure_head .pkp_head_wrapper {
    height: auto !important;
    overflow: visible !important;
}


/* ===========================================================
   10) LOGO
=========================================================== */

.pkp_site_name img {
    width: auto !important;
    height: auto !important;

    max-width: min(420px, 100%) !important;
    max-height: 95px !important;

    object-fit: contain !important;

    display: block !important;
    margin: 0 !important;
}


/* ===========================================================
   11) BANNER
=========================================================== */

.pkp_structure_banner img {
    max-height: 220px !important;

    width: 100% !important;

    object-fit: cover !important;
}


/* ===========================================================
   12) MOBILE RESPONSIVE
=========================================================== */

@media (max-width: 768px) {


    /* -------------------------------------------------------
       HEADER
    ------------------------------------------------------- */

    .pkp_structure_head {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }


    /* -------------------------------------------------------
       CENTER LOGO
    ------------------------------------------------------- */

    .pkp_site_name_wrapper {
        justify-content: center !important;
    }


    /* -------------------------------------------------------
       MOBILE LOGO
    ------------------------------------------------------- */

    .pkp_site_name img {
        width: auto !important;
        height: auto !important;

        max-width: 72vw !important;
        max-height: 60px !important;

        object-fit: contain !important;
    }


    /* -------------------------------------------------------
       H1 MOBILE
    ------------------------------------------------------- */

    h1 {
        font-size: 1.2rem !important;

        line-height: 1.35 !important;

        text-align: left !important;

        text-wrap: balance !important;

        letter-spacing: normal !important;
        word-spacing: normal !important;

        overflow-wrap: break-word !important;

        margin-top: 0.6rem !important;
        margin-bottom: 0.6rem !important;
    }


    /* -------------------------------------------------------
       ARABIC H1 MOBILE
    ------------------------------------------------------- */

    :lang(ar) h1,
    [lang="ar"] h1 {
        direction: rtl !important;
        text-align: right !important;
    }


    /* -------------------------------------------------------
       ENGLISH H1 MOBILE
    ------------------------------------------------------- */

    :lang(en) h1,
    [lang="en"] h1 {
        direction: ltr !important;
        text-align: left !important;
    }

}