/* =========================================================================
   Unified Blog Shortcode Styles
   Used by [hlb_fa_blog], [hlb_dh_blog], [hlb_he_blog].

   Key contacts cards intentionally have NO rules here — they reuse the
   keyContactsWrapDH / professionals_item markup styled in custom.css, so
   they match [key_contacts_cap] output exactly. Same for the CTA button,
   which uses the sitewide .btn.dark-blue-text.salmon-background-light
   classes from custom.css.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Layout grid
   Desktop: posts left (2fr), sidebar right (1fr).
   Mobile (<=900px): filters, posts, CTA, contacts — stacked in that order.
   grid-template-areas handles the reorder; no duplicate DOM, no JS.
   ------------------------------------------------------------------------- */

.hlb-blog {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    'posts filters'
    'posts cta'
    'posts contacts';
  gap: 0 80px;
  padding: 0 36px;
  align-items: start;
  font: normal 400 15px/25px 'GothamHTF', sans-serif;
  color: #211F21;
}


.hlb-blog-area-filters  { grid-area: filters; }
.hlb-blog-area-posts    { grid-area: posts; }
.hlb-blog-area-cta      { grid-area: cta; }
.hlb-blog-area-contacts { grid-area: contacts; }

@media (max-width: 900px) {
  .hlb-blog {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      'filters'
      'posts'
      'cta'
      'contacts';
    gap: 0;
    padding: 0;
  }

  .hlb-blog-area-filters {
    margin-bottom: 30px;
  }

  .hlb-blog-area-posts {
    margin-bottom: 30px;
  }
}

/* -------------------------------------------------------------------------
   Post entry
   ------------------------------------------------------------------------- */

/* Posts column capped like the live HE .health_equity_wrapper. */
.hlb-blog-posts {
  max-width: 698px;
}

/* 50px between posts, matching the live HE wrapper's flex gap. */
.hlb-blog-post {
  margin-bottom: 50px;
}

.hlb-blog-post:last-child {
  margin-bottom: 0;
}

/* Date above the title: uppercase, hover state. */
.hlb-blog-post-date {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hlb-blog-post-date a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hlb-blog-post-date a:hover,
.hlb-blog-post-date a:focus {
  color: #1CA5A1;
}

.hlb-blog-post-title {
  margin: 0 0 5px;
  max-width: 535px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hlb-blog-post-title {
    font-size: 16px;
    line-height: 19px;
  }
}

.hlb-blog-post-title a,
.hlb-blog-post-title a:hover,
.hlb-blog-post-title a:focus,
.hlb-blog-post-title a:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
}

.hlb-blog-post-title a:hover {
  color: #1CA5A1;
}

.hlb-blog-post-title a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.hlb-blog-post-body {
  margin-bottom: 15px;
}

/* Live HE underlines in-content links. */
.hlb-blog-post-body a {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Per-post professionals (Fraud & Abuse)
   Card classes inside (.professional_designation, .professionalLocation)
   inherit type rules already present in custom.css.
   ------------------------------------------------------------------------- */

.hlb-post-pros {
  margin: 20px 0;
}

.hlb-post-pros-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .hlb-post-pros-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hlb-post-pro-card a {
  text-decoration: none;
  color: inherit;
}

.hlb-post-pro-card img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 0;
}

.hlb-post-pro-card .hlb-post-pro-name {
  margin: 0 0 3px;
  font-size: 18px;
  line-height: 22px;
}

.hlb-post-pro-card .professional_designation {
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 5px;
}

.hlb-post-pro-card .professionalLocation {
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* Text fallback when a post tags more than 15 professionals. */
.hlb-post-pros-text {
  font-size: 14px;
  line-height: 1.6;
}

.hlb-post-pros-text a {
  text-decoration: none;
}

.hlb-post-pros-text a:hover,
.hlb-post-pros-text a:focus {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Filters
   ------------------------------------------------------------------------- */

.hlb-blog .hlb-blog-filter-label {
  margin: 0;
  padding: 30px 0 6px;
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
}

.hlb-blog .hlb-blog-filters .hlb-blog-filter-label:first-child {
  padding-top: 0;
}

.hlb-blog-filters select {
  width: 100%;
  height: 50px;
  padding: 0 40px 0 15px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #211f21;
  /* The theme styles selects with a repeating background-image arrow,
     which tiles chevrons across the control. Reset appearance and draw
     one chevron of our own. */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23211f21' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
  border-radius: 0;
}

.hlb-blog-filters select::-ms-expand {
  display: none;
}

/* -------------------------------------------------------------------------
   CTA
   Button styling comes from custom.css; this only handles spacing.
   ------------------------------------------------------------------------- */

.hlb-blog-cta {
  margin-top: 40px;
}

/* -------------------------------------------------------------------------
   Contributors text list (Health Equity)
   ------------------------------------------------------------------------- */

.hlb-blog-contributors {
  margin-top: 40px;
}

.hlb-blog-contributors-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hlb-blog-contributors-list li {
  list-style: none;
  margin-bottom: 8px;
}

.hlb-blog-contributors-list a {
  font-size: 14px;
  text-decoration: none;
}

.hlb-blog-contributors-list a:hover,
.hlb-blog-contributors-list a:focus {
  text-decoration: underline;
}

/* Sidebar key contacts cards stack one per row inside the grid column. */
.hlb-blog-area-contacts .keyContactsWrapDH {
  margin-top: 40px;
}

/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */

.hlb-blog-pagination {
  display: inline-flex;
  flex-wrap: wrap;
  margin-top: 40px;
  border: 1px solid #ddd;
}

.hlb-blog-page-link {
  display: inline-block;
  min-width: 40px;
  padding: 10px 14px;
  border-right: 1px solid #ddd;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, background 0.2s ease;
}

.hlb-blog-pagination .hlb-blog-page-link:last-child {
  border-right: 0;
}

.hlb-blog-page-link:hover,
.hlb-blog-page-link:focus {
  background: #f5f5f5;
  text-decoration: none;
}

.hlb-blog-page-current {
  color: #1CA5A1;
  cursor: default;
}

/* -------------------------------------------------------------------------
   Empty / loading states
   ------------------------------------------------------------------------- */

.hlb-blog-empty,
.hlb-blog-loading {
  padding: 20px 0;
  font-size: 16px;
}
