/* =========================================
   GLOBAL OJS OVERRIDES
   ========================================= */
body {
    background-color: #f8fafc !important;
    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 {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(30, 58, 95, 0.9)),
        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 #cda434;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pkp_head_wrapper {
    position: relative;
    padding-top: 60px;
    padding-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 10;
}

.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
    position: relative;
    width: 100%;
    padding: 50px 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;
}

@media screen and (max-width: 1024px) {
    #navigationPrimary.pkp_nav_list {
        flex-wrap: wrap;
    }
}

.pkp_site_name a.is_img {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.pkp_site_name a.is_img img {
    /*  height: 70px !important; */
    width: auto !important;
    max-width: none !important;
}

/* 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;
}

/* Primary Nav Centering & High Specificity */
/* ul#navigationPrimary.pkp_nav_list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 5px;
    list-style: none;
    width: 90%;
    margin: 0 auto;
    padding: 5px 0;
}
 */
ul#navigationPrimary.pkp_nav_list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1px;
    list-style: none;
    width: 100%;
    padding: 5px 0;
}

@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: aliceblue;
        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: rgba(255, 255, 255, 0.15);
}

/* 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;
}

.pkp_nav_list li:hover>ul {
    display: block;
}

.pkp_nav_list ul li a {
    color: #1e293b !important;
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    text-decoration: none;
}

.pkp_structure_content {
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
    position: relative;
    width: 100%;
    padding-top: 0;
}

.pkp_head_wrapper {
    position: relative;
    padding-top: 60px;
    padding-bottom: 20px;
    max-width: 100%;
    margin: 0 auto;
    z-index: 10;
}

/* =========================================
   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;
    /* Allow room for the 400px image */
}

.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(64, 112, 146, 0.3) !important;
    /* Rotated Blue Shadow */
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
}

.pkp_site_name .is_img img {
    display: block;
    max-height: 100px;
    max-width: 100%;
    width: auto;
    height: auto;
}

/* =========================================
   RESPONSIVENESS
   ========================================= */
@media screen and (max-width: 1024px) {

    /* Stack Nav in Grid */
    #navigationPrimary.pkp_nav_list {
        /*  display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 5px; */
        flex-wrap: wrap;
    }

    /* Stack About Section */
    .pkp_structure_main .homepage_about>div:first-of-type {
        flex-direction: column !important;
        padding: 20px !important;
    }

    .pkp_structure_main .homepage_about>div:first-of-type img {
        width: 100% !important;
        height: auto !important;
        padding-left: 0 !important;
        box-shadow: 0px 10px 25px rgba(64, 112, 146, 0.2) !important;
    }

    /* Shrink Title Text */
    .pkp_site_name a.is_img::after {
        font-size: 1.4rem;
        margin-left: 10px;
    }
}

/* =========================================
   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;
}

.hng-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hng-list-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
}

.hng-list-box h3 {
    color: #1e3a5f;
    border-bottom: 2px solid #cda434;
    padding-bottom: 10px;
}

.pkp_footer_content {
    padding: 0px;
    text-align: left;
}

.pkp_structure_footer_wrapper {
    border: 0 !important;
}

@media (min-width: 1200px) {

    .pkp_site_name,
    .pkp_navigation_primary_wrapper,
    .pkp_navigation_user,
    .pkp_structure_content,
    .pkp_structure_footer {
        width: 100%;
    }
}