/* ========================================================
   AXL “Resource Hub” dark theme shell (with Integrated Title)
   ======================================================== */

/* ---------- Shell ---------- */
.resource-hub-wrapper {
  background: #0e0e0e;
  padding: 0 0 96px 0;
  font-family: "Switzer", sans-serif;
  color: #fff;
  scroll-margin-top: 120px;
}
.resource-hub-wrapper > * {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Title Block ---------- */
.resource-hub__title-wrapper {
  text-align: center;
  padding: 60px 20px 84px;
}
.resource-hub__sub-headline {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}
.resource-hub__main-headline {
  font-weight: bold;
  font-size: 84px;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
}

/* ---------- Search bar ---------- */
.resource-hub__search {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.resource-hub__search input {
  flex: 1 1 320px;
  max-width: 480px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #2a2a2a;
  background: #151515;
  color: #fff;
}

/* ---------- Cards grid core ---------- */
.hs-content-library {
  display: grid;
  gap: 24px;
}
@media (min-width: 1026px) {
  .hs-content-library { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1025px) and (min-width: 768px) {
  .hs-content-library { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Card styling & typography ---------- */
.hs-content-library__card {
  background: #151515;
  border: 1px solid #2a2a2a;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}
.hs-content-library__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.hs-content-library__image {
  margin-bottom: 16px;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #111;
}
.hs-content-library__image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border-radius: inherit !important;
}

.resource-hub-wrapper .hs-content-library__subtext {
  font-size: 14px !important;
  color: #9e9e9e !important;
  margin: 0 0 8px !important;
}
.resource-hub-wrapper .hs-content-library__title {
  font-size: 18px !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  margin: 0 0 8px;
}
.resource-hub-wrapper .hs-content-library__description {
  font-size: 16px !important;
  color: #9e9e9e !important;
  margin: 0 0 16px !important;
}

/* ---------- CTA button (compact pill → ghost on hover) ---------- */
.resource-hub-wrapper .hs-content-library__link {
  display: inline-block !important;
  padding: 8px 16px !important;
  background-color: #ffffff !important;
  color: #0e0e0e !important;
  border: 1px solid #ffffff !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  margin-top: auto !important;
  align-self: flex-start;
}
.resource-hub-wrapper .hs-content-library__link:hover,
.resource-hub-wrapper .hs-content-library__link:focus {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  transform: scale(1.03);
}

/* ---------- Empty-state ---------- */
.no-results-message {
  text-align: center;
  margin-top: 24px;
  color: #ccc;
  font-size: 16px;
}

/* ---------- Accessibility & Fallbacks ---------- */
.resource-hub__search input:focus-visible,
.resource-hub-wrapper .hs-content-library__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
@supports not (gap: 8px) {
  .resource-hub__search > * + * { margin-left: 8px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .hs-content-library { grid-template-columns: 1fr; }
  .resource-hub-wrapper .hs-content-library__title { font-size: 16px !important; }
  .resource-hub__title-wrapper { padding: 60px 20px 48px; }
  .resource-hub__main-headline { font-size: 48px; }
}

/* ---------- Search hiding ---------- */
.hs-content-library__card.is-hidden-by-search { display: none; }