body,
h1,
h2,
h3,
h4,
h5,
h6,
{
font-family: "Montserrat Alternates", sans-serif;
}

p,
span,
li,
a,
label,
button,
input,
textarea,
select {
    font-family: "Poppins", sans-serif;
}

/* Make header layout flex to align logo and text vertically centered */
.pkp_site_name {
    display: inline-flex !important;
    align-items: center !important;
    gap: 15px;
}

/* Custom Header Logo Styling to make it pop on dark background */
.pkp_site_name .is_img img,
.journal-logo {
    background-color: #ffffff !important;
    border-radius: 50% !important;
    padding: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.pkp_site_name .is_img img:hover,
.journal-logo:hover {
    transform: scale(1.05) !important;
}

/* Mobile and Tablet Specific Styles */
@media (max-width: 992px) {

    /* Center logo and text alignment on mobile header */
    .pkp_site_name {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Fix OJS LESS unit subtraction bug (-11.143rem) */
    .pkp_site_name .is_img img,
    .journal-logo {
        max-height: 30px !important;
        padding: 4px !important;
    }

    /* Prevent logo container from shrinking */
    .pkp_site_name .is_img {
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Allow title text to sit inline and truncate if it exceeds width */
    .pkp_site_name .is_text {
        width: auto !important;
        display: inline-block !important;
        font-size: 0.9rem !important;
        flex-shrink: 1 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        line-height: normal !important;
    }
}

/* Footer Quick Links Grid Layout */
.pkp_footer_links_grid {
    display: flex !important;
    gap: 40px !important;
}

@media (max-width: 768px) {
    .pkp_footer_links_grid {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0px !important;
    }

    .pkp_footer_links_grid .pkp_footer_list {
        align-items: center !important;
    }

    .pkp_footer_links_grid .pkp_footer_list:first-child li:last-child {
        margin-bottom: 0.55rem !important;
    }
}

/* Premium submit button styling for Login & Registration forms */
.page_login .buttons button.submit,
.page_register .buttons button.submit {
    background: linear-gradient(135deg, #0f2c59 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 6px -1px rgba(15, 44, 89, 0.2), 0 2px 4px -1px rgba(15, 44, 89, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.page_login .buttons button.submit:hover,
.page_register .buttons button.submit:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.3), 0 4px 6px -2px rgba(30, 64, 175, 0.15) !important;
    transform: translateY(-1px) !important;
}

.page_login .buttons button.submit:active,
.page_register .buttons button.submit:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px 0 rgba(30, 64, 175, 0.2) !important;
}

.page_login .buttons a.register,
.page_register .buttons a.login {
    color: #4b5563 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    margin-left: 20px !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}

.page_login .buttons a.register:hover,
.page_register .buttons a.login:hover {
    color: #1e40af !important;
    text-decoration: underline !important;
}