.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.articles-section {
  padding: 78px 0 92px;
  background: #fff;
}

.articles-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.articles-heading h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
}

.articles-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.blog-search {
  width: min(330px, 100%);
  height: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid #dfe3e9;
  border-radius: 4px;
  background: #fff;
}

.blog-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .09);
}

.blog-search input {
  min-width: 0;
  padding: 0 15px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.blog-search button {
  padding: 0 17px;
  color: #fff;
  border: 0;
  background: var(--brand);
  cursor: pointer;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar { display: none; }

.category-filters button {
  min-height: 36px;
  padding: 0 15px;
  color: #526071;
  border: 1px solid #dfe4eb;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.category-filters button:hover,
.category-filters button.is-active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(25, 38, 60, .06);
  transition: transform .25s, box-shadow .25s;
}

.article-card[hidden] { display: none; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(25, 38, 60, .11); }
.published-card-link { height: 100%; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.article-image { height: 190px; display: block; overflow: hidden; background: #edf1f6; }
.article-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s; }
.article-card:hover .article-image img { transform: scale(1.035); }
.article-copy { flex: 1; padding: 23px 24px 21px; display: flex; flex-direction: column; }
.article-copy h3 { margin: 0; color: var(--ink); font-size: 19px; line-height: 1.55; transition: color .2s; }
.article-card:hover h3 { color: var(--brand); }
.article-copy > p { margin: 12px 0 22px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #8a95a4; font-size: 12px; }
.article-meta b { padding: 4px 9px; color: var(--brand-dark); border-radius: 999px; background: #fff1e8; font-weight: 600; }
.blog-empty { margin: 30px 0 0; padding: 45px 20px; color: var(--muted); text-align: center; border: 1px dashed #d9dee6; background: var(--surface); }
.blog-empty[hidden] { display: none; }

.blog-pagination {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.blog-pagination[hidden] { display: none; }
.blog-pagination button,
.blog-pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; color: #536174; border: 1px solid #dce2e9; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.blog-pagination button:hover,
.blog-pagination button.is-active { color: #fff; border-color: var(--brand); background: var(--brand); }
.blog-pagination button:disabled { cursor: not-allowed; opacity: .45; }
#pagination-pages { display: flex; gap: 8px; }

.article-main { padding-top: 32px; background: #f6f8fb; }
.article-breadcrumb { width: min(1180px, calc(100% - 48px)); margin: 0 auto 24px; display: flex; gap: 9px; overflow: hidden; color: #758092; font-size: 13px; white-space: nowrap; }
.article-breadcrumb a { color: var(--brand-dark); }
.article-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.article-hero { position: relative; width: min(1180px, calc(100% - 48px)); min-height: 460px; margin: 0 auto; overflow: hidden; border-radius: 8px; background: #172033; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 18, 31, .85), rgba(11, 18, 31, .08) 70%); }
.article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero-copy { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 54px clamp(28px, 6vw, 70px); color: #fff; }
.article-hero-copy time { display: inline-block; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; background: var(--brand); font-size: 12px; }
.article-hero-copy h1 { max-width: 900px; margin: 0; color: #fff; font-size: clamp(30px, 5vw, 52px); line-height: 1.25; }
.article-layout { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 88px; }
.article-back { display: inline-block; margin-bottom: 22px; color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.article-body { padding: clamp(28px, 5vw, 64px); color: #2d3748; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 16px 42px rgba(22, 34, 52, .06); font-size: 16px; line-height: 1.95; }
.article-body > :first-child { margin-top: 0; }
.article-body > :last-child { margin-bottom: 0; }
.article-body h2 { margin: 2.1em 0 .75em; color: var(--ink); font-size: 28px; line-height: 1.4; }
.article-body h3 { margin: 1.8em 0 .65em; color: var(--ink); font-size: 22px; }
.article-body p { margin: 1.15em 0; }
.article-body a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { max-width: 100%; height: auto; border-radius: 5px; }
.article-body blockquote { margin: 1.6em 0; padding: 18px 22px; color: #5b6472; border-left: 4px solid var(--brand); background: #fff6ef; }
.article-body pre { padding: 18px; overflow: auto; color: #f4f6f8; border-radius: 5px; background: #172033; }
.article-body code { padding: 2px 5px; border-radius: 3px; background: #f1f3f6; }
.article-body pre code { padding: 0; background: transparent; }
.article-body li + li { margin-top: 8px; }
.article-related { margin-top: 34px; padding: 32px; border-top: 3px solid var(--brand); background: #fff; }
.article-related-kicker { margin: 0 0 6px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
.article-related h2 { margin: 0 0 20px; font-size: 24px; }
.article-related > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.article-related a { padding: 18px; display: grid; gap: 8px; color: inherit; border: 1px solid var(--line); text-decoration: none; }
.article-related a:hover { border-color: var(--brand); }
.article-related span { color: var(--muted); font-size: 12px; }
.article-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.article-footer-row p { color: #aeb7c3; }
.article-footer-row nav { display: flex; flex-wrap: wrap; gap: 22px; }
.article-footer-row nav a { color: #d8dde4; text-decoration: none; }
.article-footer-row nav a:hover { color: #fff; }

@media (max-width: 960px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-related > div { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .articles-section { padding: 56px 0 68px; }
  .articles-heading { align-items: stretch; flex-direction: column; }
  .blog-search { width: 100%; }
  .category-filters { flex-wrap: nowrap; margin-right: -20px; padding-right: 20px; overflow-x: auto; }
  .category-filters button { flex: none; }
  .article-grid { grid-template-columns: 1fr; }
  .article-image { height: 180px; }
  .article-breadcrumb,
  .article-hero,
  .article-layout { width: min(100% - 28px, 1180px); }
  .article-hero { min-height: 360px; }
  .article-hero-copy { padding: 28px 22px; }
  .article-body { padding: 27px 20px; font-size: 15px; }
  .article-body h2 { font-size: 23px; }
  .article-footer-row { align-items: flex-start; flex-direction: column; }
}
