/************************************************
 * INTERNATIONAL JOURAL OF MEDICAL
 * AND PHARMACEUTICAL EXCELLENCE (IJMPE)
 * FINAL OJS STYLESHEET
 ************************************************/

/****************************************
 * 1. GOOGLE FONTS (HYBRID PREMIUM)
 ****************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

/****************************************
 * 2. COLOR PALETTE
 ****************************************/
:root {
    --med-blue: #0B4F63;
    --med-blue-dark: #05354A;
    --med-gold: #D9A441;
    --med-bg: #F5FAFC;
}

/****************************************
 * 3. GLOBAL TYPOGRAPHY
 ****************************************/
body,
p,
div,
span,
li,
td,
th,
a,
input,
textarea,
button {
    font-family: "Inter", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    color: #222 !important;
}

p {
    text-align: justify !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Playfair Display", serif !important;
    font-weight: 600 !important;
    color: var(--med-blue-dark) !important;
}

/****************************************
 * 4. HEADER — DESKTOP (LOGO + TITLE)
 ****************************************/
#headerNavigationContainer .pkp_head_wrapper {
    background: #ffffff;
}

#headerNavigationContainer .pkp_site_name_wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #ddd;
}

/* Logo */
#headerNavigationContainer .pkp_site_name a.is_img img {
    max-height: 95px !important;
}

/* Hide default text title */
#headerNavigationContainer h1.pkp_screen_reader {
    display: none !important;
}

/* Custom Journal Title */
#headerNavigationContainer .pkp_site_name_wrapper::after {
    content: "International Journal of Medical and Pharmaceutical Excellence";
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--med-blue), var(--med-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Admin menu alignment */
#headerNavigationContainer .pkp_navigation_user_wrapper {
    margin-left: auto !important;
}

/****************************************
 * 5. MAIN NAVIGATION — CLASSIC ACADEMIC
 ****************************************/
.pkp_navigation_primary_wrapper {
    background: var(--med-blue);
}

.pkp_navigation_primary {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
}

.pkp_navigation_primary > li > a {
    font-family: "Inter", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    color: #ffffff !important;
    padding: 6px 10px !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li.current > a {
    background: var(--med-gold);
    color: var(--med-blue-dark) !important;
    border-radius: 4px;
}

/****************************************
 * 6. SEARCH
 ****************************************/
.pkp_navigation_search_wrapper .pkp_search_desktop {
    color: #ffffff !important;
    font-weight: 600;
}

/****************************************
 * 7. CURRENT ISSUE — ARTICLE CARDS
 ****************************************/
.pkp_page_issue .obj_article_summary {
    background: #ffffff !important;
    padding: 18px 22px !important;
    margin-bottom: 22px !important;
    border-radius: 12px !important;
    border-left: 5px solid var(--med-blue) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
}

.pkp_page_issue .obj_article_summary h3 a {
    font-family: "Playfair Display", serif !important;
    font-size: 17px !important;
    color: var(--med-blue-dark) !important;
}

.pkp_page_issue .obj_article_summary h3 a::after {
    content: none !important;
}

.pkp_page_issue .obj_article_summary .authors {
    font-size: 13px !important;
    color: var(--med-blue) !important;
    margin-top: 6px !important;
}

/* Full Article Button */
.pkp_page_issue .obj_article_summary .obj_galley_link,
.pkp_page_issue .obj_article_summary .obj_galley_link a {
    display: inline-block !important;
    margin-top: 12px !important;
    padding: 7px 16px !important;
    background: linear-gradient(135deg, var(--med-blue), var(--med-gold)) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    text-decoration: none !important;
}

/****************************************
 * 8. SIDEBAR — CARD STYLE
 ****************************************/
.pkp_structure_sidebar .pkp_block {
    background: #ffffff !important;
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    text-align: left !important;
}

/****************************************
 * 9. FOOTER – CENTER ALIGNED (IJMPE)
 ****************************************/
.pkp_footer {
    width: 100% !important;
    text-align: center !important;
    background: #f4fbff !important;
    padding: 22px 16px !important;
}

.pkp_footer_content,
.pkp_footer_content * {
    text-align: center !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pkp_footer_content p,
.pkp_footer_content div,
.pkp_footer_content span {
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: #0a4f66 !important;
}

.pkp_footer_content a {
    color: #0e6a84 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.pkp_footer_content a:hover {
    text-decoration: underline !important;
}

/* Remove OJS branding */
.pkp_brand_footer,
.pkp_footer_content .pkp_footer_brand,
.pkp_footer_content .pkp_brand_image,
.pkp_footer_content .pkp_brand_text,
.pkp_footer_content .pkp_workflow_link,
.pkp_footer_content .pkp_footer_about {
    display: none !important;
}

/****************************************
 * 10. MOBILE + TABLET (≤1024px)
 ****************************************/
@media (max-width: 1024px) {

    #headerNavigationContainer .pkp_site_name_wrapper {
        justify-content: center !important;
        min-height: 100px !important;
    }

    #headerNavigationContainer .pkp_site_name_wrapper::after {
        display: none !important;
    }

    #headerNavigationContainer .pkp_site_nav_toggle {
        position: absolute !important;
        left: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .pkp_navigation_primary {
        display: block !important;
    }

    .pkp_navigation_primary > li {
        margin: 6px 0 !important;
    }

    .pkp_navigation_primary > li > a {
        color: var(--med-blue-dark) !important;
    }

    .pkp_navigation_search_wrapper {
        display: block !important;
        margin-top: 12px !important;
    }
}

/****************************************
 * 11. DESKTOP MENU + SEARCH SAME LINE
 ****************************************/
@media (min-width: 1025px) {

    .pkp_navigation_primary_wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 24px !important;
    }

    .pkp_navigation_search_wrapper {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    .pkp_navigation_search_wrapper a {
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }
}
