/* this is \scripts\css\styles-home3.css */
/***** Home Page Only Styles *****/

/* HERO SECTION */
.hero-library {
  position: relative;
  overflow: hidden;
  background: #173127;
  height: 320px;
}

.hero-library-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-library-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.76) 0%,
      rgba(0, 0, 0, 0.62) 30%,
      rgba(0, 0, 0, 0.36) 58%,
      rgba(0, 0, 0, 0.20) 100%
    );
  pointer-events: none;
}

.hero-library-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

.hero-library-content-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(420px, 1.25fr);
  gap: 1.5rem;
  align-items: end;
}

.hero-library-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
}

.hero-library-title {
  margin: 0;
  color: #ffffff;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-align: right;
  text-wrap: balance;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 18ch;
}

.hero-library-search-wrap {
  min-width: 0;
}

.hero-library-search-card {
  max-width: 980px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1rem;
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-library-search-heading {
  margin: 0 0 0.85rem;
  color: #173127;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  text-align: center;
}

.hero-library-search-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 0;
}

.hero-library-search-field {
  min-width: 0;
}

.hero-library-search-field-query {
  flex: 1 1 auto;
}

.hero-library-search-field-scope {
  flex: 0 0 16rem;
}

.hero-library-search-field-button {
  flex: 0 0 auto;
}

.hero-library-input,
.hero-library-select,
.hero-library-search-button {
  height: 3.25rem;
  border-radius: 0.75rem;
}

.hero-library-input,
.hero-library-select {
  border: 1px solid #c9d3dd;
  background-color: #ffffff;
  color: #12212b;
  font-size: 1rem;
}

.hero-library-input::placeholder {
  color: #667684;
}

.hero-library-input:focus,
.hero-library-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.16);
}

.hero-library-search-button {
  min-width: 8.25rem;
  padding: 0 1.25rem;
  border: none;
  background: #ffd872;
  color: #173127;
  font-weight: 800;
  white-space: nowrap;
}

.hero-library-search-button:hover,
.hero-library-search-button:focus-visible {
  background: #ffe9a7;
  color: #005a9c;
}

.hero-library-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(23, 49, 39, 0.12);
}

.hero-library-link {
  color: #0b4f6c;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}

.hero-library-link::before {
  content: "› ";
  color: #0b4f6c;
  font-weight: 700;
}

.hero-library-link:hover,
.hero-library-link:focus-visible {
  color: #08384d;
  text-decoration: underline;
}

/* HOURS WIDGET */
.hours-widget-wrap {
  display: block;
}

/* Hide the extra LibCal caption line */
table.hours-today > caption {
  display: none;
}

/* Optional small cleanup for widget spacing */
.hours-widget-wrap table.hours-today {
  margin: 0;
}

.hours-widget-wrap table.hours-today td,
.hours-widget-wrap table.hours-today th {
  padding-top: 0;
  padding-bottom: 0;
}

/* Icon Row Styles */
.icon-link {
  text-decoration: none;
  color: #174d35;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
  display: block;
}

.icon-link img {
  display: block;
  margin: 0 auto 0.5em auto;
  height: 48px;
  transition: transform 0.2s ease-in-out;
}

.icon-link div {
  font-weight: 500;
  color: #174d35;
  font-size: 1rem;
  line-height: 1.2;
}

.icon-link:hover,
.icon-link:focus {
  color: #005a9c;
  outline: none;
}

.icon-link:hover img,
.icon-link:focus img {
  transform: scale(1.1);
}

/* Cards Row */
.card-link-wrapper .card-title {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
}

.card-link-wrapper .card-title.card-title-sm {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  text-align: left;
  text-transform: none;
}

.card-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card-link-wrapper .card {
  height: 100%;
  transition: box-shadow 0.2s;
}

.card-link-wrapper:focus .card,
.card-link-wrapper:hover .card {
  box-shadow: 0 0 0 4px #ffd872;
  outline: none;
}

.card-link-wrapper .btn {
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .hero-library-search-field-scope {
    flex-basis: 13rem;
  }
}

@media (max-width: 991.98px) {
  .hero-library {
    height: 280px;
  }

  .hero-library-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.65rem;
    align-items: flex-end;
  }

  .hero-library-content-row {
    grid-template-columns: minmax(180px, 0.7fr) minmax(320px, 1.3fr);
    gap: 1rem;
    align-items: end;
  }

  .hero-library-copy {
    justify-content: flex-end;
    padding-bottom: 0.25rem;
  }

  .hero-library-title {
    max-width: 16ch;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    text-align: right;
    line-height: 1.02;
  }

  .hero-library-search-card {
    padding: 0.8rem 0.85rem 0.7rem;
    border-radius: 0.8rem;
  }

  .hero-library-search-heading {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .hero-library-search-row {
    gap: 0.55rem;
  }

  .hero-library-search-field-query {
    flex: 1 1 auto;
  }

  .hero-library-search-field-scope {
    flex: 0 0 11rem;
  }

  .hero-library-search-button {
    min-width: 7rem;
  }

  .hero-library-links {
    gap: 0.4rem 0.8rem;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
  }

  .hero-library-link {
    font-size: 0.88rem;
  }

  .hours-widget-wrap {
    display: block;
    margin-top: 0.5rem;
    margin-left: 1rem;
  }

  .icon-link img {
    height: 40px;
  }

  .icon-link div {
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  .hero-library {
    height: auto;
    min-height: 0;
  }

  .hero-library-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.56) 42%,
        rgba(0, 0, 0, 0.46) 100%
      );
  }

  .hero-library-inner {
    height: auto;
    padding-top: 1rem;
    padding-bottom: 0.9rem;
    align-items: flex-end;
  }

  .hero-library-content-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-library-copy {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .hero-library-title {
    max-width: none;
    font-size: 1.7rem;
    text-align: left;
    line-height: 1.1;
    white-space: nowrap;
  }

  .hero-library-search-card {
    max-width: none;
    padding: 0.75rem;
    border-radius: 0.7rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.93);
  }

  .hero-library-search-heading {
    font-size: 0.98rem;
    margin-bottom: 0.6rem;
  }

  .hero-library-search-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-library-search-field-query,
  .hero-library-search-field-scope,
  .hero-library-search-field-button {
    flex: 1 1 100%;
  }

  .hero-library-input,
  .hero-library-select,
  .hero-library-search-button {
    height: 2.8rem;
    font-size: 0.96rem;
    border-radius: 0.6rem;
  }

  .hero-library-search-button {
    width: 100%;
  }

  .hero-library-links {
    gap: 0.35rem 0.7rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
  }

  .hero-library-link {
    font-size: 0.87rem;
  }

  .hours-widget-wrap {
    margin-top: 0.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .icon-link img {
    height: 40px;
  }

  .icon-link div {
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .hero-library-inner {
    padding-top: 0.85rem;
    padding-bottom: 0.8rem;
  }

  .hero-library-title {
    max-width: none;
    font-size: 1.55rem;
    line-height: 1.1;
    white-space: normal;
  }

  .hero-library-search-card {
    padding: 0.7rem;
    border-radius: 0.65rem;
  }

  .hero-library-search-heading {
    font-size: 0.94rem;
  }

  .hero-library-input,
  .hero-library-select,
  .hero-library-search-button {
    height: 2.7rem;
    font-size: 0.95rem;
  }

  .hero-library-links {
    gap: 0.3rem 0.65rem;
  }

  .hero-library-link {
    font-size: 0.84rem;
  }

  .hours-widget-wrap {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .icon-link img {
    height: 36px;
  }

  .icon-link div {
    font-size: 0.9rem;
  }
}