/* Shared post cards and the WordPress archive. */
.post-image {
  position: relative;
}
.image-demo-caption {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: #071426;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
}
.article-featured .image-demo-caption {
  position: static;
  border-radius: 0 0 6px 6px;
}
.archive-hero {
  overflow: hidden;
  isolation: isolate;
  padding-block: 75px;
}
.archive-heading {
  position: relative;
  z-index: 2;
}
.archive-heading h1 {
  max-width: 850px;
  font-size: clamp(2.4rem, 4.25vw, 4rem);
  line-height: 1.13;
}
.archive-heading p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: 16px;
}
.archive-description {
  max-width: 700px;
}
.archive-description a {
  text-decoration: underline;
}
.archive-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 40%;
  opacity: 0.7;
}
.archive-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.archive-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #031027, transparent 90%);
}
.archive-section {
  background: linear-gradient(180deg, #fff, #f7f9fc);
}
.archive-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 35px;
}
.archive-toolbar .search-form {
  width: 245px;
  flex-shrink: 0;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-nav a {
  display: block;
  padding: 11px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.category-nav a:hover {
  color: #334dc9;
  background: #f5f7ff;
}
.category-nav a[aria-current] {
  color: #2b4ed1;
  border-color: #ccd9fc;
  background: #eff4ff;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.post-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgb(7 38 83 / 3%);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 35px rgb(7 38 83 / 9%);
}
.post-image {
  display: block;
  aspect-ratio: 1.65;
  background: #071831;
  overflow: hidden;
}
.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s;
}
.post-card:hover .post-image img {
  transform: scale(1.04);
}
.post-card:nth-child(3n + 2) .post-fallback.is-fallback {
  filter: hue-rotate(20deg);
}
.post-card:nth-child(3n + 3) .post-fallback.is-fallback {
  filter: hue-rotate(-20deg);
}
.post-card-body {
  padding: 23px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #5e6f85;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.5;
  margin-bottom: 12px;
}
.post-meta a {
  color: #415dc3;
}
.post-meta a:hover {
  text-decoration: underline;
}
.post-card h3 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.post-card h3 a:hover {
  color: #3858d3;
}
.post-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 19px;
}
.post-card .text-link {
  margin-top: auto;
  font-size: 11px;
}
.pagination {
  margin-top: 45px;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}
.page-numbers.current {
  color: #fff;
  background: #0a2f60;
  border-color: #0a2f60;
}
.page-numbers:hover:not(.current) {
  background: #eaf2ff;
}
@media (max-width: 1024px) {
  .post-card-body {
    padding: 20px;
  }
  .post-card h3 {
    font-size: 17px;
  }
  .post-grid {
    gap: 20px;
  }
  .archive-toolbar {
    flex-direction: column;
  }
  .archive-toolbar .search-form {
    width: 100%;
  }
  .archive-hero {
    padding-block: 65px;
  }
}
@media (max-width: 768px) {
  .archive-hero {
    padding-block: 55px;
  }
  .archive-hero-art {
    inset-inline-start: 15%;
    opacity: 0.3;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-nav {
    gap: 5px;
  }
  .category-nav a {
    padding: 9px 12px;
  }
}
@media (max-width: 540px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .post-card h3 {
    font-size: 20px;
  }
  .post-card-body {
    padding: 23px;
  }
  .post-meta {
    font-size: 10px;
  }
  .archive-heading h1 {
    font-size: 2.2rem;
  }
  .archive-heading p:not(.eyebrow) {
    font-size: 14px;
  }
}
