.main-header {

    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}




@media (max-width: 991.98px) {
  body {
    padding-top: 50px;
    transition: padding-top 0.3s ease;

  }
  .main-header{
    position: fixed;
  }

  body:has(#main-navbar.show) {
  padding-top: 450px;
}
}



body[dir="rtl"] {

    font-family: system-ui;
}

img{

max-width: 100%;
background: white;
}

/*PKP brand removal*/
.col-md.col-md-2.align-self-center.text-right {
    display: none;
}

@media (min-width: 992px) {
    .navbar-logo img {
        max-height: 175px;
        border-radius: 5px;
        transition: max-height 0.3s ease;

    }

    body:has(main:has(:first-child:not(:in-viewport))) .navbar-logo img {
      max-height: 80px;
    }

}

@media (min-width: 992px) {
    .navbar-logo {
        max-width: 85%;
      }



    }

dl, ol, ul{

    font-size: 16px;
}


p {

    margin-left: 10px;
    margin-right: 10px;
}

/* Article summery*/

.article-summary {
    border-bottom: 1px solid #ddd;
}

.article-summary-title {
    font-size: 1.23rem;
    margin-top: 10px;
}


/* Nav bar*/
@media (min-width: 992px) {
    #primaryNav .nav-link {
        padding: 1.2rem;
        padding-bottom: 0.5rem;
    }
}

@media (min-width: 992px) {
    #primaryNav .nav-link, #primaryNav .dropdown-item {

        border-bottom: 1px solid transparent;
        border-top: none;
        border-left: none;
        border-right: none;
        transition: border-bottom-color 0.3s;

    }
}
    @media (min-width: 992px) {
    #primaryNav .dropdown-menu.show {
        border-radius: 5px;
    }
  }

    @media (min-width: 992px) {
        #primaryNav .dropdown-item {
            padding-inline-start: 0.7rem;
        }
    }

/*
    #primaryNav .nav-link:hover {
      transition: border-image 0.3s;
       border-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)) 1;
   }
*/

li.nav-item.nmi_type_submissions {
    border-right: 1px solid #333;
    border-left: 1px solid #333;
    border-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)) 1;
}

}
/*Phone navbar*/

.navbar-brand {
    margin-right: 0.5rem;
    font-size: 3rem;
}

@media (max-width: 992px) {
  ul#primaryNav {
      margin-top: 15px;
  }
}
ul#primaryNav-userNav {
    margin-top: 15px;
    border-top: 1px solid #333;
    padding-top: 2px;

}



/*Index page*/

.page-content {
    padding: 20px;
}

.index-ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px; /* Adds space between items */
    justify-content: center; /* Centers items horizontally */
}

.index_li {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s; /* Adds smooth transitions */
    background-color: #f9f9f9;
    width: 210px; /* Fixed width for larger elements */
    height: 110px; /* Fixed height for larger elements */
}

.index_li:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a shadow effect on hover */
}

.index_li a {
    display: block;
    text-align: center;
}

.index_li img {
    max-width: 180px; /* Larger maximum width for images */
    max-height: 80px; /* Larger maximum height for images */
    width: auto;
    height: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .index-ul {
        flex-direction: column;
        align-items: center;
    }

    .index_li {
        width: 90%; /* Adjusts width to fit the screen on smaller devices */
        height: auto; /* Adjusts height for responsive design */
        margin-bottom: 20px; /* Adds space between items */
    }

    .index_li img {
        max-width: 90%; /* Adjusts image size for responsive design */
        max-height: 100px; /* Ensures images are not too large on small screens */
    }
}




/* CSS for the policy list */
.policy-list {
    list-style-type: none; /* Removes default bullets */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.policy-list li {
    margin: 10px 0; /* Adds spacing between list items */
    padding: 10px; /* Adds padding inside list items */
    border: 1px solid #ddd; /* Adds a light border */
    border-radius: 5px; /* Rounds the corners */
    background-color: #f9f9f9; /* Light background color */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.policy-list li:hover {
    background-color: #f1f1f1; /* Slightly darker background on hover */
}

.policy-link {
    text-decoration: none; /* Removes underline from links */
    color: #333; /* Dark gray text color */
    display: block; /* Ensures the link takes up the full list item */
    font-weight: normal;
    font-family: 'Droid Serif', serif;
    transition: color 0.3s; /* Smooth transition for hover effect */
}

.policy-link:hover {
    color: #02869b; /* Changes text color on hover */
}

.policy-list p {
    margin: 0; /* Removes default margin from paragraphs */
}









/* Sidebar  theme  */
.sidebar .page-header {
  background: #f8f9fa; /* softer, less saturated */
  color: #ffffff; /* ensure readable header text */
  border: none;
  padding: .5rem .75rem;
  margin-bottom: .5rem;
}

.sidebar .page-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: inherit;
}

/* Make content containers lighter and more neutral */
.sidebar .cmp_announcements .p-3,
.sidebar .cmp_quick_links .list-unstyled,
.sidebar .cmp_sidebar_indexing .p-3 {
  background: #ffffff; /* neutral card */
  background: linear-gradient(180deg, #ffffff, #fbfbfc); /* subtle lift */
  border: 1px solid #e6e9ee; /* soft border matching main content */
  color: #213043;
  padding: .5rem;
  border-radius: .375rem;
  margin-top: .5rem;
}

/* Links contrast, spacing, and divider control */
.sidebar .list-unstyled li a {
  color: #0d4b6d; /* dark, readable link color that matches header */
  display: block;
  padding: .6rem .9rem;
  text-decoration: none;
  border-bottom: 1px solid #eef1f5;
  transition: background-color .12s ease, color .12s ease;
}

.sidebar .list-unstyled li a:hover,
.sidebar .list-unstyled li a:focus {
  background: #eef7fb;
  color: #042938;
}

/* Announcement titles */
.sidebar .cmp_announcements .announcement_title,
.sidebar .cmp_announcements .announcement_title a {
  color: #0b3550;
  font-weight: 600;
  text-decoration: none;
}




.sidebar-indexing-widget { margin-top: .5rem; }
.sidebar-indexing-grid { display:flex; flex-wrap:wrap; gap:.5rem; align-items:flex-start; }
.sidebar-indexing-item { width:100%; text-align:center; }
.sidebar-indexing-item img { max-width:90%; height:auto; display:inline-block; border-radius:.25rem; box-shadow:0.5px 2px 6px rgba(0,0,0,.06); padding: 10px;}
@media(min-width:992px){ .sidebar-indexing-item { width:100%; } }

/* Reduce visual weight on small screens */
@media (max-width: 991px) {
  .sidebar .page-header { background: #f8f9fa; }
  .sidebar .cmp_announcements .p-3,
  .sidebar .cmp_quick_links .list-unstyled { background: #ffffff; }
  .sidebar-indexing-grid { display:grid; gap:.5rem; align-items:flex-start; }
  .sidebar-indexing-item img { max-width:60%; height:auto; display:inline-block; border-radius:.25rem; box-shadow:0.5px 2px 6px rgba(0,0,0,.06); padding: 10px;}

}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  color: #213043;
}

.sidebar-title.mb-2.num-2 {
  margin-top: 10px;
}

.sidebar-title-divider {
  border: 0;
  height: 1px;
  width: 160px;      /* short divider like your example */
  margin: 0 0 0.6rem 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.12), rgba(0,0,0,0.03));
}



/*.card {
    border-color: beige;
    border-radius: 15px;
    background: #f7f7f7;
    margin: -30px;
    padding: 20px;
    text-align: center;
}

.issue-summary {
    margin-bottom: 5rem;
}

*/





/* this is not working because the CSS code is not applying when the screen gets samll*/
/*Home page adt content

.adt-container {
    display: flex;
    align-items: flex-start; /* Align items at the top *
    gap: 20px; /* Space between content and sidebar *
}

.content {
    flex: 3; /* Adjust the number to control the width ratio *
}

.sidebar_block {
    flex: 1; /* Adjust the number to control the width ratio *
    background-color: #f9f9f9; /* Optional: background color *
  }

.pkp_block {
    margin-bottom: 20px;
}

.pkp_block_sidebar .title {
    font-weight: bold;
    margin-bottom: 10px;
}

.pkp_block_sidebar .content ul {
    list-style: none;
    padding: 0;
}

.pkp_block_sidebar .content ul li {
    margin-bottom: 10px;
}

.pkp_block.block_information.sidebar {
    width: 100%;
}

.pkp_block.block_make_submission.sidebar {
    width: 100%;
    text-align: center;
}

.pkp_block.block_custom.sidebar{
  width: 90%;
  margin-left: auto;
  margin-right: auto;

}


hide for small screens

<div class="sidebar_block">
<div id="customblock-journal_cover" class="pkp_block block_custom sidebar">
<div class="content">
<p><img src="/journals/public/site/images/birne/Small_Cover2.png" /></p>
</div>
</div>
<div class="pkp_block block_make_submission sidebar">
<div class="content"><a class="block_make_submission_link" href="https://birne-online.de/journals/index.php/agjsls/about/submissions"> Make a Submission </a></div>
</div>
<div class="pkp_block block_information sidebar"><span class="title">Information</span>
<div class="content">
<ul>
<li class="show"><a href="https://birne-online.de/journals/index.php/agjsls/information/readers"> For Readers </a></li>
<li class="show"><a href="https://birne-online.de/journals/index.php/agjsls/information/authors"> For Authors </a></li>
<li class="show"><a href="https://birne-online.de/journals/index.php/agjsls/information/librarians"> For Librarians </a></li>
</ul>
</div>
</div>
</div>
</div>




@media screen and (max-width: 992px) {
    .sidebar {
        display: none !important;  Hide sidebar
    }
    .main-container {
        flex-direction: column !important;  Stack content and sidebar vertically
    }
}

*/
