/* css/library.css — minimal, modern, responsive overrides */
:root {
  --brand: #0d6efd;
  --ink: #0b1324;
  --paper: #ffffff;
}

html,
body {
  height: 100%
}

body {
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
  color: var(--ink)
}

.navbar .navbar-brand {
  letter-spacing: .2px
}

.navbar .btn {
  border-radius: .75rem
}

/* Ensure the parent section is tall and creates a stacking context */
.hero {
  position: relative;
  min-height: 60svh;
  /* already in your file; keep or increase */
  display: flex;
  align-items: center;
  color: #fff;
}

/* Force our image (wins even if an older rule exists) */
.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)),
    url("../img/library-hero.jpg") center/cover no-repeat !important;
  /* ^^^^^ correct path from /css/ to /img/ + override */
}

.hero .container {
  position: relative;
  z-index: 1;
  /* keep text above the bg */
}

.opacity-90 {
  opacity: .9
}

.search-bar .form-control {
  border: 0;
}

.search-bar .form-control:focus {
  box-shadow: none;
}

.search-bar .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.icon-wrap.sm {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
}

.card-hover {
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid rgba(0, 0, 0, .06);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08);
}

.lift {
  transition: transform .15s ease;
}

.lift:hover {
  transform: translateY(-2px);
}

.hours-row {
  scrollbar-width: thin;
}

.footer {
  background: #0b2141;
}

.footer .brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), #6ea8fe);
}

.link-light-lean {
  color: #d5e1ff;
  text-decoration: none
}

.link-light-lean:hover {
  color: #fff;
  text-decoration: underline
}

/* Mobile refinements */
@media (max-width: 576px) {
  .hero {
    padding: 5rem 0 3rem;
  }

  .hero .display-4 {
    font-size: 2rem;
  }

  .hours-row>[class*="col-"] {
    width: 80%;
  }
}

/* ---- Nav/topbar tweaks ---- */
.lib-nav .topbar {
  background: #fff;
}

.lib-nav {
  z-index: 1100;
}

/* above hero/backgrounds */

.lib-nav .lib-brand span {
  letter-spacing: .2px;
}

.toplink {
  color: #0b2141;
  font-weight: 600;
}

.toplink:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.btn-search {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: #0b7d8d;
  color: #fff;
}

.btn-search:hover {
  background: #096b78;
  color: #fff;
}

.nav-main .nav-link {
  padding: .85rem 1rem;
  font-weight: 600;
  color: #0b2141;
}

.nav-main .nav-link:hover,
.nav-main .nav-link:focus {
  color: #0d6efd;
}

/* Small screens: keep topbar compact */
@media (max-width: 576px) {
  .lib-nav .lib-brand span {
    display: none;
  }

  .toplinks {
    gap: .5rem !important;
  }



  header img[alt="LASUSTECH Libraries"] {
    height: 48px;
    width: 2000px;
    object-fit: contain;
    image-rendering: auto;
  }





  /* Uniform card height for library sections */
  #hours .card {
    min-height: 150px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: transform .15s ease;
  }

  #hours .card:hover {
    transform: translateY(-3px);
  }

  #hours .row {
    flex-wrap: wrap;
    /* disables horizontal scrolling */
  }

  /* Align text nicely inside */
  #hours .card-body h6,
  #hours .card-body h4 {
    font-weight: 600;
    color: #0b2141;
  }

  #hours .card-body p {
    color: #666;
  }

}