header {
  max-width: 100%;
}

header.container {
  padding-left: 0px;
  padding-right: 0px;
  margin-bottom: 1px;
  background-color: #c9c8c8;
  color: #3641a2;
  min-height: 25px;
}

/* NAVBAR */
.navbar,
#navbar {
  background-color: #ffffff;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  border: none;
  position: sticky;
  top: 0;
  z-index: 990;
  box-shadow: 0 1px 18px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.navbar-scrolled,
#navbar.navbar-scrolled {
  box-shadow: 0 10px 18px 0 rgba(0, 0, 0, 0.1);
}

.top-nav {
  padding: 10px 0px;
  background-color: #000f9f;
}

.top-nav .container {
  display: flex;
  justify-content: flex-end;
}

#top-utility-bar .header-utility-links {
  display: flex;
  color: #ffffff;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

#top-utility-bar a {
  color: #ffffff;
}

/* Hours Tooltip */
.hours-tooltip {
  position: relative;
  display: inline-block;
}

.hours-tooltip .hours-tooltip-text {
  visibility: hidden;
  width: 350px;
  background-color: #ecedf9;
  color: #000;
  text-align: left;
  border-radius: 6px;
  padding: 12px;
  position: absolute;
  z-index: 1000;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid #000f9f;
  font-size: 14px;
  line-height: 1.4;
}

.hours-tooltip .hours-tooltip-text::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #000f9f transparent;
}

.hours-tooltip .hours-tooltip-text::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -7px;
  border-width: 7px;
  border-style: solid;
  border-color: transparent transparent #ecedf9 transparent;
  z-index: 1;
}

.hours-tooltip:hover .hours-tooltip-text {
  visibility: visible;
  opacity: 1;
}

.hours-tooltip-title {
  font-weight: bold;
  color: #000f9f;
  margin-bottom: 5px;
  font-size: 16px;
}

.main-nav .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 4px 20px 8px 20px;
}

.main-nav .region-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.nav-search {
  padding-left: 15px;
  display: flex;
  align-items: center;
}

.nav-search > a {
  color: #000f9f;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.nav-search > a:hover {
  text-decoration: none;
}

#searchBoxSection {
  display: none;
  border-top: 6px solid #000f9f;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  position: absolute;
  background-color: #ffffff;
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  overflow: hidden;
}

#searchBoxSection #block-bootstraptabbedsearch .tab-search-box {
  max-width: none;
  padding: 20px 20px 20px 20px;
}

#searchBoxSection
  #block-bootstraptabbedsearch
  .tab-search-box
  .search-container {
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.nav-search-active {
  display: block !important;
}

#block-headingimage {
  max-width: 400px;
}

/* Main Navigation */

#block-mainnavigation {
  display: flex;
  justify-content: flex-end;
}

#superfish-main {
  margin-bottom: 0;
}

ul.sf-menu.sf-style-default li {
  font-size: 16px;
  background-color: transparent;
}

ul.sf-menu.sf-style-default a,
ul.sf-menu.sf-style-default a:visited,
ul.sf-menu.sf-style-default span.nolink,
ul.sf-omha-menu a {
  color: #000;
}

ul.sf-menu.sf-style-default a:hover {
  color: #000;
  text-decoration: none;
}

ul.sf-menu.sf-style-default a.sf-with-ul,
ul.sf-menu.sf-style-default span.nolink.sf-with-ul {
  padding-right: 1.8em;
}

ul.sf-menu .sf-sub-indicator {
  width: 13px;
}

ul.sf-menu.sf-style-default li:nth-child(7) {
  background-color: #990000;
  /*  margin-left: 30px; */
}

ul.sf-menu.sf-style-default li li,
ul.sf-menu.sf-style-default.sf-navbar > li > ul {
  background-color: #ecedf9;
}

ul.sf-menu.sf-style-default > li > ul > li:nth-child(7),
ul.sf-menu.sf-style-default.sf-navbar > li > ul > li:nth-child(7) {
  background-color: #ecedf9;
  margin: 0;
}

#superfish-main li ul li a {
  color: #000000;
}

.hours-open {
  color: #32de84;
  font-weight: bold;
}

.hours-closed {
  color: #f16c6c;
  font-weight: bold;
}

.ask-librarian {
  color: #ffffff !important;
  font-weight: bold;
  background-color: #ff9900;
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid #ff9900;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 14px;
}

.ask-librarian:hover {
  background-color: #e68800;
  border-color: #e68800;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
}

.utility-separator {
  color: #ffffff;
  font-weight: normal;
}

/* Mobile responsive adjustments */
@media (max-width: 450px) {
  .utility-separator {
    display: none;
  }
}
