/* Container */
.hsb-container {
  max-width: 1100px;
  padding: 0 24px;
  margin: 0 auto;
}

/* Hero */
.hsb-hero {
  margin-top: 8vh;
  padding: 72px 0 48px;
  background: #f6f6f8;
  color: #1b1b1b;
  position: relative;
}

.hsb-hero--search {
  background-size: cover;
  background-position: center;
}

.hsb-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  opacity: .7;
  display: inline-block;
  margin-bottom: 8px;
}

.hsb-hero__title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 700;
}

.hsb-hero__title em {
  font-style: normal;
  color: #fa9e0d;
}

.hsb-hero__subtitle {
  margin: 0 0 18px;
  opacity: .9;
}

/* Search bar */
.hsb-searchbar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.hsb-input {
  flex: 1;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0 14px;
}

.hsb-button {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #1b1b1b;
  background: #1b1b1b;
  color: #fff;
  cursor: pointer;
}

.hsb-button:hover {
  opacity: .92;
}

/* Section wrapper */
.hsb-section {
  padding: 60px 0 90px;
}

.hsb-results {
  margin-bottom: 10vh;
}

/* RESULTS GRID – New card layout */
.hsb-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

/* Card (matches child page card style) */
.hsb-card {
  background: #fff;
  flex: 1 1 calc(33.333% - 20px);
  max-width: 360px;
  height: auto;
  border: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .hsb-card {
    flex: 1 1 calc(50% - 20px);
    max-width: none;
  }
}

/* Mobile: 1 column */
@media (max-width: 680px) {
  .hsb-card {
    flex: 1 1 100%;
  }
}

/* Thumbnail */
.hsb-card__thumb img,
.hsb-card__placeholder {
  display: block;
  width: 100%;
  height: 16vw;
  object-fit: cover;
  background: #f1f1f4;
}

/* Card body */
.hsb-card__body {
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: relative;
	padding-bottom: 60px;
	height: 100%;
}

/* Meta row */
.hsb-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #5a5a5a;
}

.hsb-badge {
	background: #B2D9F6;
	color: #001e45;
    font-size: 12px;
    padding: 0px 14px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .08em;
	position: absolute;
	top: -50px;
	right: 15px;
}

/* Title */
.hsb-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #002b5c;
  margin: 0 0 10px;
}

.hsb-card__title a {
  color: inherit;
  text-decoration: none;
}

.hsb-card__title a:hover {
  text-decoration: underline;
}

/* Excerpt */
.hsb-card__excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 20px;
}

/* Read more link */
.hsb-card__link {
  font-weight: bold;
  color: #002b5c;
  text-decoration: underline;
  align-self: flex-start;
  position: absolute;
  bottom: 20px;
}

/* Hover animation */
.hsb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

/* Highlighted search terms */
.hsb-mark {
  background: #fff0a6;
}

/* Pagination */
.hsb-pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
  align-items: center;
}

.hsb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #002b5c;
  border-radius: 10px;
  text-decoration: none;
  padding: 0 10px;
  font-size: 16px;
  color: #002b5c;
}

.hsb-pagination .current {
  background: #fa9e0d;
  color: #002b5c;
  border-color: #fa9e0d;
}

/* Empty state */
.hsb-empty {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.hsb-empty h2 {
  margin: 0 0 8px;
}

.hsb-list {
  margin: 8px 0 0;
  padding-left: 18px;
  text-align: left;
}

/* Search form in header fallback */
.search-field {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 5px 10px;
}

.search-submit {
  border: 0;
}

.search-icon-btn-form {
  filter: brightness(0) saturate(100%) invert(8%) sepia(83%) saturate(2860%) hue-rotate(199deg) brightness(91%) contrast(106%);
}
