/* --- GLOBAL OJS OVERRIDES --- */
body {
    background-color: #f4f7f9 !important;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    color: #334155;
}

/* 1. The Main Container - This holds the Background Image */
.pkp_structure_head {
    /* Biotechnology/Biology image from Unsplash */
    background: linear-gradient(rgba(30, 58, 95, 0.7), rgba(64, 112, 146, 0.85)),
        url('https://images.unsplash.com/photo-1530026405186-ed1f139313f8?q=80&w=1974&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Optional: adds a parallax scrolling effect */
    border-bottom: 3px solid #3b82f6;
    position: relative;
    min-height: 250px;
    /* Ensures the image area is tall enough */
}

/* 2. The User Navigation (Login/Register) - Stays at the very top */
.pkp_navigation_user_wrapper {
    position: absolute;
    top: 0;

    right: 0;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.2);
    /* Dark tint to separate from the image */
    backdrop-filter: blur(5px);
    /* Modern frosted glass effect */
    z-index: 100;
    height: 40px;
    display: flex;
    align-items: center;
}

/* 3. The Content Wrapper (Journal Name & Primary Nav) */
.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
    position: relative;
    padding-top: 60px;
    /* Pushes content down so it doesn't hide behind User Nav */
    padding-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 10;
}

/* 4. The Site Name (The text above the image background) */
.pkp_site_name {
    text-align: center;
    padding: 40px 0;
}


.pkp_site_name a {
    color: #ffffff !important;
    font-size: 2.5em;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    /* Critical for readability on images */
    text-decoration: none;
}

.pkp_site_name .is_img {
    display: flex;
    align-items: center;
    line-height: normal;
    gap: 1rem;
}

.pkp_site_name .is_img img {
    display: block;
    max-height: 120px;
    max-width: 100%;
    width: auto;
    height: auto;
}


.pkp_site_name a.is_img {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.pkp_site_name a.is_img::after {
    content: "IJRDO-Journal of Biotechnology Research";
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-left: 20px;
}

/* 5. The Primary Navigation - Sits below the title but still on the image */
.pkp_navigation_primary_row {
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
}

.pkp_nav_list>li>a {
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- CUSTOM HEADER STYLES --- */
.custom-header-wrapper {
    background: #f4f7f9;
    padding-bottom: 10px;
}

.pkp_head_wrapper .pkp_search .search_controls .search_prompt {
    color: white;
}

/* MODIFIED: Added Background Image and Overlay */
.main-journal-banner {
    /* Biotechnology Image from Unsplash */
    background: linear-gradient(rgba(31, 63, 82, 0.85), rgba(47, 92, 115, 0.9)),
        url('https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Optional: Creates a parallax effect */
    color: white;
    padding: 80px 20px 100px;
    /* Increased padding to show more background */
    text-align: center;
}

.main-journal-banner h1 {
    font-size: 2.8rem;
    /* Slightly larger for the hero look */
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Shadow to help text pop */
}

.journal-hero-card {
    width: 90%;
    max-width: 1100px;
    margin: -60px auto 30px;
    /* Adjusted margin to overlap more elegantly */
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    /* Slightly deeper shadow */
    position: relative;
    z-index: 10;
}

/* --- REST OF YOUR CSS (Remains the Same) --- */

.hero-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.hero-image img {
    width: 260px;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eee;
}

.hero-image img:hover {
    transform: scale(1.03);
}

.hero-details h2 {
    color: #407092;
    margin-top: 0;
    font-size: 1.8rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #407092;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2f5c73;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 112, 146, 0.3);
}

.hero-description {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    line-height: 1.8;
    color: #64748b;
}

/* --- CUSTOM FOOTER STYLES --- */
.custom-main-footer {
    background: #2f5c73;
    color: #ffffff;
    margin-top: 60px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    padding: 50px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-column h3 {
    font-size: 1.1rem;
    border-left: 4px solid #407092;
    padding-left: 12px;
    margin-bottom: 20px;
    color: #bfe3f5;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-column.info {
    flex: 1.5;
    min-width: 300px;
}

.footer-column.contact {
    flex: 1;
    min-width: 250px;
}

.footer-column a {
    color: #bfe3f5;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.footer-column a:hover {
    border-bottom: 1px solid #bfe3f5;
}

.footer-bottom-bar {
    background: #1e3f52;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
    }

    .main-journal-banner h1 {
        font-size: 2rem;
    }
}

.pkp_footer_content {
    padding: 0px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    /* Ensures the logo doesn't stretch or distort */
    flex-shrink: 0;
    /* Prevents the image from getting squashed in flexboxes */
}