/**
 * Blog listing page search.
 */
.view-id-blog,
.view-blog {
  width: 100%;
}

.blog-view-heading-hidden {
  display: none !important;
}

.blog-search-form {
  display: block;
  width: 100%;
}

.blog-search-form .form-item {
  position: relative;
  width: 100%;
  margin: 0;
}

.blog-search-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-listing-controls {
  display: flex;
  flex-direction: column;
  width: 100%;
  order: 0;
}

/* Match Podcast filter buttons and keep them below the search field. */
.blog-category-filter-block {
  width: 100%;
  margin: 0 0 30px !important;
  padding: 0 !important;
  text-align: center;
  box-sizing: border-box;
}

.blog-category-filter-block [class*="js-view-dom-id"] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.blog-category-filter-block header {
  width: 100%;
  margin: 0 0 12px;
}

.blog-category-filter-block .views-row {
  display: contents;
}

.blog-category-filter-block .views-field,
.blog-category-filter-block .field-content {
  display: contents;
}

#block-lifetime11-views-block-blog-categories-block .field-content a,
#block-lifetime11-views-block-blog-categories-block .views-row > a {
  display: inline-block;
  min-width: fit-content;
  padding: 10px 20px;
  border: none;
  background-color: #86b830;
  color: white !important;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

#block-lifetime11-views-block-blog-categories-block .field-content a:hover,
#block-lifetime11-views-block-blog-categories-block .field-content a:focus-visible,
#block-lifetime11-views-block-blog-categories-block .views-row > a:hover,
#block-lifetime11-views-block-blog-categories-block .views-row > a:focus-visible {
  background-color: #6f9a26;
  color: white !important;
  text-decoration: none;
}

#block-lifetime11-views-block-blog-categories-block .field-content a.is-active,
#block-lifetime11-views-block-blog-categories-block .field-content a[aria-current],
#block-lifetime11-views-block-blog-categories-block .views-row > a.is-active,
#block-lifetime11-views-block-blog-categories-block .views-row > a[aria-current] {
  background-color: #109bd2 !important;
  color: white !important;
}

.views-row.blog-search-hidden {
  display: none;
}

@media (max-width: 600px) {
  .blog-search-wrapper {
    width: 100%;
    margin-bottom: 24px;
  }

  #block-lifetime11-views-block-blog-categories-block .field-content a,
  #block-lifetime11-views-block-blog-categories-block .views-row > a {
    width: 100%;
    white-space: normal;
  }
}

