/* =========================================
   GLOBAL OJS OVERRIDES
   ========================================= */
body {
    background-color: #fdfbf7 !important;
    /* Updated to a warmer off-white for the new theme */
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, sans-serif !important;
    color: #334155;
    line-height: 1.6;
}

.pkp_structure_main {
    background: transparent;
    padding-top: 40px;
}

.pkp_structure_page {
    margin: 0px !important;
    max-width: 100% !important;
}

@media (min-width: 1200px) {
    .pkp_structure_page {
        margin: 0 !important;
        background: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
}

/* =========================================
   THE HERO HEADER & BRANDING
   ========================================= */
.pkp_structure_head {
    /* Updated to use your brand color #5F192C with 85% opacity */
    background: linear-gradient(rgba(95, 25, 44, 0.85), rgba(95, 25, 44, 0.85)),
        url(https://images.unsplash.com/photo-1524661135-423995f22d0b?q=80&w=2074&auto=format&fit=crop) no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    border-bottom: 4px solid #E4D5A3;
    /* Updated to #E4D5A3 */
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pkp_head_wrapper {
    position: relative;
    padding-top: 60px;
    padding-bottom: 20px;
    margin: 0 auto;
    z-index: 10;
}

.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
    position: relative;
    width: 100%;
    padding: 30px 0px;
}

/* Fix: Logo and Text side-by-side */
.pkp_site_name {
    text-align: center;
    /* padding: 50px 20px 30px; */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#navigationPrimary ul {
    background: #ffffff;
}

@media screen and (max-width: 1024px) {
    #navigationPrimary.pkp_nav_list {
        flex-wrap: wrap;
    }
}



.pkp_site_name a {
    color: black;
    display: flex !important;
    align-items: center;
    gap: 1rem;
}

.pkp_site_name a.is_img {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.pkp_site_name a.is_img img {
    width: auto !important;
    max-width: none !important;
}

.pkp_site_name .is_img img {
    display: block;
    max-height: 100px;
    max-width: 100%;
    width: auto;
    height: auto;
}

/* Injecting text back since logo hides it */
.pkp_site_name a.is_img::after {
    content: "IJRDO Journal of History & Geography";
    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;
}

/* =========================================
   TOP NAVIGATION
   ========================================= */
.pkp_navigation_user_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    z-index: 100;
}

.pkp_navigation_user {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
}

.pkp_navigation_user li a {
    color: #e2e8f0 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 15px;
    text-decoration: none;
}

.pkp_navigation_primary_row {
    background: rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

ul#navigationPrimary.pkp_nav_list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1px;
    list-style: none;
    width: 100%;
    padding: 10px 5px;
}

@media (min-width: 992px) {
    .pkp_navigation_primary {
        max-width: 100% !important;
    }
}

/* Search bar  */
@media (min-width: 992px) {
    .pkp_head_wrapper .pkp_search {
        position: absolute;
        border-radius: 3rem;
        top: 60px;
        background: #fdfbf7;
        /* Updated to match theme off-white */
        right: 0;
        height: 40px;
        min-width: 100px;
        padding: 0;
        font-size: 14px;
        line-height: 20px;
        transition: min-width .4s;
        text-align: right;
        overflow-x: hidden;
    }
}

.pkp_nav_list>li>a {
    color: #ffffff !important;
    padding: 10px !important;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.pkp_nav_list>li>a:hover {
    background: #E4D5A3 !important;
    /* Updated hover color to theme beige */
    color: #5F192C !important;
    /* Text turns red on hover */
}

/* Dropdown Fixes */
.pkp_nav_list ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
    border-top: 3px solid #5F192C;
    /* Added brand accent to dropdown */
}

.pkp_nav_list li:hover>ul {
    display: block;
}

.pkp_nav_list ul li a {
    color: #334155 !important;
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    text-decoration: none;
}

.pkp_nav_list ul li a:hover {
    background: #E4D5A3 !important;
    color: #5F192C !important;
}

.pkp_structure_content {
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   HOMEPAGE ABOUT SECTION 
   ========================================= */
.pkp_structure_main .homepage_about>div:first-of-type {
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 50px !important;
    flex: 0 0 100% !important;
}

.pkp_structure_main .homepage_about>div:first-of-type img {
    height: 500px !important;
    width: 400px !important;
    padding-left: 50px !important;
    background: #fff !important;
    box-shadow: 12px 18px 30px rgba(95, 25, 44, 0.2) !important;
    /* Updated shadow color to brand red */
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
    border: 1px solid #E4D5A3;
    /* Added subtle theme border */
}

/* =========================================
   CUSTOM INTRO CARDS
   ========================================= */
.hng-intro-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    margin: -30px auto 40px auto;
    position: relative;
    z-index: 20;
    border: 1px solid #E4D5A3;
}

.hng-list-box {
    background: #fdfbf7;
    border: 1px solid #E4D5A3;
    /* Updated to theme color */
    border-radius: 8px;
    padding: 25px;
}

.hng-list-box h3 {
    color: #5F192C;
    /* Updated to brand red */
    border-bottom: 2px solid #E4D5A3;
    /* Updated to brand beige */
    padding-bottom: 10px;
}

@media (min-width: 1200px) {
    .has_site_logo .pkp_head_wrapper {
        width: 100% !important;
    }
}

/* =========================================
   RESPONSIVENESS
   ========================================= */
@media screen and (max-width: 1024px) {
    .pkp_structure_main .homepage_about>div:first-of-type img {
        box-shadow: 0px 10px 25px rgba(95, 25, 44, 0.15) !important;
    }
}

.pkp_structure_footer_wrapper {
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid #ddd;
    /* border-bottom: 20px solid #5f192c; */
}

.pkp_structure_footer {
    width: 100%;
}

.pkp_footer_content {
    padding: 0px;
    text-align: left;
}

.pkp_structure_footer_wrapper {
    background: rgba(0, 0, 0, 0.05);
    /* border-top: 1px solid #ddd; */
    /* border-bottom: 20px solid #5f192c; */
}