/* ============================================
   IJESE - OJS Bootstrap 3 Full Width Logo CSS
   ============================================ */

/* Remove all navbar default padding and margin */
.navbar.navbar-default {
  margin-bottom: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

/* Make navbar-header take full width */
.navbar-header {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Make navbar-brand (logo container) fill full width, no padding/margin */
.navbar-brand {
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
  line-height: 0 !important;
}

/* Logo image fills full width, no gap top/bottom/left/right */
.navbar-brand img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top !important;
}

/* Hide journal title text since logo image has it */
.navbar-brand span,
.navbar-brand p,
.navbar-brand div.title {
  display: none !important;
}

/* Remove container padding so logo goes edge to edge */
.navbar > .container,
.navbar > .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Fix the toggle button position on mobile */
.navbar-toggle {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 999 !important;
  margin: 0 !important;
}

/* Navigation menu bar below the logo */
.navbar-collapse {
  padding: 0 !important;
  border-top: 1px solid #e0e0e0 !important;
  background-color: #1a3a5c !important;
}

.navbar-nav {
  margin: 0 !important;
  float: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

.navbar-nav > li > a {
  color: #ffffff !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  background-color: #0f2640 !important;
  color: #ffffff !important;
}

.navbar-nav > li.active > a {
  background-color: #0f2640 !important;
  color: #ffffff !important;
}

/* Dropdown menu styling */
.navbar-nav .dropdown-menu {
  background-color: #1a3a5c !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.navbar-nav .dropdown-menu > li > a {
  color: #ffffff !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
}

.navbar-nav .dropdown-menu > li > a:hover {
  background-color: #0f2640 !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .navbar-brand img {
    width: 100% !important;
    height: auto !important;
  }

  .navbar-nav {
    display: block !important;
  }

  .navbar-nav > li > a {
    padding: 10px 15px !important;
    font-size: 13px !important;
  }
}
