@charset "utf-8";
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");

* {
  box-sizing: border-box;
}

body {
  font-size: 18px;
}

:root {
  --loperblue: #004d86;
  --loperyellow: #e4a115;
  --lopergray: #e7e7e7;
  --lightgray: #fafafa;
  --mediumgray: #f2f2f2;
  --darkgray: #838383;
  --black: #000000;
  --white: #ffffff;
  --bluev: #022f6d;
}

/* Page Content */
.container-fluid {
  width: 80%;
}

/* Utility */
.flex-container {
  padding: 20px 0;
  margin: 0 0 40px 0;
}

/* Images & Cards */
.img-wrapper {
  overflow: hidden;
  display: inline-block;
  border: none;
}
.inner-img {
  transition: transform 0.5s ease, box-shadow 0.4s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .inner-img:hover,
  .inner-img:focus {
    transform: scale(1.01);
    box-shadow: 5px 2px 6px rgba(0, 0, 0, 0.08);
  }
}
.inner-img:focus {
  outline: 2px solid #0056b3;
  outline-offset: 4px;
}

/* Library Hours */
.hours-alt.hours-today-row.hours-library.loc20268,
.hours-col-loc {
  display: none;
}

/* Typography */
h1 {
  margin: 10px;
  font-size: 1.5rem;
}
h2 {
  color: var(--black);
  font-size: 2em;
}

/* Cards */
.card {
  border: 1px solid var(--lopergray);
}
.card-header {
  font-size: 2rem;
}
.card-title {
  font-size: 1.5rem;
}


/*Horizontal Scrolling Cards*/
 /* Namespace classes to avoid conflicts */
    .hcs-card-scroller { position: relative; margin: 2rem 0; }
    .hcs-cards-container {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      gap: 1rem;
      padding-bottom: 0.5rem;
      /* hide scrollbar */
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .hcs-cards-container::-webkit-scrollbar { display: none; }
    .hcs-card {
      flex: 0 0 80%;
      max-width: 300px;
      background-color: rgba(255, 255, 255, 0.0);
      border-radius: 0.5rem;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      scroll-snap-align: start;
      padding: 1rem;
    }
    .hcs-card img { width: 100%; border-radius: 0.5rem; }
    .hcs-scroll-btn {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 2.25rem;
      background: transparent;
      color: var(--loperblue);
      border: none;
      font-size: 2.5rem;
      line-height: 1;
      cursor: pointer;
      z-index: 1;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    .hcs-scroll-btn:hover,
    .hcs-scroll-btn:focus {
      color: var(--bluev);
    }
    .hcs-scroll-btn.prev { left: -0.25rem; }
    .hcs-scroll-btn.next { right: -0.25rem; }


/* Research horizontal scroll cards */
.research-card-scroller {
  margin-top: 0;
}

.research-cards-container {
  gap: 1.25rem;
  padding: 0.25rem 0.25rem 1rem;
}

.research-card {
  flex: 0 0 82%;
  max-width: 340px;
  min-height: 100%;
  background-color: var(--white);
  border: 1px solid var(--lopergray);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0;
  overflow: hidden;
}

.research-card a {
  display: block;
  height: 100%;
  color: var(--loperblue);
}

.research-card a:hover .card-title,
.research-card a:focus .card-title {
  text-decoration: underline;
}

.research-card-img {
  display: block;
  width: 100%;
  height: 150px;
  max-width: none;
  object-fit: cover;
}

.research-card-body {
  padding: 1rem;
}

@media screen and (min-width: 768px) {
  .research-card {
    flex-basis: 42%;
  }

  .research-card-img {
    height: 165px;
  }
}

@media screen and (min-width: 1200px) {
  .research-card {
    flex-basis: 28%;
  }
}


/* Links */
a, a:visited {
  color: var(--loperblue);
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  text-decoration: none;
}
.no-link-style {
  color: var(--black);
  text-decoration: none;
  font-weight: normal;
  margin-top: 10px;
}

.footer ul a:hover,
.footer ul a:focus {
  text-decoration: underline;
}

.footer .univlogo a:hover,
.footer .univlogo a:focus {
  text-decoration: none;
}


/* Gray background util */
.gray {
  background-color: var(--lopergray);
}

/* Focus outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

/* Cursor */
a, button, [role="button"] {
  cursor: pointer;
}

/* Blue Buttons */
a.btn.blue,
a.btn.blue:visited {
  background-color: var(--loperblue) !important;
  color: #fff !important;
  font-weight: 600;
  border: 2px solid var(--loperblue);
}
a.btn.blue:hover {
  background-color: var(--lopergray) !important;
  color: var(--loperblue) !important;
}
a.btn.blue:focus {
  outline: 3px solid #005aa7;
  outline-offset: 2px;
  background-color: var(--lopergray) !important;
  color: var(--loperblue) !important;
}
a.btn.blue:active {
  box-shadow: inset 0 0 0 2px var(--loperblue);
}

.underline-grow {
  position: relative;           /* establish positioning context */
  text-decoration: none;        /* remove default underline */
  color: var(--loperblue);      /* keep library links in brand blue */
  font-weight: 600;
}

.underline-grow::after {
  content: "";                  /* generate empty pseudo‐element */
  position: absolute;
  left: 0;
  bottom: 0;                    /* sit right under the text */
  width: 0%;                    /* start hidden */
  height: 3px;                  /* thickness of the underline */
  background-color: currentColor;
  transition: width 0.3s ease;  /* animate growing width */
}

.underline-grow:hover::after,
.underline-grow:focus::after {
  width: 100%;                  /* expand to full text width */
}


/* Navbar */
/* Navbar */
.navbar {
  font-size: 1.1rem;
}

.navbar-brand {
  font-size: 1.1rem;
  font-weight: 600;
}

.navbar .nav-link {
  color: var(--loperblue) !important;
  font-weight: 600;
}

.navbar .dropdown-item {
  color: var(--loperblue);
  text-decoration: none;
  font-weight: 600;
}

/* Banner */
.banner {
  overflow: hidden;
  background-color: var(--loperblue);
  padding: 10px;
  border-bottom: 6px solid var(--loperyellow);
  text-align: center;
}
.bannertext {
  color: #fff;
  font-size: 1.3em;
  font-family: Georgia, serif;
}
img {
  max-width: 100%;
  height: auto;
}
img.image1 {
  image-rendering: auto;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  image-rendering: -webkit-optimize-contrast;
}
.image2 {
  display: none;
}

/* Hero & Search Form */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 350px;
  background:
    linear-gradient(transparent, transparent),
    url('https://d2jv02qf7xgjwx.cloudfront.net/accounts/20659/images/hero2.jpg') center/cover no-repeat;
  background-color: var(--lopergray);
}

.hero .search-container {
  position: relative;
  z-index: 2;
  padding: 0;
  width: 90%;
  max-width: 1100px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .search-container > form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* New wrapper for input + scope list */
.hero .search-container .search-input-wrapper {
  position: relative;
  width: 100%;
}
.hero .search-container .search-input-wrapper .input-group {
  width: 100%;
}
.hero .search-container .search-input-wrapper .selectsearch {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 10;
  margin-top: 0.5rem;
}
.hero .search-container .form-control {
  flex: 1 1 auto;
  min-width: 0;
}
.hero .search-container .button-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}







/* Search */
.selectsearch {
  display: none;
}

#go {
  background-color: var(--loperblue);
  border-color: var(--loperblue);
  color: var(--white);
}

#go .bi-search {
  color: var(--white);
}

#go:hover,
#go:focus {
  background-color: var(--lopergray);
  border-color: var(--loperblue);
  color: var(--loperblue);
}

#go:hover .bi-search,
#go:focus .bi-search {
  color: var(--loperblue);
}

/* Feature bands */
.feature-band {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  align-items: stretch;
}

.feature-image-pane {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.feature-image-pane img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.feature-content-pane {
  background-color: var(--lopergray);
  padding: 2rem 1rem;
}

.feature-content-pane .d-grid {
  width: min(100%, 42rem);
}

@media screen and (min-width: 768px) {
  .feature-image-pane {
    width: 50%;
    height: 360px;
  }
}

/* Tooltips */
.tooltip.fade .tooltip-inner {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.tooltip.show .tooltip-inner {
  opacity: 1;
  transform: translateX(0);
}
.tooltip-inner {
  font-size: 1rem;
  line-height: 1.4;
}
.tooltip {
  max-width: 200px;
}

/* Footer */
.footer {
  background: var(--lopergray);
  color: var(--black);
}

.footer h2.h5 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer ul li {
  margin-bottom: 0.35rem;
}

.footer a,
.footer a:visited {
  color: var(--loperblue);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover,
.footer a:focus {
  color: var(--bluev);
  text-decoration: underline;
}

.location i {
  font-size: 18px;
}

.footer-address-links li {
  line-height: 1.3;
}

.footer-info-links li {
  line-height: 1;
  margin-bottom: 0.1rem;
}

.footer-contact-links li {
  line-height: 1.25;
  margin-bottom: 0;
}

/* Social links */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  color: var(--loperblue);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-social a i {
  font-size: 2rem;
  color: inherit;
}

.footer-social a:hover,
.footer-social a:focus {
  color: var(--bluev);
  transform: translateY(-3px);
  text-decoration: none;
}

.footer-social a:focus-visible {
  outline: 2px solid var(--loperblue);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

/* Copyright */
.copyright p {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 1rem;
  margin-bottom: 0;
}


/* Form Accessibility */
label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
input[type="text"]:focus {
  border-color: var(--loperblue);
  box-shadow: 0 0 0 3px rgba(0,77,134,0.25);
}

/*--------------------------------------
  Responsive Styles (all media grouped)
--------------------------------------*/
@media screen and (max-width: 1200px) {
  .container-fluid {
    width: 90%;
  }
}

@media screen and (max-width: 1040px) {
  .navbar {
    font-size: 1rem;
  }
}

@media screen and (max-width: 992px) {
  .card {
    background-color: var(--mediumgray);
  }
  .mt-n3 {
    margin-top: 0 !important;
  }
  .image1 {
    display: none;
  }
  .image2 {
    display: block;
    margin: 0 auto 5px;
  }
  .bannertext {
    font-size: 1.8em;
  }
}

@media (max-width: 576px) {
  .hero .search-container .button-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .responsive-btn {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    margin: 0.5rem 0.2rem;
  }
}
