.content-archive { color: var(--ink); background: #fff; }
.content-archive .knowledge-hero h1,
.content-archive .news-hero h1 { max-width: 1100px; }
.content-archive .knowledge-hero h1 em,
.content-archive .news-hero h1 em { display: inline-block; margin-top: .12em; }

.category-filters a,
.update-filters a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.category-filters a span,
.update-filters a span { color: var(--blue-deep); font-size: .65rem; font-weight: 800; }
.category-filters a:hover,
.category-filters a:focus-visible,
.category-filters a.is-active,
.update-filters a:hover,
.update-filters a:focus-visible,
.update-filters a.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.category-filters a:hover span,
.category-filters a:focus-visible span,
.category-filters a.is-active span,
.update-filters a:hover span,
.update-filters a:focus-visible span,
.update-filters a.is-active span { color: var(--ci-blue); }

.content-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  background:
    radial-gradient(circle at 78% 22%, rgb(var(--ci-blue-rgb) / .32), transparent 30%),
    linear-gradient(135deg, var(--ci-surface-blue), #f6fafc);
}
.featured-media .content-image-placeholder,
.content-feature-media .content-image-placeholder { min-height: 100%; }
.content-feature-media { overflow: hidden; }
.content-feature-media img,
.update-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s ease; }
.content-feature-media:hover img,
.update-card-media:hover img { transform: scale(1.025); }
.update-card-media { background: var(--ci-surface); }

/* Editorial length controls keep archive rows predictable across Thai and English. */
.featured-copy h2,
.featured-update-copy h2,
.knowledge-card h3,
.update-card h3,
.content-card strong,
.featured-copy > p:not(.eyebrow),
.featured-update-copy > p:not(.eyebrow),
.knowledge-card-copy > p:not(.knowledge-category),
.update-card-copy > p:not(.update-type),
.content-card-copy > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}
.featured-copy h2,
.featured-update-copy h2 { -webkit-line-clamp: 3; }
.featured-copy > p:not(.eyebrow),
.featured-update-copy > p:not(.eyebrow) { -webkit-line-clamp: 4; }
.knowledge-card h3,
.update-card h3,
.content-card strong { -webkit-line-clamp: 3; }
.knowledge-card-copy > p:not(.knowledge-category),
.update-card-copy > p:not(.update-type),
.content-card-copy > span { -webkit-line-clamp: 3; }

@media (min-width: 901px) {
  .featured-update { height: 690px; min-height: 0; overflow: hidden; }
  .featured-update-media { height: 100%; min-height: 0; }
  .featured-article { height: clamp(580px, 36vw, 680px); min-height: 0; overflow: hidden; }
  .featured-media { height: 100%; min-height: 0; }
  .update-card {
    height: clamp(390px, 23vw, 440px);
    min-height: 0;
    overflow: hidden;
  }
  .update-card-media { height: 100%; min-height: 0; align-self: stretch; }
  .update-card-copy { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px 26px; padding: clamp(28px, 3vw, 52px); }
  .update-card h3 { font-size: clamp(1.65rem, 2vw, 2.8rem); }
}

.content-empty {
  display: grid;
  gap: 10px;
  padding: clamp(38px, 6vw, 76px);
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
}
.content-empty strong { color: var(--ink); font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 400; }
.archive-results-empty { scroll-margin-top: 100px; }

.content-pagination { margin-top: clamp(38px, 6vw, 72px); }
.content-pagination .page-numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.content-pagination a,
.content-pagination span {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}
.content-pagination .current,
.content-pagination a:hover,
.content-pagination a:focus-visible { color: #fff; border-color: var(--ink); background: var(--ink); }

/* Compact cards reused by the Professionals training section. */
.content-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.content-card { min-height: 100%; display: flex; flex-direction: column; color: var(--ink); border: 1px solid var(--line); background: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.content-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgb(var(--ci-navy-rgb) / .12); }
.content-card > img,
.content-card > .content-image-placeholder { width: 100%; min-height: 0; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.content-card-copy { padding: 26px; display: flex; flex: 1; flex-direction: column; }
.content-card time { color: var(--blue-deep); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.content-card strong { margin: 13px 0 10px; font-size: clamp(21px, 2vw, 29px); line-height: 1.35; }
.content-card-copy > span { color: var(--muted); line-height: 1.7; }
.content-card b { margin-top: 25px; color: var(--blue-deep); font-size: 13px; }

@media (max-width: 900px) {
  .content-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-filters,
  .update-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; padding-bottom: 10px; scrollbar-width: none; }
  .category-filters::-webkit-scrollbar,
  .update-filters::-webkit-scrollbar { display: none; }
  .category-filters a,
  .update-filters a { flex: 0 0 auto; }
  .featured-update,
  .featured-article,
  .update-card { height: auto; overflow: visible; }
}
@media (max-width: 620px) {
  .content-card-grid { grid-template-columns: 1fr; }
  .content-archive .knowledge-hero h1 em,
  .content-archive .news-hero h1 em { font-size: clamp(2.35rem, 13vw, 4.6rem); }
}
