/* 1. Global Page Layout & Breathing Space */
html {
    background-color: #eef3f7 !important;
}

body {
    background-color: #eef3f7 !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    min-height: 100vh;
    box-sizing: border-box;
}

/* 2. Main Centered Box Container */
.pkp_structure_page {
    max-width: 1160px !important;
    margin: 0 auto !important;
    background-color: #ffffff !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: block !important;
}

.pkp_structure_page_width {
    max-width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
}

/* 3. The Blue Header Bar (Logo Section Only) */
.pkp_structure_head {
    width: 100% !important;
    background: #006ec1 !important; /* Beautiful deep blue background */
    position: relative !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

/* Style the logo area within the blue bar */
.pkp_site_name_wrapper {
    padding: 25px 30px !important; /* Generous breathing room for the logo */
    display: block !important;
}

/* Ensure the text journal name (if no image) is white on the blue bar */
.pkp_site_name_wrapper h1,
.pkp_site_name {
    color: #ffffff !important;
    margin: 0 !important;
}

/* 4. Position the Register / Login Buttons elegantly inside the blue bar */
.pkp_navigation_user_wrapper {
    position: absolute !important;
    top: 20px !important;
    right: 30px !important;
    z-index: 1000 !important;
}

/* Make Register/Login text white so it is readable on the blue background */
.pkp_navigation_user a {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 5. Move & Style the Primary Menu below the Blue Bar */
.pkp_navigation_primary_wrapper {
    background-color: #f8fafc !important; /* Light accent background */
    border-bottom: 1px solid #e2e8f0 !important; /* Clean separator line underneath */
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 30px !important; /* Generous menu padding */
    position: relative !important;
    display: block !important;
}

/* Adjust the menu link colors for readability on the light bar */
.pkp_navigation_primary a {
    color: #334155 !important; /* Deep charcoal text */
    font-weight: 500 !important;
}

.pkp_navigation_primary a:hover {
    color: #006ec1 !important; /* Turns blue on hover */
}

/* 6. Main Content Area Padding */
.pkp_structure_content {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* 7. Footer Layout */
.pkp_structure_footer {
    width: 100% !important;
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 40px 0px !important;
    box-sizing: border-box !important;
}

/* 8. Responsive adjustments for mobile screens */
@media (max-width: 1200px) {
    body {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .pkp_structure_page {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .pkp_structure_page_width {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .pkp_navigation_user_wrapper {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        padding: 10px 15px !important;
        background-color: #005697 !important; /* Darker blue strip for mobile user menu */
    }
}

/* ==========================================
   SUBMISSION SIDEBAR WIDGET (TEXT FLASH & TIGHT BORDER)
   ========================================== */

/* Main outer container */
.custom-submission-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 20px 15px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* The tight border around the submission text */
.flashing-text-btn {
    display: inline-block !important; /* inline-block keeps the border tightly wrapped around the text */
    border: 2px solid #e2e8f0 !important; /* The border close to the font */
    border-radius: 4px !important;
    padding: 10px 15px !important; /* Controls how close the border is to the text */
    text-decoration: none !important;
    margin-bottom: 15px !important;
    background-color: #fafafa !important;
}

/* Base text styling */
.flashing-text-btn .btn-subtext {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
    animation: text-color-flash 1s infinite !important; /* Applies the 1-second flash */
}

.flashing-text-btn .btn-maintext {
    display: block !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    animation: text-color-flash 1s infinite !important; /* Applies the 1-second flash */
}

/* Support Text styling */
.submission-support-text {
    font-size: 13px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: left !important;
}

.submission-support-text a {
    color: #006ec1 !important; 
    text-decoration: underline !important;
    font-weight: 600 !important;
}

/* ==========================================
   THE 1-SECOND TEXT COLOR FLASH KEYFRAMES
   ========================================== */
@keyframes text-color-flash {
    0%, 49% {
        color: #ff8c00 !important; /* Bright Orange */
    }
    50%, 100% {
        color: #006ec1 !important; /* Brand Blue */
    }
}

/* ==========================================
   HIDE HOMEPAGE "ABOUT THE JOURNAL" TITLE
   ========================================== */
.homepage_about h2,
#homepageAbout + h2 {
    display: none !important;
}

/* ==========================================
   SIDEBAR TITLES (CAPITALIZED & GREEN UNDERLINE)
   ========================================== */
.pkp_structure_sidebar .pkp_block h2,
.pkp_structure_sidebar .title,
[role="complementary"] h2 {
    text-transform: uppercase !important; /* Forces all titles to be CAPITALIZED */
    color: #1ab373 !important; /* Applies the logo green to the text */
    border-bottom: 2px solid #1ab373 !important; /* Creates a clean green underline */
    padding-bottom: 8px !important; /* Gives breathing space between text and the line */
    margin-bottom: 15px !important; /* Adds space before the content begins */
    font-weight: 700 !important; /* Makes the title bold and readable */
    font-size: 15px !important;
    display: block !important;
}