/* ================= IMPORT FONTS ================= */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&display=swap');

/* ================= GLOBAL STYLES ================= */
/* Apply Lora to the whole site and increase base size */
body, h1, h2, h3, h4, h5, h6, .navbar, a, p, span, div, li {
    font-family: 'Lora', serif !important;
    font-size: 17px !important; /* INCREASED: General text size */
    line-height: 1.6 !important; /* Improves readability for larger text */
}

/* Set website background to white */
body, .pkp_structure_page {
    background-color: #FFFFFF !important;
}

/* ================= FULL WIDTH MENU BAR ================= */
/* Force the navigation container to be 100% width */
.pkp_navigation_primary .container,
.navbar .container,
header .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 30px; 
    padding-right: 30px;
}

/* Ensure the navbar wrapper itself stretches */
.pkp_navigation_primary,
.navbar {
    width: 100% !important;
}

/* ================= HEADER BACKGROUND ================= */
/* Desktop header background */
header > .container:first-of-type {
    /* CHANGED: 'left center' -> 'center center' to put image in the middle */
    background: url(https://cdn1.site-media.eu/images/3840/22594541/Untitled-5-T1y2CrRcTRkk8WnfP9rN0g.png) no-repeat center center;
    background-color: #FFFFFF;
    background-size: contain; 
    min-height: 200px; 
    position: relative;
}

/* Mobile header background (<992px) */
@media (max-width: 991px) {
    header > .container:first-of-type {
        background: url(https://cdn1.site-media.eu/images/1920/22594542/Untitled-6-vKIksh5s8E8aiAzrZKcu_Q.png) no-repeat center top;
        background-color: #FFFFFF;
        background-size: contain; 
        min-height: 200px; 
    }
}

/* ================= HIDE ISSN ================= */
header .issn {
    display: none !important;
}

/* ================= HIDE DEFAULT OJS LOGO ================= */
.navbar>.container .navbar-brand,
.navbar>.container-fluid .navbar-brand,
.header_view>.container .navbar-brand,
.header_view>.container-fluid .navbar-brand {
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* ================= CUSTOM LOGO ================= */
header .journal_logo a,
header .journal_logo img {
    display: block;
    background: transparent !important;
    max-height: 120px; 
    height: auto;
}

/* ================= HEADER ROW ================= */
header > .container:first-of-type > .row {
    width: 100%;
}

/* ================= REGISTER / LOGIN ================= */

/* Desktop (≥992px) */
@media (min-width: 992px) {

    /* Logo vertical center */
    header .journal_logo {
        display: flex;
        align-items: center;
        height: 120px;
        /* Ensure logo area doesn't block the centered background if logo is transparent/missing */
        justify-content: center; 
    }

    /* Register/Login top-right */
    #navigationUser {
        position: absolute;
        top: 8px;
        right: 15px;
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }
}

/* Mobile & tablet (<992px) */
@media (max-width: 991px) {

    /* Logo centered */
    header .journal_logo {
        display: block;
        text-align: center;
        height: auto;
        margin-bottom: 10px;
    }

    /* Register/Login under logo, horizontal row */
    #navigationUser {
        position: relative;
        float: none;
        display: flex;              
        justify-content: center;    
        margin-top: 10px !important;
        flex-wrap: nowrap;          
    }

    #navigationUser li {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* Extra small screens (<576px) - horizontal row */
@media (max-width: 575px) {
    #navigationUser {
        flex-direction: row;       
        justify-content: center;
    }

    #navigationUser li {
        margin: 0 5px;              
    }
}

/* ================= COLORS ================= */
.pkp_block h2.title, .pkp_block .content span.title, .pkp_block span.title {
    color: #fff;
}

.footer .container {
    background: #004680;
}

#navigationUser a,
#navigationUser a i {
    color: #004680 !important;
}

div.issn,
div.issn a,
div.issn span.issn {
    color: #004680 !important;
}