﻿.pkp_structure_main p {
    text-align: justify;
}


/*content background*/
.pkp_structure_main {
    background-color: rgb(254, 253, 253);
}






/*title*/
.pkp_site_name::after {
    content: "Journal of Intelligent Machines and Smart Technologies";
    font-size: 30px;
    font-weight: 600;
    color:#ffffff;
    margin-left: 10px;
}
.pkp_site_name {
    display: flex;
    align-items: center;
    line-height: 3.50rem;
}
 .pkp_site_name img {
    margin-right: 13px;
}
.pkp_site_name_wrapper {
    background: linear-gradient(to right, #ffffff, #2a96d9, #f09205);
}





/* Main menu  */
.pkp_navigation_primary > li > a:hover {
    background-color:#f09205; !important;
    color: #ffffff !important;
    border-radius: 10px;
}
.pkp_navigation_primary > li.active > a {
    background-color:#f09205 !important;
    color: #ffffff !important;
    border-radius: 10px;
}








/* Submenu */
.pkp_navigation_primary > li > .dropdown-menu {
    background-color: #e86c24 !important;  
    border-radius: 7px;
    margin-top: 6px !important;
}
.pkp_navigation_primary .dropdown-menu a:hover {
    background-color: #f37b35 !important; 
    color: #000000 !important;
}




/*line*/
.pkp_navigation_primary_row {
    border-bottom: 3px solid #f09205;
}
.pkp_site_nav_menu {
    background: transparent !important;
}










/*sidebar*/

#customblock-issn {

    background-color:rgb(254, 253, 253);
    padding: 10px;
    margin: 8px;
    border-radius: 7px;
    margin-bottom: 3px;
    border: 1px solid #e5e1d6;
}
#customblock-issn .title {
    background-color: #2a96d9;
    padding: 8px 12px;
    border-radius: 6px;
    border-bottom: none !important;
    color: white;
}
#customblock-issn:hover {
    box-shadow: 0 5px 5px rgba(0,0,0,0.10);
}

#customblock-issn p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}


/*coverpage*/
#customblock-cover-page{
    background-color:rgb(254, 253, 253); 
    padding: 10px;
    margin: 8px;
    border-radius: 7px;
    margin-bottom: 3px;
    border: 1px solid #e5e1d6;
}
#customblock-cover-page:hover {
    box-shadow: 0 5px 5px rgba(0,0,0,0.10);
}

/* publisher information*/
#customblock-publisher-information{
    background-color:  rgb(254, 253, 253);
    padding: 10px;
    margin: 8px;
    border-radius: 7px;
    margin-bottom: 3px;
    border: 1px solid #e5e1d6;   
}
#customblock-publisher-information:hover {
    box-shadow: 0 5px 5px rgba(0,0,0,0.10);
}


/* information*/
.block_information{
    background-color:  rgb(254, 253, 253);  
    padding: 10px;
    margin: 8px;
    border-radius: 7px;
    margin-bottom: 3px;
    border: 1px solid #e5e1d6; 
}
.block_information:hover {
    box-shadow: 0 5px 5px rgba(0,0,0,0.10);
}

/* downloads*/
#customblock-downloads{
    background-color: rgb(254, 253, 253); 
    padding: 10px;
    margin: 8px;
    border-radius: 7px;
    margin-bottom: 3px;
    border: 1px solid #e5e1d6;
}
#customblock-downloads:hover {
    box-shadow: 0 5px 5px rgba(0,0,0,0.10);
}





/*footer*/
.pkp_structure_footer_wrapper{
    height: 100px;
    text-align: center !important;
    font-size:x-small !important;
    color: #0b4f63;
    border-bottom: 1.40rem solid #f09205;
}
.pkp_structure_footer_wrapper * {
    text-align: center !important;
}
.pkp_brand_footer{
    display: none;
    
}
.pkp_footer_content{
    padding: 1rem;
}



.cmp_breadcrumbs{
    display: none;
}

.pkp_page_index .homepage_image img {
    display: inline-block;
    width: 95%;
    height: auto;
    margin: 20px;
}
.pkp_structure_main h1, .pkp_structure_main h2, .pkp_structure_main h3, .pkp_structure_main h4 {
     margin: 0.857rem 0 1.43rem; 
}









/* ============================
   RESPONSIVE STYLES
   OJS default theme collapses to a mobile nav below @screen-desktop (~1032px):
     .pkp_site_nav_toggle  -> the hamburger button that appears
     .pkp_site_nav_menu    -> the panel holding the primary + user nav, hidden until toggled open
     .pkp_site_name        -> the logo/title block above the nav
============================ */

/* ---- Tablets (≤1024px) ---- */
@media (max-width: 1024px) {

    .pkp_site_name::after {
        font-size: 22px;
    }

    .pkp_site_name {
        line-height: 2.8rem;
        flex-wrap: wrap;
    }

    .pkp_navigation_primary > li > a {
        padding: 8px 10px;
        font-size: 14px;
    }

    #customblock-issn,
    #customblock-cover-page,
    #customblock-publisher-information,
    .block_information,
    #customblock-downloads {
        margin: 6px 4px;
        padding: 8px;
    }

    .pkp_page_index .homepage_image img {
        width: 100%;
        margin: 10px 0;
    }
}

/* ---- Small tablets / large phones (≤768px) ---- */
@media (max-width: 768px) {

  .has_site_logo .pkp_site_name {
    flex-wrap: nowrap;
    align-items: center;
  }

.has_site_logo .pkp_head_wrapper {
padding-right:0px
}
    /* --- Header --- */
    .pkp_site_name_wrapper {
        padding: 8px 12px;
        height: 55px;
    }

    .pkp_site_name {
        line-height: 1.3;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pkp_site_name::after {
        font-size: 11px!important;
        white-space: normal;
        margin-left: 0;
        line-height: 1.3;
    }

    .pkp_site_name img {
        margin-right: 8px;
        max-height: 40px;
        width: auto;
    }

    /* Hamburger toggle button: make it visible and on-brand instead of unstyled */
    .pkp_site_nav_toggle {
        border-radius: 6px;
        color: #ffffff !important;
    }
    .pkp_site_nav_toggle .fa,
    .pkp_site_nav_toggle:before {
        color: #ffffff !important;
    }

    /* Slide-down mobile menu panel: was `background: transparent`, which
       left it floating unreadably over page content on small screens */
    .pkp_site_nav_menu {
        background-color: #ffffff !important;
        border-top: 3px solid #f09205;
        box-shadow: 0 6px 10px rgba(0,0,0,0.12);
    }

    /* Primary nav stacks full-width, one item per row */
    .pkp_navigation_primary {
        flex-direction: column;
        width: 100%;
        text-align: left;
    }

    .pkp_navigation_primary > li {
        width: 100%;
        border-bottom: 1px solid #f1e9db;
    }

    .pkp_navigation_primary > li > a {
        border-radius: 0;
        width: 100%;
        display: block;
        padding: 12px 16px;
    }

    .pkp_navigation_primary > li > a:hover,
    .pkp_navigation_primary > li.active > a {
        border-radius: 0;
    }

    /* Submenus become static full-width accordions instead of floating dropdowns
       (a floating/absolute dropdown can clip off-screen on narrow viewports) */
    .pkp_navigation_primary > li > .dropdown-menu {
        position: static !important;
        width: 100% !important;
        float: none;
        margin-top: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

    .pkp_navigation_primary_row {
        border-bottom: none; /* the orange line looks stray once the row collapses to a hamburger */
    }

    .pkp_structure_main p {
        text-align:justify; /* justified text looks bad in narrow mobile columns */
    }

    .pkp_structure_footer_wrapper {
        height: auto;
        min-height: 80px;
        padding: 10px 0;
        border-bottom-width: 1rem;
    }

    .pkp_footer_content {
        padding: 0.75rem;
        font-size: 12px;
 
   }
.has_site_logo .pkp_site_name, .has_site_logo .pkp_navigation_primary_wrapper {
    width: auto;
    display: flex;
    gap: 5px;

}

/* ---- Phones (≤576px) ---- */
@media (max-width: 576px) {

    .pkp_site_name_wrapper {
        padding: 6px 10px;
    }

    .pkp_site_name::after {
        font-size: 12px;
        line-height: 1.3;
    }

    .pkp_site_name {
        line-height: 1.2;
        padding: 4px 0;
    }

    .pkp_site_name img {
        max-height: 32px;
        margin-right: 6px;
    }

    .pkp_navigation_primary > li > a {
        padding: 10px 12px;
        font-size: 14px;
    }

    #customblock-issn p {
        font-size: 12px;
    }

    #customblock-issn,
    #customblock-cover-page,
    #customblock-publisher-information,
    .block_information,
    #customblock-downloads {
        margin: 4px 0;
        border-radius: 5px;
    }

    .pkp_page_index .homepage_image img {
        width: 100%;
        margin: 8px 0;
    }

    .pkp_structure_main h1, 
    .pkp_structure_main h2, 
    .pkp_structure_main h3, 
    .pkp_structure_main h4 {
        margin: 0.6rem 0 1rem;
        font-size: 1.2rem;
    }

    .pkp_structure_footer_wrapper {
        border-bottom-width: 0.6rem;
        font-size: 11px;
    }
}