/* Trang Kiến thức — scoped để không đụng style header/footer/site */
.page-kien-thuc {
  --kt-navy: #061b45;
  --kt-blue: #0565d8;
  --kt-line: #dce6f3;
  --kt-muted: #64748b;
  --kt-orange: #ff5a1f;
  --kt-surface: #f8fbff;
  color: var(--kt-navy);
  overflow-x: clip;
}

.page-kien-thuc a { color: inherit; text-decoration: none; }
.page-kien-thuc button,
.page-kien-thuc input { font: inherit; }
.page-kien-thuc .kt-container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.page-kien-thuc .kt-btn {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .2s ease;
}
.page-kien-thuc .kt-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(16, 75, 160, .16);
}
.page-kien-thuc .kt-btn.primary {
  background: linear-gradient(135deg, #066bd7, #0058bd);
  color: #fff;
}
.page-kien-thuc .kt-btn.orange {
  background: var(--kt-orange);
  color: #fff;
}
.page-kien-thuc .kt-btn.white {
  background: #fff;
  color: var(--kt-blue);
}
.page-kien-thuc .kt-btn.wide {
  width: 100%;
  margin-top: 10px;
}

/* Hero */
.page-kien-thuc .kt-hero {
  background: radial-gradient(circle at 75% 45%, #edf6ff 0, #f8fbff 28%, #fff 64%);
  border-bottom: 1px solid var(--kt-line);
  overflow: hidden;
}
.page-kien-thuc .kt-breadcrumbs {
  padding: 24px 0 12px;
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #60708b;
  align-items: center;
}
.page-kien-thuc .kt-breadcrumbs a:hover { color: var(--kt-blue); }
.page-kien-thuc .kt-hero-grid {
  min-height: 335px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 40px;
  align-items: center;
}
.page-kien-thuc .kt-hero-copy { padding-bottom: 26px; max-width: 770px; }
.page-kien-thuc .kt-hero-copy h1 {
  margin: 5px 0 15px;
  font-size: clamp(34px, 3.2vw, 45px);
  letter-spacing: -1.5px;
  line-height: 1.12;
  color: var(--kt-navy);
}
.page-kien-thuc .kt-hero-copy > p {
  color: #566783;
  line-height: 1.55;
  margin: 0 0 21px;
  max-width: 730px;
  font-size: 15px;
}
.page-kien-thuc .kt-search {
  height: 51px;
  border: 1px solid #c8d7e9;
  border-radius: 7px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 4px 5px 4px 14px;
  box-shadow: 0 2px 6px rgba(29, 73, 130, .04);
  max-width: 715px;
}
.page-kien-thuc .kt-search > span {
  color: #8293b0;
  font-size: 20px;
}
.page-kien-thuc .kt-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  color: var(--kt-navy);
  padding: 0 13px;
  background: transparent;
}
.page-kien-thuc .kt-search input::placeholder { color: #8797b1; }
.page-kien-thuc .kt-search button {
  height: 41px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--kt-blue);
  padding: 0 31px;
  cursor: pointer;
  font-weight: 700;
}
.page-kien-thuc .kt-hero-actions {
  margin-top: 19px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.page-kien-thuc .kt-hero-actions .kt-btn {
  min-width: 260px;
  justify-content: space-between;
}
.page-kien-thuc .kt-text-link {
  color: var(--kt-orange);
  font-weight: 700;
  font-size: 14px;
}
.page-kien-thuc .kt-text-link b { margin-left: 18px; font-size: 20px; }

.page-kien-thuc .kt-hero-visual {
  height: 310px;
  position: relative;
}
.page-kien-thuc .kt-orbit {
  position: absolute;
  border: 1px dotted #6b9aff;
  border-radius: 50%;
}
.page-kien-thuc .kt-orbit-one {
  width: 310px; height: 230px; top: 28px; left: 10px; transform: rotate(-10deg);
}
.page-kien-thuc .kt-orbit-two {
  width: 250px; height: 270px; top: 15px; left: 50px; transform: rotate(18deg);
}
.page-kien-thuc .kt-float-icon {
  position: absolute;
  width: 47px; height: 47px;
  border-radius: 50%;
  background: #edf4ff;
  border: 1px solid #c7d9fa;
  color: #5286ed;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 5px 12px rgba(40, 91, 180, .1);
}
.page-kien-thuc .kt-float-icon.scale { left: 50px; top: 27px; }
.page-kien-thuc .kt-float-icon.chart { right: 57px; top: 5px; }
.page-kien-thuc .kt-float-icon.shield { right: 15px; top: 100px; }
.page-kien-thuc .kt-paper {
  position: absolute;
  width: 145px; height: 105px;
  background: repeating-linear-gradient(#f9fbff 0 12px, #dbe7f8 13px 15px);
  border: 1px solid #a8c5ee;
  transform: rotate(13deg);
  border-radius: 3px;
}
.page-kien-thuc .kt-paper-a { left: 82px; bottom: 26px; }
.page-kien-thuc .kt-paper-b {
  left: 175px; bottom: 19px; transform: rotate(-5deg); width: 98px; height: 125px;
}
.page-kien-thuc .kt-laptop-art {
  position: absolute;
  width: 205px; height: 150px;
  left: 87px; top: 74px;
  transform: rotate(8deg);
  z-index: 3;
}
.page-kien-thuc .kt-screen {
  height: 120px;
  background: #0b2571;
  border-radius: 8px 8px 3px 3px;
  padding: 8px;
  box-shadow: 0 15px 25px rgba(3, 30, 90, .22);
  position: relative;
}
.page-kien-thuc .kt-screen::before {
  content: "";
  position: absolute;
  inset: 8px 8px 30px;
  background: white;
  border-radius: 3px;
}
.page-kien-thuc .kt-screen-brand {
  position: absolute;
  z-index: 2;
  left: 24px; top: 42px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--kt-navy);
}
.page-kien-thuc .kt-screen-brand span { color: #5d22e9; }
.page-kien-thuc .kt-keyboard {
  width: 235px; height: 37px;
  background: linear-gradient(#d9e4f5, #91a7ce);
  margin-left: -15px;
  transform: perspective(120px) rotateX(50deg);
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  border-radius: 0 0 8px 8px;
}
.page-kien-thuc .kt-magnifier {
  width: 78px; height: 78px;
  position: absolute;
  left: 160px; bottom: 12px;
  border: 9px solid #073f9d;
  background: rgba(255, 255, 255, .38);
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 3px 6px rgba(0, 30, 90, .35);
}
.page-kien-thuc .kt-magnifier i {
  position: absolute;
  width: 70px; height: 12px;
  background: #082f83;
  border-radius: 6px;
  right: -53px; bottom: -25px;
  transform: rotate(43deg);
  font-style: normal;
}

/* Content */
.page-kien-thuc .kt-knowledge {
  padding-top: 18px;
  padding-bottom: 40px;
}
.page-kien-thuc .kt-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(270px, 1fr);
  gap: 26px;
  align-items: start;
}
.page-kien-thuc .kt-main-column,
.page-kien-thuc .kt-sidebar {
  min-width: 0;
  max-width: 100%;
}
.page-kien-thuc .kt-article-card > a {
  display: block;
  height: 100%;
  color: inherit;
}
.page-kien-thuc h2 {
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--kt-navy);
}
.page-kien-thuc .kt-knowledge-title {
  margin: 12px 0 28px;
  text-align: center;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -.7px;
  color: var(--kt-navy);
}
.page-kien-thuc .kt-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.page-kien-thuc .kt-topic-card {
  border: 1px solid var(--kt-line);
  border-radius: 9px;
  padding: 20px 16px 17px;
  min-height: 350px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 11px;
  background: #fff;
  transition: .2s;
}
.page-kien-thuc .kt-topic-card:hover {
  border-color: #9dbbe9;
  box-shadow: 0 10px 30px rgba(34, 81, 150, .09);
  transform: translateY(-2px);
}
.page-kien-thuc .kt-topic-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  color: white;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}
.page-kien-thuc .kt-topic-icon.blue { background: #1755f4; }
.page-kien-thuc .kt-topic-icon.green { background: #0db35b; }
.page-kien-thuc .kt-topic-icon.purple { background: #8550bf; }
.page-kien-thuc .kt-topic-icon.orange { background: #ff8312; }
.page-kien-thuc .kt-topic-icon.teal { background: #10adb5; }
.page-kien-thuc .kt-topic-icon.indigo { background: #5655da; }
.page-kien-thuc .kt-topic-icon.pink { background: #e94b78; }
.page-kien-thuc .kt-topic-icon.cyan { background: #09a3a9; }
.page-kien-thuc .kt-topic-title { align-self: center; }
.page-kien-thuc .kt-topic-title strong,
.page-kien-thuc .kt-topic-title span { display: block; font-size: 12px; line-height: 1.35; }
.page-kien-thuc .kt-topic-title span { font-weight: 700; font-size: 13px; }
.page-kien-thuc .kt-topic-card ul {
  grid-column: 1 / -1;
  margin: 18px 0 12px;
  padding: 0;
  list-style: none;
  color: #34445e;
}
.page-kien-thuc .kt-topic-card li {
  font-size: 12px;
  margin: 0;
  position: relative;
  border-bottom: 1px solid #edf1f6;
}
.page-kien-thuc .kt-topic-card li:last-child { border-bottom: 0; }
.page-kien-thuc .kt-topic-card li::before {
  content: "›";
  position: absolute;
  left: 1px; top: 9px;
  color: #52637d;
  font-size: 18px;
  font-weight: 700;
}
.page-kien-thuc .kt-topic-card li a {
  display: block;
  padding: 11px 2px 11px 17px;
  line-height: 1.35;
  font-weight: 600;
  transition: .18s ease;
}
.page-kien-thuc .kt-topic-card li a:hover {
  color: var(--kt-blue);
  padding-left: 21px;
}
.page-kien-thuc .kt-empty-topic {
  display: block;
  padding: 11px 2px 11px 17px;
  color: #8797b1;
  font-weight: 600;
}
.page-kien-thuc .kt-topic-card > a {
  grid-column: 1 / -1;
  color: var(--kt-blue);
  font-weight: 700;
  font-size: 12px;
  align-self: end;
}
.page-kien-thuc .kt-topic-card > a b,
.page-kien-thuc .kt-section-heading a b { margin-left: 7px; }

.page-kien-thuc .kt-tool-panel,
.page-kien-thuc .kt-news-panel {
  border: 1px solid var(--kt-line);
  border-radius: 10px;
  padding: 17px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(20, 63, 115, .03);
}
.page-kien-thuc .kt-tool-panel h2,
.page-kien-thuc .kt-tool-panel h3,
.page-kien-thuc .kt-news-panel h2,
.page-kien-thuc .kt-news-panel h3 { margin-bottom: 12px; font-size: 20px; color: var(--kt-navy); }
.page-kien-thuc .kt-tool-list { display: grid; gap: 6px; }
.page-kien-thuc .kt-tool-list a {
  min-height: 45px;
  border: 1px solid #e1e8f2;
  border-radius: 7px;
  display: grid;
  grid-template-columns: 30px 1fr 16px;
  align-items: center;
  padding: 0 10px;
  transition: .2s;
}
.page-kien-thuc .kt-tool-list a:hover {
  background: #f4f8ff;
  border-color: #a8c8f4;
}
.page-kien-thuc .kt-tool-list span { color: var(--kt-blue); font-size: 16px; line-height: 1; }
.page-kien-thuc .kt-tool-list strong { font-size: 12px; }
.page-kien-thuc .kt-tool-list b { font-size: 22px; font-weight: 400; }

.page-kien-thuc .kt-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 19px;
  gap: 12px;
}
.page-kien-thuc .kt-section-heading h2,
.page-kien-thuc .kt-section-heading h3 { margin: 0; }
.page-kien-thuc .kt-section-heading > a {
  color: var(--kt-blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.page-kien-thuc .kt-article-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.page-kien-thuc .kt-article-card {
  border: 1px solid var(--kt-line);
  border-radius: 9px;
  overflow: hidden;
  min-height: 248px;
  background: white;
  transition: .2s;
}
.page-kien-thuc .kt-article-card:hover {
  box-shadow: 0 10px 24px rgba(34, 81, 150, .1);
  transform: translateY(-2px);
}
.page-kien-thuc .kt-article-art {
  height: 112px;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.page-kien-thuc .kt-article-art span {
  position: relative;
  z-index: 2;
  font-weight: 800;
  font-size: 35px;
}
.page-kien-thuc .kt-article-art.mark { background: radial-gradient(circle at 70% 30%, #4f9ee5, #021b3a 70%); }
.page-kien-thuc .kt-article-art.mark span {
  border: 5px solid #d7e8fb;
  border-radius: 50%;
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
}
.page-kien-thuc .kt-article-art.laptop { background: linear-gradient(135deg, #d9c6ae, #f6f1e8); color: #23406c; }
.page-kien-thuc .kt-article-art.laptop span {
  width: 90px; height: 61px;
  background: white;
  border: 7px solid #3e4c58;
  display: grid;
  place-items: center;
  transform: perspective(90px) rotateX(-3deg);
  font-size: 23px;
  box-shadow: 0 12px 10px #6d5946;
}
.page-kien-thuc .kt-article-art.nice { background: linear-gradient(145deg, #173344, #051018); letter-spacing: 4px; }
.page-kien-thuc .kt-article-art.risk { background: radial-gradient(circle, #11739b, #062237); }
.page-kien-thuc .kt-article-art.risk span {
  width: 85px; height: 43px;
  border: 8px solid #f0bd1a;
  border-right-color: #f03e2f;
  border-left-color: #1dc579;
  border-bottom-color: transparent;
  border-radius: 70px 70px 0 0;
  font-size: 16px;
  display: grid;
  place-items: center;
}
.page-kien-thuc .kt-article-art.watch { background: radial-gradient(circle at 60% 30%, #296d9b, #03172b 67%); }
.page-kien-thuc .kt-article-art.watch span {
  font-size: 70px;
  color: #8db9de;
  text-shadow: 26px 5px 0 #1e496b, -26px 5px 0 #1e496b;
}
.page-kien-thuc .kt-article-body { padding: 11px 11px 12px; }
.page-kien-thuc .kt-article-body h3 {
  font-size: 13px;
  line-height: 1.35;
  min-height: 36px;
  margin: 0 0 9px;
  color: var(--kt-navy);
}
.page-kien-thuc .kt-article-body p {
  font-size: 11px;
  line-height: 1.5;
  color: #718099;
  min-height: 44px;
  margin: 0 0 10px;
}
.page-kien-thuc .kt-article-body small {
  font-size: 10px;
  color: #7c8ba2;
  display: flex;
  align-items: center;
  gap: 7px;
}
.page-kien-thuc .kt-article-body small i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #6f7d91;
  font-style: normal;
}

.page-kien-thuc .kt-nice-heading { margin-top: 19px; }
.page-kien-thuc .kt-nice-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
  min-width: 0;
}
.page-kien-thuc .kt-nice-pill {
  height: 65px;
  border: 1px solid var(--kt-line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 8px;
  background: white;
  transition: .2s;
  min-width: 0;
}
.page-kien-thuc .kt-nice-pill:hover {
  border-color: #9dbbe9;
  box-shadow: 0 6px 18px rgba(34, 81, 150, .08);
}
.page-kien-thuc .kt-nice-pill > span { font-size: 28px; font-weight: 800; flex-shrink: 0; }
.page-kien-thuc .kt-nice-pill i { font-style: normal; min-width: 0; }
.page-kien-thuc .kt-nice-pill small,
.page-kien-thuc .kt-nice-pill strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-kien-thuc .kt-nice-pill strong { color: var(--kt-blue); font-size: 13px; }
.page-kien-thuc .greenText { color: #0aae42; }
.page-kien-thuc .orangeText { color: #ff9618; }
.page-kien-thuc .brownText { color: #9a491f; }
.page-kien-thuc .purpleText { color: #8c30ba; }
.page-kien-thuc .blueText { color: #1671de; }

.page-kien-thuc .kt-news-panel { margin-top: 12px; }
.page-kien-thuc .kt-news-panel .kt-section-heading { margin-top: 0; }
.page-kien-thuc .kt-news-item {
  display: grid;
  grid-template-columns: 77px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e8edf4;
}
.page-kien-thuc .kt-news-item:last-child { border-bottom: 0; }
.page-kien-thuc .kt-news-art {
  height: 51px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  background: #173861;
  overflow: hidden;
  font-size: 12px;
}
.page-kien-thuc .kt-news-art.n0 { background: linear-gradient(135deg, #6c3824, #d7ad79); font-size: 20px; }
.page-kien-thuc .kt-news-art.n1 { background: #12416b; color: #ffdc2d; letter-spacing: 1px; }
.page-kien-thuc .kt-news-art.n2 { background: linear-gradient(135deg, #dfe8f3, #fff); color: #2365b0; font-size: 22px; }
.page-kien-thuc .kt-news-art.n3 { background: linear-gradient(#276894, #10223c); }
.page-kien-thuc .kt-news-art.n4 { background: linear-gradient(135deg, #70c4ee, #bddff4); color: #ff8b13; font-size: 20px; }
.page-kien-thuc .kt-news-item i { font-style: normal; min-width: 0; }
.page-kien-thuc .kt-news-item strong {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 4px;
}
.page-kien-thuc .kt-news-item small { color: #7f8da3; font-size: 10px; }

.page-kien-thuc .kt-cta {
  min-height: 105px;
  margin-top: 24px;
  background: linear-gradient(100deg, #0875d6, #0055c3);
  border-radius: 11px;
  color: #fff;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  padding: 0 30px 0 0;
  overflow: hidden;
}
.page-kien-thuc .kt-rocket {
  font-size: 64px;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 75% 45%, rgba(255, 255, 255, .24), transparent 55%);
}
.page-kien-thuc .kt-cta h2 { font-size: 24px; margin: 0 0 5px; color: #fff; }
.page-kien-thuc .kt-cta p {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  opacity: .92;
}
.page-kien-thuc .kt-cta-buttons {
  display: flex;
  gap: 15px;
  margin-left: 25px;
}
.page-kien-thuc .kt-cta-buttons .kt-btn { min-width: 175px; }

/* Kết quả tìm kiếm kiến thức */
.page-kien-thuc .kt-hero-search .kt-search-hero-copy {
  padding: 8px 0 36px;
  max-width: 820px;
}
.page-kien-thuc .kt-hero-search .kt-search-hero-copy h1 {
  font-size: clamp(28px, 3vw, 40px);
}
.page-kien-thuc .kt-result-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 20px;
}
.page-kien-thuc .kt-result-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  border: 1px solid var(--kt-line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  transition: .2s;
}
.page-kien-thuc .kt-result-card:hover {
  border-color: #9dbbe9;
  box-shadow: 0 10px 28px rgba(34, 81, 150, .09);
  transform: translateY(-1px);
}
.page-kien-thuc .kt-result-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  height: 120px;
  background: #edf4ff;
}
.page-kien-thuc .kt-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-kien-thuc .kt-result-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--kt-navy);
}
.page-kien-thuc .kt-result-body h3 a:hover { color: var(--kt-blue); }
.page-kien-thuc .kt-result-body p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #566783;
}
.page-kien-thuc .kt-result-body small {
  font-size: 12px;
  color: #7c8ba2;
}
.page-kien-thuc .kt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #52637d;
}
.page-kien-thuc .kt-pagination a {
  color: var(--kt-blue);
  padding: 8px 14px;
  border: 1px solid #c8d7e9;
  border-radius: 6px;
  background: #fff;
}
.page-kien-thuc .kt-pagination a:hover {
  background: #f4f8ff;
  border-color: #a8c8f4;
}
.page-kien-thuc .kt-empty-result {
  text-align: center;
  padding: 60px 20px 40px;
  color: #566783;
}
.page-kien-thuc .kt-empty-result > i {
  font-size: 42px;
  color: #9dbbe9;
  margin-bottom: 14px;
  display: block;
}
.page-kien-thuc .kt-empty-result p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
}

/* Danh sách tin danh mục kiến thức (kiểu /nhom-nice-kien-thuc) */
.page-kien-thuc .kt-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 12px;
}
.page-kien-thuc .kt-news-card {
  border: 1px solid var(--kt-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: .2s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.page-kien-thuc .kt-news-card:hover {
  border-color: #9dbbe9;
  box-shadow: 0 10px 28px rgba(34, 81, 150, .09);
  transform: translateY(-2px);
}
.page-kien-thuc .kt-news-card .kt-news-thumb {
  display: block;
  height: 170px;
  background: #edf4ff;
  overflow: hidden;
}
.page-kien-thuc .kt-news-card .kt-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-kien-thuc .kt-news-card .kt-news-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.page-kien-thuc .kt-news-card .kt-news-meta {
  color: var(--kt-blue);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}
.page-kien-thuc .kt-news-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--kt-navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}
.page-kien-thuc .kt-news-card h3 a:hover { color: var(--kt-blue); }
.page-kien-thuc .kt-news-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #566783;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1220px) {
  .page-kien-thuc .kt-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-kien-thuc .kt-topic-card { min-height: 300px; }
  .page-kien-thuc .kt-article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-kien-thuc .kt-article-card:nth-child(n+4) { display: none; }
  .page-kien-thuc .kt-nice-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-kien-thuc .kt-nice-pill:nth-child(n+4) { display: none; }
  .page-kien-thuc .kt-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-kien-thuc .kt-cta { grid-template-columns: 140px minmax(0, 1fr); padding-right: 20px; }
  .page-kien-thuc .kt-cta-buttons { grid-column: 2; margin: 10px 0 20px; }
}

/* Tablet ngang: xếp sidebar xuống để topic card rộng hơn */
@media (max-width: 1100px) {
  .page-kien-thuc .kt-content-layout { grid-template-columns: minmax(0, 1fr); }
  .page-kien-thuc .kt-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }
  .page-kien-thuc .kt-news-panel { margin-top: 0; }
}

@media (max-width: 900px) {
  .page-kien-thuc .kt-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: unset; }
  .page-kien-thuc .kt-hero-copy { padding: 18px 0 45px; max-width: none; }
  .page-kien-thuc .kt-hero-visual { display: none; }
  .page-kien-thuc .kt-search { max-width: none; }
  .page-kien-thuc .kt-article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-kien-thuc .kt-section-heading {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .page-kien-thuc .kt-section-heading h2,
  .page-kien-thuc .kt-section-heading h3 { min-width: 0; }
}

@media (max-width: 640px) {
  .page-kien-thuc .kt-container { width: min(100% - 28px, 1280px); }
  .page-kien-thuc .kt-hero-copy h1 { font-size: clamp(26px, 8vw, 32px); letter-spacing: -.8px; }
  .page-kien-thuc .kt-hero-copy > p { font-size: 14px; }
  .page-kien-thuc .kt-knowledge-title { font-size: clamp(24px, 7vw, 32px); margin: 8px 0 20px; }
  .page-kien-thuc .kt-search {
    height: auto;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 8px;
    max-width: none;
  }
  .page-kien-thuc .kt-search input { height: 38px; }
  .page-kien-thuc .kt-search button {
    grid-column: 1 / -1;
    width: 100%;
    height: 42px;
    padding: 0 16px;
  }
  .page-kien-thuc .kt-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .page-kien-thuc .kt-hero-actions .kt-btn { min-width: 0; width: 100%; }
  .page-kien-thuc .kt-text-link { text-align: center; }
  .page-kien-thuc .kt-topic-grid { grid-template-columns: minmax(0, 1fr); }
  .page-kien-thuc .kt-topic-card { min-height: 0; }
  .page-kien-thuc .kt-article-grid { grid-template-columns: minmax(0, 1fr); }
  .page-kien-thuc .kt-article-card:nth-child(n) { display: block; }
  .page-kien-thuc .kt-article-card {
    display: block !important;
    min-height: 0;
  }
  .page-kien-thuc .kt-article-card > a {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    min-height: 120px;
  }
  .page-kien-thuc .kt-article-art {
    height: auto;
    min-height: 120px;
  }
  .page-kien-thuc .kt-article-body {
    padding: 6px 6px 8px 0;
    min-width: 0;
  }
  .page-kien-thuc .kt-article-body h3,
  .page-kien-thuc .kt-article-body p {
    min-height: 0;
  }
  .page-kien-thuc .kt-article-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .page-kien-thuc .kt-section-heading {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .page-kien-thuc .kt-section-heading > a {
    white-space: normal;
  }
  .page-kien-thuc .kt-nice-groups {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    margin-inline: 0;
    min-width: 0;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .page-kien-thuc .kt-nice-pill,
  .page-kien-thuc .kt-nice-pill:nth-child(n) {
    display: flex;
    flex: 0 0 auto;
    min-width: 168px;
    max-width: 220px;
    scroll-snap-align: start;
  }
  .page-kien-thuc .kt-nice-pill > span { font-size: 24px; }
  .page-kien-thuc .kt-sidebar { grid-template-columns: minmax(0, 1fr); }
  .page-kien-thuc .kt-tool-list strong {
    overflow-wrap: anywhere;
  }
  .page-kien-thuc .kt-cta {
    grid-template-columns: minmax(0, 1fr);
    padding: 25px 20px;
    text-align: center;
  }
  .page-kien-thuc .kt-rocket { height: auto; font-size: 52px; }
  .page-kien-thuc .kt-cta-buttons {
    grid-column: 1;
    flex-direction: column;
    margin: 18px 0 0;
    width: 100%;
  }
  .page-kien-thuc .kt-cta-buttons .kt-btn { min-width: 0; width: 100%; }
  .page-kien-thuc .kt-result-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-kien-thuc .kt-result-thumb { height: 160px; }
  .page-kien-thuc .kt-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-kien-thuc .kt-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-kien-thuc .kt-news-card .kt-news-thumb { height: 190px; }
  .page-kien-thuc .kt-news-card h3 { min-height: 0; }
}

@media (max-width: 400px) {
  .page-kien-thuc .kt-article-card > a {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .page-kien-thuc .kt-nice-pill {
    min-width: 156px;
    gap: 10px;
    height: 60px;
    padding: 0 8px;
  }
  .page-kien-thuc .kt-breadcrumbs { gap: 8px; font-size: 11px; }
}

/* ========== Báo cáo & Thống kê ========== */
.page-bao-cao .bc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 28px;
}
.page-bao-cao .bc-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--kt-line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--kt-navy);
  transition: .2s ease;
}
.page-bao-cao .bc-toc a:hover {
  border-color: var(--kt-blue);
  color: var(--kt-blue);
  box-shadow: 0 4px 14px rgba(5, 101, 216, .12);
}
.page-bao-cao .bc-toc a i {
  color: var(--kt-blue);
  font-size: 14px;
}
.page-bao-cao .bc-main [id] {
  scroll-margin-top: 96px;
}
.page-bao-cao .kt-search-hero-copy {
  max-width: 760px;
  padding-bottom: 18px;
}
@media (max-width: 767px) {
  .page-bao-cao .bc-toc {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .page-bao-cao .bc-toc a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.page-news-detail-layout .news-lawdoc-cta {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 10px;
  background: linear-gradient(100deg, #0875d6, #0055c3);
  color: #fff;
  text-align: center;
}
.page-news-detail-layout .news-lawdoc-cta-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}
.page-news-detail-layout .news-lawdoc-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-news-detail-layout .news-lawdoc-cta-link:hover {
  color: #ffdc2d;
}

/* Sidebar trang chi tiết tin — cùng tỷ lệ cột với /kien-thuc (3fr / 1fr) */
.page-news-detail-layout {
  padding-bottom: 40px;
}
.page-news-detail-layout .page-news-detail-sidebar {
  min-width: 0;
}
.page-news-detail-sidebar .kt-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-news-detail-sidebar .kt-news-panel {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .page-news-detail-layout .page-news-detail-sidebar {
    margin-top: 20px;
  }
  /* Giữ sidebar chi tiết xếp dọc (không 2 cột như tablet /kien-thuc) */
  .page-news-detail-sidebar .kt-sidebar {
    display: flex;
    flex-direction: column;
  }
}

/* Video / iframe: máy tính 80%, tablet & mobile 100% */
.contents-wrapper .embed-youtube,
.contents-wrapper .embed-iframe,
.page-kien-thuc .embed-youtube,
.page-kien-thuc .embed-iframe {
  display: block !important;
  width: 80% !important;
  max-width: 100% !important;
  margin: 1rem auto !important;
  position: relative !important;
  height: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  aspect-ratio: auto !important;
  background: transparent !important;
}

.contents-wrapper .embed-ratio,
.page-kien-thuc .embed-ratio {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  position: static !important;
  background: transparent !important;
}

.contents-wrapper iframe,
.page-kien-thuc iframe {
  display: block !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 80% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 240px;
  aspect-ratio: 16 / 9;
  margin: 1rem auto !important;
  border: 0 !important;
  visibility: visible !important;
}

.contents-wrapper .embed-youtube iframe,
.contents-wrapper .embed-iframe iframe,
.contents-wrapper .embed-ratio iframe,
.page-kien-thuc .embed-youtube iframe,
.page-kien-thuc .embed-iframe iframe,
.page-kien-thuc .embed-ratio iframe {
  width: 100% !important;
  margin: 0 !important;
}

.contents-wrapper .embed-width-bar,
.contents-wrapper .embed-shim,
.page-kien-thuc .embed-width-bar,
.page-kien-thuc .embed-shim {
  display: none !important;
}

@media (max-width: 1023px) {
  .contents-wrapper .embed-youtube,
  .contents-wrapper .embed-iframe,
  .page-kien-thuc .embed-youtube,
  .page-kien-thuc .embed-iframe,
  .contents-wrapper iframe,
  .page-kien-thuc iframe {
    width: 100% !important;
  }
}

