/* CTMCR - Compact OJS header with centred journal title */

/* Large screens: logo left, full journal title centred, journal details right */
@media (min-width: 1200px) {
    .has_site_logo .pkp_head_wrapper {
        padding-top: 10px !important;
    }

    .pkp_site_name_wrapper {
        position: relative !important;
        min-height: 88px !important;
        padding: 8px 0 10px !important;
        display: flex !important;
        align-items: center !important;
    }

    .pkp_site_name {
        position: relative !important;
        z-index: 2 !important;
        margin: 0 !important;
    }

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

    /* Full journal name in the centre of the header */
    .has_site_logo .pkp_site_name_wrapper::before {
        content: "Current Trends in Medicine and Clinical Research";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 58%;
        max-width: 740px;
        text-align: center;
        color: #173b5b;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(20px, 1.65vw, 27px);
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: 0.15px;
        pointer-events: none;
        z-index: 1;
    }

    /* Right-side journal information */
    .has_site_logo .pkp_site_name_wrapper::after {
        content: "OPEN ACCESS  |  PEER-REVIEWED JOURNAL\A eISSN: 3108-1223";
        white-space: pre-line;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        padding-left: 13px;
        border-left: 3px solid #df762d;
        color: #526477;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.9;
        letter-spacing: 0.35px;
        text-align: left;
        pointer-events: none;
    }

    .pkp_navigation_primary_wrapper {
        border-top: 1px solid #edf0f3 !important;
    }

    .pkp_navigation_primary > li > a {
        color: #173b5b !important;
    }

    .pkp_navigation_primary > li > a:hover,
    .pkp_navigation_primary > li > a:focus {
        border-bottom-color: #df762d !important;
    }

    .pkp_structure_head {
        background: #ffffff !important;
        border-bottom: 3px solid #df762d !important;
    }
}

/* Tablet: keep the title centred on a second line and hide right-side metadata */
@media (min-width: 768px) and (max-width: 1199px) {
    .has_site_logo .pkp_head_wrapper {
        padding-top: 8px !important;
    }

    .pkp_site_name_wrapper {
        position: relative !important;
        min-height: 118px !important;
        padding: 8px 0 38px !important;
    }

    .pkp_site_name {
        margin: 0 !important;
    }

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

    .has_site_logo .pkp_site_name_wrapper::before {
        content: "Current Trends in Medicine and Clinical Research";
        position: absolute;
        left: 50%;
        bottom: 7px;
        transform: translateX(-50%);
        width: 94%;
        text-align: center;
        color: #173b5b;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        pointer-events: none;
    }

    .has_site_logo .pkp_site_name_wrapper::after {
        display: none !important;
    }

    .pkp_structure_head {
        border-bottom: 3px solid #df762d !important;
    }
}

/* Phones: smaller centred title below the journal logo */
@media (max-width: 767px) {
    .pkp_site_name_wrapper {
        position: relative !important;
        min-height: 112px !important;
        padding-bottom: 37px !important;
    }

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

    .has_site_logo .pkp_site_name_wrapper::before {
        content: "Current Trends in Medicine and Clinical Research";
        position: absolute;
        left: 50%;
        bottom: 6px;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        text-align: center;
        color: #173b5b;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        pointer-events: none;
    }

    .has_site_logo .pkp_site_name_wrapper::after {
        display: none !important;
    }

    .pkp_structure_head {
        border-bottom: 2px solid #df762d !important;
    }
}
