/* Image-first article cards for /kien-thuc/. Scoped to the knowledge hub. */
body.dvqc-site-shell .dvqc-knowledge__platforms,
body.dvqc-site-shell .dvqc-knowledge__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

body.dvqc-site-shell .dvqc-knowledge__platform.dvqc-knowledge__card,
body.dvqc-site-shell .dvqc-knowledge__article.dvqc-knowledge__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 494px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce6ef;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(18, 47, 84, .035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.dvqc-site-shell .dvqc-knowledge__card:hover {
  transform: translateY(-3px);
  border-color: #b8d5ed;
  box-shadow: 0 14px 32px rgba(18, 47, 84, .09);
}
body.dvqc-site-shell .dvqc-knowledge__card[hidden],
body.dvqc-site-shell .dvqc-knowledge__group[hidden] {
  display: none !important;
}

body.dvqc-site-shell .dvqc-knowledge__card-media {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf2f7;
}
body.dvqc-site-shell .dvqc-knowledge__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
body.dvqc-site-shell .dvqc-knowledge__card:hover .dvqc-knowledge__card-media img {
  transform: scale(1.025);
}
body.dvqc-site-shell .dvqc-knowledge__card-media:focus-visible,
body.dvqc-site-shell .dvqc-knowledge__card h3 a:focus-visible,
body.dvqc-site-shell .dvqc-knowledge__card h4 a:focus-visible,
body.dvqc-site-shell .dvqc-knowledge__card-footer a:focus-visible {
  outline: 2px solid #0756c4;
  outline-offset: -3px;
}

body.dvqc-site-shell .dvqc-knowledge__card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 21px 23px 19px;
}
body.dvqc-site-shell .dvqc-knowledge__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 25px;
}
body.dvqc-site-shell .dvqc-knowledge__card-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 75%;
  padding: 5px 9px;
  border: 1px solid #c7e9ef;
  border-radius: 5px;
  background: #eefafb;
  color: #006e7e;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}
body.dvqc-site-shell .dvqc-knowledge__card-role {
  color: #6f7d91;
  font-size: 11px;
  white-space: nowrap;
}

body.dvqc-site-shell .dvqc-knowledge__card h3,
body.dvqc-site-shell .dvqc-knowledge__card h4 {
  margin: 21px 0 10px;
  color: #17233f;
  font-size: clamp(18px, 1.45vw, 21px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -.025em;
}
body.dvqc-site-shell .dvqc-knowledge__card h3 a,
body.dvqc-site-shell .dvqc-knowledge__card h4 a {
  display: inline;
  color: inherit !important;
  text-decoration: none !important;
}
body.dvqc-site-shell .dvqc-knowledge__card h3 a:hover,
body.dvqc-site-shell .dvqc-knowledge__card h4 a:hover {
  color: #0756c4 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
body.dvqc-site-shell .dvqc-knowledge__card .dvqc-knowledge__card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  margin: 0 0 20px;
  color: #45556d;
  font-size: 15px;
  line-height: 1.65;
}
body.dvqc-site-shell .dvqc-knowledge__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e5eaf0;
  color: #718098;
  font-size: 11px;
}
body.dvqc-site-shell .dvqc-knowledge__card .dvqc-knowledge__card-footer > span {
  color: #718098;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
body.dvqc-site-shell .dvqc-knowledge__card-footer a {
  color: #0756c4;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
body.dvqc-site-shell .dvqc-knowledge__card-footer a:hover {
  color: #006e7e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.dvqc-site-shell .dvqc-knowledge__card--lead {
  border-color: #bcdff2;
}

body.dvqc-site-shell .dvqc-knowledge__group {
  scroll-margin-top: 100px;
}
body.dvqc-site-shell .dvqc-knowledge__group-head {
  margin-bottom: 22px;
}
body.dvqc-site-shell .dvqc-knowledge__expand {
  margin-top: 24px;
}

@media (max-width: 1080px) {
  body.dvqc-site-shell .dvqc-knowledge__platforms,
  body.dvqc-site-shell .dvqc-knowledge__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  body.dvqc-site-shell .dvqc-knowledge__platforms,
  body.dvqc-site-shell .dvqc-knowledge__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
  body.dvqc-site-shell .dvqc-knowledge__platform.dvqc-knowledge__card,
  body.dvqc-site-shell .dvqc-knowledge__article.dvqc-knowledge__card {
    min-height: 0;
  }
  body.dvqc-site-shell .dvqc-knowledge__card-body {
    padding: 19px 19px 18px;
  }
  body.dvqc-site-shell .dvqc-knowledge__card h3,
  body.dvqc-site-shell .dvqc-knowledge__card h4 {
    font-size: 19px;
    margin-top: 18px;
  }
  body.dvqc-site-shell .dvqc-knowledge__card .dvqc-knowledge__card-excerpt {
    font-size: 14.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.dvqc-site-shell .dvqc-knowledge__card,
  body.dvqc-site-shell .dvqc-knowledge__card-media img {
    transition: none;
  }
}
