/* Trang chi tiết Infographic (Hình 10b) — port trực tiếp từ documents/sokhcn/assets/css/infographic-detail.css.
   Khác mockup có chủ đích (đã hỏi lại người dùng trước khi làm):
   - Slide của mình chỉ có ảnh + tiêu đề + mô tả ngắn (không có dữ liệu bar/ring/roadmap như mockup
     minh họa "Chỉ số đổi mới sáng tạo") — mọi slide đều dùng chung 1 khuôn "slide-cover" (ảnh nền +
     lớp phủ + tiêu đề/mô tả), thêm class .slide-cover-content p (mockup gốc không có) để hiện MoTa.
   - .related-thumb thay cho .related-art: dùng ảnh slide đầu thật của infographic liên quan thay vì
     khối màu + số liệu bịa (mockup ghi cứng "76%", "412"... không có trường dữ liệu tương ứng). */

:root {
  --detail-info-shadow: 0 12px 38px rgba(13, 42, 89, .11);
}

.infographic-detail-page {
  color: #46536a;
  font-size: 16px;
}

.infographic-detail-hero {
  padding: 24px 0 36px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 22%, rgba(50, 130, 225, .12), transparent 17%),
    linear-gradient(135deg, #f2f6ff, #fbfdff);
}

.infographic-detail-heading {
  max-width: 1080px;
}

.infographic-detail-heading>span {
  color: var(--blue2);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.infographic-detail-heading h1 {
  margin: 9px 0 14px;
  color: var(--blue);
  font-size: clamp(27px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1.35;
}

.infographic-heading-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: #6a778c;
  font-size: 13px;
}

.infographic-heading-meta i {
  margin-right: 5px;
  color: var(--blue2);
}

.infographic-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
}

.infographic-detail-main {
  min-width: 0;
}

.infographic-viewer {
  overflow: hidden;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--detail-info-shadow);
}

.infographic-viewer-toolbar {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 13px;
  border-bottom: 1px solid #d8e2ef;
  background: #fff;
}

.infographic-viewer-toolbar>div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.infographic-viewer-toolbar>div:first-child>span {
  color: var(--blue2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.infographic-viewer-toolbar>div:first-child strong {
  color: #657188;
  font-size: 12px;
}

.infographic-viewer-toolbar>div:first-child b {
  color: var(--blue);
  font-size: 17px;
}

.infographic-autoplay {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #768297;
  font-size: 11px;
}

.infographic-autoplay>i {
  position: relative;
  width: 88px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #e4eaf2;
}

.infographic-autoplay>i::after {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--blue2);
  content: "";
  transition: width 1s linear;
}

.viewer-actions {
  display: flex;
  gap: 6px;
}

.viewer-actions button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
}

.infographic-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #10213d;
  aspect-ratio: 16 / 9;
  outline: 0;
}

.infographic-slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  padding: clamp(22px, 4.2vw, 54px);
  animation: infographicFade .45s ease;
}

.infographic-slide.active {
  display: block;
}

@keyframes infographicFade {
  from {
    opacity: .35;
    transform: scale(1.01);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* .slide-overlay/.slide-brand/.slide-cover-content (lớp phủ + tiêu đề/mô tả đè lên ảnh) đã BỎ theo
   yêu cầu người dùng 17/07/2026 — tiêu đề/mô tả đã hiện đủ ở .infographic-caption ngay bên dưới
   khung, đè thêm lên ảnh là lặp nội dung. Slide giờ chỉ còn ảnh nền thuần. */
.slide-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-navigation {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(4, 25, 57, .48);
  color: #fff;
  backdrop-filter: blur(5px);
  transition: .2s;
}

.slide-navigation:hover {
  background: var(--blue);
}

.slide-prev {
  left: 13px;
}

.slide-next {
  right: 13px;
}

.infographic-dots {
  display: grid;
  gap: 6px;
  padding: 11px 13px;
  border-top: 1px solid #d8e2ef;
  border-bottom: 1px solid #d8e2ef;
}

.infographic-dots button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: center;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #8a95a7;
  font-size: 9px;
}

.infographic-dots button i {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #dfe5ed;
}

.infographic-dots button i::after {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  content: "";
}

.infographic-dots button.active {
  color: var(--blue);
  font-weight: 800;
}

.infographic-dots button.active i::after {
  width: 100%;
}

.infographic-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px;
}

.infographic-caption>div {
  min-width: 0;
}

.infographic-caption>div>span {
  color: var(--blue2);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.infographic-caption h2 {
  margin: 4px 0;
  color: #334159;
  font-size: 17px;
  font-weight: 750;
}

.infographic-caption p {
  margin: 0;
  color: #738096;
  font-size: 12px;
  line-height: 1.6;
}

.infographic-caption>a {
  display: flex;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  text-decoration: none;
}

.infographic-article {
  padding: 23px;
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.infographic-article h2 {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.infographic-article p {
  color: #58667c;
  font-size: 15px;
  line-height: 1.85;
}

.infographic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.infographic-tags a {
  padding: 5px 8px;
  border-radius: 14px;
  background: #edf4ff;
  color: var(--blue);
}

.infographic-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
}

.infographic-detail-actions :is(a, button) {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
}

.infographic-detail-actions>a:last-child {
  margin-left: auto;
}

.infographic-detail-sidebar {
  position: sticky;
  top: 15px;
  display: grid;
  gap: 14px;
}

.infographic-info-card,
.infographic-outline {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--detail-info-shadow);
}

.infographic-info-card h2,
.infographic-outline h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
}

.infographic-info-card dl {
  margin: 0;
}

.infographic-info-card dl>div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.infographic-info-card dl>div:last-child {
  border: 0;
}

.infographic-info-card dt {
  color: #8490a3;
  font-size: 12px;
  font-weight: 500;
}

.infographic-info-card dd {
  max-width: 155px;
  margin: 0;
  color: #47546a;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

.infographic-outline {
  display: grid;
}

.infographic-outline h2 {
  margin-bottom: 2px;
}

.infographic-outline button {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  color: #59667c;
  font-size: 11px;
  text-align: left;
}

.infographic-outline button:last-child {
  border: 0;
}

.infographic-outline button span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: #eef3fa;
  color: #758297;
  font-size: 9px;
}

.infographic-outline button.active {
  color: var(--blue);
  font-weight: 700;
}

.infographic-outline button.active span {
  background: var(--blue);
  color: #fff;
}

.infographic-download-card {
  display: flex;
  gap: 11px;
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a50bd, #06388f);
  color: #fff;
}

.infographic-download-card>i {
  font-size: 30px;
}

.infographic-download-card h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
}

.infographic-download-card p {
  margin: 0 0 9px;
  font-size: 11px;
  opacity: .82;
}

.infographic-download-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 11px;
  text-decoration: none;
}

.related-infographics {
  margin-top: 28px;
}

.related-infographic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.related-infographic-head h2 {
  margin: 0;
  color: var(--blue);
  font-size: 21px;
  font-weight: 800;
}

.related-infographic-head a {
  color: var(--blue2);
  font-size: 13px;
}

.related-infographic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.related-infographic-grid article {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.related-thumb {
  display: block;
  min-height: 145px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-infographic-grid article>div:last-child {
  padding: 14px;
}

.related-infographic-grid article>div:last-child>span {
  color: var(--blue2);
  font-size: 10px;
  font-weight: 700;
}

.related-infographic-grid h3 {
  margin: 7px 0;
  color: #3f4d63;
  font-size: 13px;
  line-height: 1.55;
}

.related-infographic-grid h3 a {
  color: inherit;
  text-decoration: none;
}

.related-infographic-grid p {
  margin: 0;
  color: #8390a3;
  font-size: 10px;
}

.infographic-viewer:fullscreen {
  display: flex;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: #071328;
}

.infographic-viewer:fullscreen .infographic-stage {
  min-height: 0;
  flex: 1;
  aspect-ratio: auto;
}

.infographic-viewer:fullscreen .infographic-dots,
.infographic-viewer:fullscreen .infographic-caption {
  background: #fff;
}

@media (max-width: 1199px) {
  .infographic-detail-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .related-infographic-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .infographic-detail-layout {
    grid-template-columns: 1fr;
  }

  .infographic-detail-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .infographic-download-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .infographic-detail-hero {
    padding: 16px 0 25px;
  }

  .infographic-detail-heading h1 {
    font-size: 23px;
  }

  .infographic-detail-content.section {
    padding-top: 18px;
  }

  .infographic-viewer-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .infographic-autoplay {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .infographic-autoplay>i {
    flex: 1;
  }

  .viewer-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .infographic-stage {
    min-height: 480px;
    aspect-ratio: auto;
  }

  .infographic-slide {
    padding: 22px;
  }

  .slide-navigation {
    width: 38px;
    height: 38px;
  }

  .slide-prev {
    left: 7px;
  }

  .slide-next {
    right: 7px;
  }

  .infographic-caption {
    display: grid;
  }

  .infographic-caption>a {
    width: max-content;
  }

  .infographic-article {
    padding: 17px;
  }

  .infographic-detail-actions>a:last-child {
    width: 100%;
    margin-left: 0;
  }

  .infographic-detail-sidebar,
  .related-infographic-grid {
    grid-template-columns: 1fr;
  }

  .infographic-download-card {
    grid-column: auto;
  }

  .related-infographic-head {
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .infographic-stage {
    min-height: 500px;
  }

  .infographic-slide {
    padding: 17px;
  }

  .infographic-dots button {
    grid-template-columns: 1fr;
  }

  .infographic-dots button span {
    text-align: center;
  }
}

@media print {
  header,
  footer,
  .page-loader,
  .smart-search,
  .infographic-detail-hero,
  .infographic-viewer-toolbar,
  .infographic-dots,
  .infographic-caption,
  .infographic-detail-actions,
  .infographic-detail-sidebar,
  .related-infographics,
  .slide-navigation {
    display: none !important;
  }

  .infographic-detail-layout {
    display: block;
  }

  .infographic-viewer {
    border: 0;
    box-shadow: none;
  }

  .infographic-stage {
    overflow: visible;
    background: #fff;
    aspect-ratio: auto;
  }

  .infographic-slide {
    position: relative;
    display: block;
    height: 190mm;
    break-after: page;
  }
}
