/* =========================================================
   BLOG PAGE (NEWSROOM) — ARTICLE LISTING
   Filter pills, live count, responsive card grid, empty
   state
   ========================================================= */

.blg-listing {
  position: relative;
  z-index: 1;
  margin-top: -100px;
  background: linear-gradient(
    180deg,
    rgba(246, 247, 250, 0) 0,
    var(--blg-soft) 100px
  );
  padding: clamp(164px, calc(9vw + 100px), 220px) 0  clamp(64px, 9vw, 120px);
}

/* ---------- Filters ---------- */

.blg-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.blg-filter {
  padding: 9px 18px;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;

  color: var(--blg-muted);
  background: #ffffff;
  border: 1px solid var(--blg-line);
  border-radius: 24px;

  cursor: pointer;

  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.blg-filter:hover {
  border-color: #1c1c22;
  color: #1c1c22;
}

.blg-filter.is-active {
  color: #ffffff;
  background: #1c1c22;
  border-color: #1c1c22;
}

.blg-filter:focus-visible {
  outline: 3px solid #1c1c22;
  outline-offset: 3px;
}

/* ---------- Count ---------- */

.blg-count {
  margin: 0 0 34px;
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  color: #57576a;
}

/* ---------- Grid ---------- */

.blg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 1.6vw, 20px);
}

/* ---------- Card — mirrors the careers featured strip ---------- */

.blg-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;

  background: #ffffff;
  border: 1px solid var(--blg-line);
  border-radius: 20px;
  overflow: hidden;

  text-decoration: none;
  color: inherit;

  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* alternate the image side on every other row */
.blg-card:nth-child(even) {
  grid-template-columns: 1.1fr 0.9fr;
}

.blg-card:nth-child(even) .blg-card-media {
  order: 2;
}

.blg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(7, 20, 61, 0.14);
}

/* ---------- Media ---------- */

.blg-card-media {
  min-height: clamp(150px, 17vw, 210px);
  background-size: cover;
  background-position: center;
}

/* ---------- Body ---------- */

.blg-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  padding: clamp(20px, 2.6vw, 36px) clamp(20px, 2.6vw, 40px);
}

.blg-card-cat {
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #1c1c22;
  margin: 0 0 10px;
}

.blg-card-title {
  font-family: "Geist", "Inter", sans-serif;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;

  color: var(--blg-ink);
  margin: 0 0 8px;
  max-width: 22ch;
}

.blg-card-meta {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--blg-muted);
  margin: 0 0 8px;
}

.blg-card-text {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;

  color: var(--blg-muted);
  margin: 8px 0 16px;
  max-width: 52ch;
}

/* ---------- More link ---------- */

.blg-card-more {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  font-weight: 600;

  color: #1c1c22;
  transition: color 0.25s ease;
}

.blg-card-more > span[aria-hidden="true"] {
  transition: transform 0.25s ease;
}

/* Underline that wipes in from the left on card hover.
   The rule lives on the text span so it tracks the label only
   and never stretches across the arrow glyph. */

.blg-card-more-text {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.blg-card-more-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 1.5px;

  background: currentColor;
  border-radius: 2px;

  transform: scaleX(0);
  transform-origin: left center;

  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.blg-card:hover .blg-card-more {
  color: #000000;
}

.blg-card:hover .blg-card-more-text::after {
  transform: scaleX(1);
}

.blg-card:hover .blg-card-more > span[aria-hidden="true"] {
  transform: translateX(4px);
}

/* ---------- Empty state ---------- */

.blg-empty {
  display: none;
}

.blg-empty.is-visible {
  display: block;

  padding: 46px 26px;
  text-align: center;

  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #57576a;

  background: #ffffff;
  border: 1px dashed #d5d8dd;
  border-radius: 16px;
}

.blg-empty-clear {
  display: block;
  margin: 18px auto 0;
  padding: 10px 20px;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;

  color: #1c1c22;
  background: transparent;
  border: 1px solid #1c1c22;
  border-radius: 999px;
  cursor: pointer;

  transition: background 0.2s ease, color 0.2s ease;
}

.blg-empty-clear:hover {
  background: #f0f0f4;
  color: #000000;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .blg-card,
  .blg-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .blg-card:nth-child(even) .blg-card-media {
    order: 0;
  }

  .blg-card-media {
    min-height: 200px;
  }
}

@media (max-width: 620px) {
  .blg-filters {
    justify-content: flex-start;
  }
}

/* =========================================================
   PRESS RELEASE LISTING — Grid variant
   Used on /services/press-release/ page
   ========================================================= */

.blg-section {
  background: var(--blg-soft);
  padding: clamp(64px, 9vw, 120px) 0;
}

.blg-section .blg-container {
  max-width: 1280px;
}

.blg-section .blg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.blg-section .blg-card {
  grid-template-columns: 1fr;
}

.blg-section .blg-card:nth-child(even) {
  grid-template-columns: 1fr;
}

.blg-section .blg-card:nth-child(even) .blg-card-media {
  order: 0;
}

.blg-section .blg-card-media {
  min-height: 200px;
}

.blg-section .blg-card-body {
  padding: 24px;
  justify-content: flex-start;
}

.blg-section .blg-card-title {
  max-width: none;
}

.blg-section .blg-card-text {
  max-width: none;
}

/* View all / back link */
.blg-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 2px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--blg-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--blg-ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.blg-view-all:hover {
  color: var(--blg-blue);
  border-color: var(--blg-blue);
}

.blg-view-all svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.blg-view-all:hover svg {
  transform: translateX(-4px);
}

/* Pagination wrapper */
.blg-pagination {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .blg-section .blg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .blg-section .blg-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blg-card-more-text::after,
  .blg-card-more > span[aria-hidden="true"] {
    transition: none;
  }
}