/* 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(0, 760px) max-content;
  gap: 0.75rem;
  align-items: center;
  justify-content: start;
}

.hero-library-search-wrap {
  min-width: 0;
  width: auto;
  display: flex;
  justify-content: flex-start;
}

.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;
  justify-content: flex-start;
}

.hero-library-title {
  margin: 0;
  color: #ffffff;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 2.4vw, 2.55rem);
  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: 11ch;
}

@media (max-width: 1199.98px) {
  .hero-library,
  .hero-library-inner {
    min-height: 340px;
  }

  .hero-library-content-row {
    grid-template-columns: minmax(0, 700px) max-content;
    gap: 0.9rem;
  }

  .hero-library-search-card {
    max-width: 700px;
  }

  .hero-library-search-field-scope {
    flex-basis: 13rem;
  }

  .hero-library-title {
    font-size: clamp(1.6rem, 2.1vw, 2.15rem);
    max-width: 10ch;
  }
}

@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: 1.2rem;
    align-items: start;
  }

  .hero-library-search-wrap,
  .hero-library-copy {
    justify-content: stretch;
  }

  .hero-library-search-wrap {
    width: 100%;
  }

  .hero-library-search-card {
    max-width: none;
    padding: 0.9rem;
    border-radius: 0.85rem;
  }

  .hero-library-copy {
    padding-top: 0.2rem;
  }

  .hero-library-title {
    max-width: 16ch;
    font-size: clamp(1.55rem, 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.44) 0%,
        rgba(10, 24, 18, 0.34) 38%,
        rgba(10, 24, 18, 0.56) 100%
      );
  }

  .hero-library-inner {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .hero-library-content-row {
    gap: 0.9rem;
  }

  .hero-library-search-card {
    padding: 0.8rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.94);
  }

  .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-title {
    max-width: 14ch;
    font-size: 1.7rem;
    line-height: 1.08;
  }

  .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 {
    min-height: 0;
  }

  .hero-library-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.8rem;
  }

  .hero-library-content-row {
    gap: 0.8rem;
  }

  .hero-library-search-card {
    padding: 0.75rem;
    border-radius: 0.7rem;
  }

  .hero-library-search-heading {
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
  }

  .hero-library-input,
  .hero-library-select,
  .hero-library-search-button {
    height: 2.7rem;
    font-size: 0.95rem;
  }

  .hero-library-title {
    font-size: 1.45rem;
    line-height: 1.08;
    max-width: 13ch;
  }

  .hero-library-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .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;
  }
}


/* =========================================
   HERO TITLE / SEARCH SPACING QUICK PATCH
   Add at end of styles-home4.css
   ========================================= */

.hero-library-content-row {
  grid-template-columns: minmax(0, 760px) minmax(180px, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
}

.hero-library-copy {
  justify-content: flex-start;
  padding-left: clamp(0.5rem, 1.6vw, 1.5rem);
}

.hero-library-title {
  margin: 0;
  max-width: 8.5ch;
  color: #ffffff;
  text-align: left;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 2.8vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1199.98px) {
  .hero-library-content-row {
    grid-template-columns: minmax(0, 680px) minmax(160px, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
  }

  .hero-library-copy {
    padding-left: 0.5rem;
  }

  .hero-library-title {
    max-width: 9ch;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    line-height: 0.98;
  }
}

@media (max-width: 991.98px) {
  .hero-library-content-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-library-copy {
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 0.25rem;
  }

  .hero-library-title {
    max-width: 10ch;
    font-size: clamp(1.5rem, 4.6vw, 2.2rem);
    line-height: 1;
    text-align: right;
  }
}

@media (max-width: 767.98px) {
  .hero-library-inner {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .hero-library-content-row {
    gap: 0.8rem;
  }

  .hero-library-copy {
    padding-right: 0.15rem;
  }

  .hero-library-title {
    max-width: 9ch;
    font-size: clamp(1.3rem, 5.4vw, 1.85rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
  }
}

@media (max-width: 575.98px) {
  .hero-library-title {
    max-width: 8ch;
    font-size: clamp(1.15rem, 5.8vw, 1.55rem);
    line-height: 1.03;
  }

  .hero-library-search-card {
    margin-right: 2.75rem;
  }
}

@media (max-width: 399.98px) {
  .hero-library-title {
    max-width: 7ch;
    font-size: 1.05rem;
    line-height: 1.04;
  }

  .hero-library-search-card {
    margin-right: 3.25rem;
  }
}

/* =========================================
   MOBILE HERO STACK: title above search box
   ========================================= */
@media (max-width: 767.98px) {
  .hero-library-inner {
    padding-top: 0.85rem;
    padding-bottom: 1rem;
  }

  .hero-library-content-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero-library-copy {
    order: -1;
    display: block;
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .hero-library-title {
    margin: 0 auto;
    max-width: 12ch;
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.02;
    text-align: center;
    color: #ffffff;
    text-shadow:
      0 2px 6px rgba(0, 0, 0, 0.55),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .hero-library-search-wrap {
    width: 100%;
    justify-content: center;
  }

  .hero-library-search-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 575.98px) {
  .hero-library-title {
    max-width: 11ch;
    font-size: clamp(1.35rem, 6.4vw, 1.8rem);
    line-height: 1.03;
  }

  .hero-library-search-card {
    margin-right: 0;
  }
}

@media (max-width: 399.98px) {
  .hero-library-title {
    max-width: 10ch;
    font-size: clamp(1.2rem, 6.8vw, 1.55rem);
  }
}

/* =========================================
   HERO TITLE WIDTH TUNING
   Loosen forced line breaks
   ========================================= */

.hero-library-title {
  max-width: 16ch;
}

@media (max-width: 1199.98px) {
  .hero-library-title {
    max-width: 15ch;
  }
}

@media (max-width: 767.98px) {
  .hero-library-title {
    max-width: 18ch;
  }
}

@media (max-width: 575.98px) {
  .hero-library-title {
    max-width: 16ch;
  }
}

@media (max-width: 399.98px) {
  .hero-library-title {
    max-width: 14ch;
  }
}

/* =========================================
   SMALL TABLET HERO STACK
   Put h1 above search box on narrow tablets
   ========================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-library-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero-library-content-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.95rem;
  }

  .hero-library-copy {
    order: -1;
    display: block;
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .hero-library-title {
    margin: 0 auto;
    max-width: 18ch;
    font-size: clamp(1.8rem, 4.2vw, 2.5rem);
    line-height: 1.02;
    text-align: center;
  }

  .hero-library-search-wrap {
    width: 100%;
    justify-content: center;
  }

  .hero-library-search-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

/* ==========================
   HOME PAGE BLOG WIDGET STYLES
   ========================== */

.promo-widget-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1rem 1.15rem;
}

.promo-widget-card .card-title,
.promo-widget-card .promo-widget-heading {
  margin-bottom: 0.9rem;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 600;
}

.promo-widget-card #s-lg-widget-1783103129416 {
  font-size: 0.98rem;
  line-height: 1.3;
}

.promo-widget-card #s-lg-widget-1783103129416 ul,
.promo-widget-card #s-lg-widget-1783103129416 ol {
  margin: 0;
  padding-left: 1.2rem;
}

.promo-widget-card #s-lg-widget-1783103129416 li {
  margin-bottom: 0.55rem;
  line-height: 1.3;
  color: #ffd872;
}

.promo-widget-card #s-lg-widget-1783103129416 li::marker {
  color: #ffd872;
}

.promo-widget-card #s-lg-widget-1783103129416 ul li a,
.promo-widget-card #s-lg-widget-1783103129416 ul li a:link,
.promo-widget-card #s-lg-widget-1783103129416 ul li a:visited {
  color: #ffd872 !important;
  text-decoration: none !important;
  text-underline-offset: 0.14em;
  line-height: 1.3;
}

.promo-widget-card #s-lg-widget-1783103129416 ul li a:hover,
.promo-widget-card #s-lg-widget-1783103129416 ul li a:focus,
.promo-widget-card #s-lg-widget-1783103129416 ul li a:focus-visible {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.promo-widget-card .promo-widget-more,
.promo-widget-card .promo-widget-more:link,
.promo-widget-card .promo-widget-more:visited {
  display: inline-block;
  margin-top: 0.8rem;
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.promo-widget-card .promo-widget-more:hover,
.promo-widget-card .promo-widget-more:focus,
.promo-widget-card .promo-widget-more:focus-visible {
  color: #ffd872;
}

.promo-widget-card .s-lg-w-more {
  display: none;
}