/* this is \scripts\css\styles-home4.css */
/***** Home Page Only Styles *****/


/* HERO SECTION */
.hero-library {
  position: relative;
  overflow: hidden;
  background: #173127;
  min-height: 360px;
}

.hero-library-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-library-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(10, 24, 18, 0.34) 0%,
      rgba(10, 24, 18, 0.22) 34%,
      rgba(10, 24, 18, 0.46) 68%,
      rgba(10, 24, 18, 0.62) 100%
    );
  pointer-events: none;
}

.hero-library-inner {
  position: relative;
  z-index: 2;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.hero-library-content-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.hero-library-search-wrap {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-library-search-card {
  width: 100%;
  max-width: 760px;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  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 15rem;
}

.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;
}

.hero-library-copy {
  min-width: 0;
  display: flex;
  align-items: center;
}

.hero-library-title {
  margin: 0;
  color: #ffffff;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 2.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: left;
  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: 16ch;
}

@media (max-width: 1199.98px) {
  .hero-library,
  .hero-library-inner {
    min-height: 340px;
  }

  .hero-library-content-row {
    grid-template-columns: minmax(300px, 1fr) minmax(240px, 0.78fr);
    gap: 1.5rem;
  }

  .hero-library-search-card {
    max-width: 700px;
  }

  .hero-library-search-field-scope {
    flex-basis: 13rem;
  }

  .hero-library-title {
    font-size: clamp(1.65rem, 2.2vw, 2.2rem);
    max-width: 15ch;
  }
}

@media (max-width: 991.98px) {
  .hero-library,
  .hero-library-inner {
    min-height: 0;
  }

  .hero-library-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero-library-content-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    align-items: start;
  }

  .hero-library-search-wrap,
  .hero-library-copy {
    justify-content: stretch;
  }

  .hero-library-search-card {
    max-width: none;
    padding: 0.85rem 0.9rem 0.8rem;
    border-radius: 0.85rem;
  }

  .hero-library-title {
    max-width: 18ch;
    font-size: clamp(1.45rem, 3vw, 2rem);
  }

  .hero-library-search-heading {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }

  .hero-library-search-row {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .hero-library-search-field-query,
  .hero-library-search-field-scope,
  .hero-library-search-field-button {
    flex: 1 1 100%;
  }

  .hero-library-search-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .hero-library-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(10, 24, 18, 0.52) 0%,
        rgba(10, 24, 18, 0.42) 42%,
        rgba(10, 24, 18, 0.52) 100%
      );
  }

  .hero-library-inner {
    padding-top: 0.95rem;
    padding-bottom: 0.9rem;
  }

  .hero-library-title {
    max-width: none;
    font-size: 1.65rem;
    line-height: 1.1;
  }

  .hero-library-search-card {
    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-input,
  .hero-library-select,
  .hero-library-search-button {
    height: 2.8rem;
    font-size: 0.96rem;
    border-radius: 0.6rem;
  }

  .hero-library-links {
    gap: 0.35rem 0.7rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
  }

  .hero-library-link {
    font-size: 0.87rem;
  }
}

@media (max-width: 575.98px) {
  .hero-library-inner {
    padding-top: 0.85rem;
    padding-bottom: 0.8rem;
  }

  .hero-library-title {
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .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;
  }
}

/* END HERO */


/* 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: 991.98px) {
  .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) {
  .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) {
  .hours-widget-wrap {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .icon-link img {
    height: 36px;
  }

  .icon-link div {
    font-size: 0.9rem;
  }
}
