.body {
    width: 100%;
    margin: 32px 0;
}

.box-body {
    display: flex;
    width: 100%;
}

.content-box-body-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 75%;
    margin-right: 25px;
}

.content-top-box-body-left {
    display: flex;
    gap: 20px;
}

.button-content-top-box-body-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 5%;
    position: relative;
}

.button-fixed img {
    height: 20px;
}

.button-fixed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 12px;
    align-self: flex-start;
    max-height: calc(100vh - 24px);
    overflow: auto;
}

.box-button-fixed {
    width: 40px;
    height: 40px;
    border-radius: 99px;
    border-width: 1px;
    border: 1px solid var(--Border-Default-Default, rgba(217, 217, 217, 1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-font {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
    border-radius: 99px;
    border-width: 1px;
    border: 1px solid var(--Border-Default-Default, rgba(217, 217, 217, 1));
    align-items: center;
    justify-content: center;
}

.font {
    font-family: Noto Serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0px;
    color: var(--Text-Neutral-Default, rgba(48, 48, 48, 1));
}

.btn-font .box-button-fixed {
    width: 26px;
    height: 26px;
    border-radius: 99px;
    border-width: 1px;
    border: 1px solid var(--Border-Default-Default, rgba(217, 217, 217, 1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-font .box-button-fixed img {
    height: 16px;
}

.in-content-top-box-body-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 95%;
}

.article-top {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.article-top-left {
    display: flex;
    gap: 8px;
}

.text-article-top-left {
    font-family: Inter;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0px;
    color: var(--Text-Neutral-Tertiary, rgba(118, 118, 118, 1));
}

.active {
    color: rgba(13, 71, 161, 1)!important;
}

.time-create {
    font-family: Inter;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0px;
    text-align: right;
    color: var(--Text-Neutral-Tertiary, rgba(118, 118, 118, 1));
}

.title-article {
    font-family: Noto Serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0px;
    color: var(--Text-Neutral-Default, rgba(48, 48, 48, 1));
}

.descriptive-article {
    font-family: Inter;
    font-weight: 700;
    font-size: 18px;
    line-height: 160%;
    letter-spacing: 0px;
    color: var(--Text-Neutral-Default, rgba(48, 48, 48, 1));
}

.article-content {
    font-family: Inter;
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
	text-align: justify;
    letter-spacing: 0px;
    color: var(--Text-Neutral-Default, rgba(48, 48, 48, 1));
}

.article-content img {
    width: 100%!important;
	max-width: 100%;
	height: 100%!important;
	margin: 0 auto;
	display: block;
}

iframe {
	width: 100%;
    height: 600px;
}

.article-author {
    font-family: Inter;
    font-weight: 600;
    font-size: 20px;
    line-height: 160%;
    letter-spacing: 0px;
    text-align: right;
    color: var(--Text-Neutral-Default, rgba(48, 48, 48, 1));
}

.line-footer-bottom {
    background: rgba(48, 48, 48, 0.15);
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.title-related-articles {
    font-family: Inter;
    font-weight: 600;
    font-size: 20px;
    line-height: 160%;
    letter-spacing: 0px;
    color: var(--Text-Default-Default, rgba(30, 30, 30, 1));
}



.box-content-related-articles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.content-related-articles {
	display: grid;
    gap: 24px;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.box-content-related-articles img {
    height: auto;
    width: 100%;
}

.image-caption {
	margin-top: 10px;
    padding: 0 10px;
    text-align: center;
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.55;
    font-style: italic;
}

.image-figure {
	width: 100%!important;
}

.box-title-content-related-articles {
    font-family: Noto Serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0px;
    color: var(--Text-Neutral-Default, rgba(48, 48, 48, 1));
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-box {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.text-author-box {
	font-family: Inter;
	font-weight: 600;
	font-size: 16px;
	line-height: 160%;
	letter-spacing: 0px;
	text-align: right;
	color: var(--Text-Neutral-Default, rgba(48, 48, 48, 1));
}

/*------------------------------------------*/
.tag {
    display: flex;
    gap: 8px;
}

.text-tag {
    padding-top: 4px;
    padding-right: 8px;
    padding-bottom: 4px;
    padding-left: 8px;
    border-radius: 4px;
    background: var(--Background-Default-Secondary, rgba(245, 245, 245, 1));
}

.text-tag:hover {
    background: rgba(13, 71, 161, 1);
    cursor: pointer;
}

.text-tag:hover .title-text-tag {
    color: var(--Text-Neutral-On-Neutral, rgba(243, 243, 243, 1));
}

.title-text-tag {
    font-family: Inter;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0px;
    color: var(--Text-Default-Secondary, rgba(117, 117, 117, 1));
}

/*-----------------------------------------*/

.same-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.title-same-category {
    font-family: Inter;
    font-weight: 600;
    font-size: 20px;
    line-height: 160%;
    letter-spacing: 0px;
    color: var(--Text-Default-Default, rgba(30, 30, 30, 1));
}

.box-same-category {
    display: flex;
    width: 100%;
    gap: 24px;
}

.content-box-same-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.title-content-box-same-category {
    font-family: Noto Serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 160%;
    letter-spacing: 0px;
    color: var(--Text-Neutral-Default, rgba(48, 48, 48, 1));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-content-box-same-category {
    font-family: Inter;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0px;
    color: var(--Text-Neutral-Secondary, rgba(90, 90, 90, 1));
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.box-same-category img {
    height: auto;
	width: 240px;
}

/*------------------------------------------*/
.content-box-body-right {
    height: 400px;
    width: 25%;
}
@media (max-width: 768px) {
	.body {
        width: 100vw!important;
	}
	
	.button-content-top-box-body-left {
		width: 100%;
	}
	
	.button-fixed {
		flex-direction: unset;
		gap: 5px;
	}
	
	.line-footer-bottom {
		display: none;
	}
	
	.btn-font {
		flex-direction: unset;
	}
	
	.content-box-body-right {
		display: none;
	}
	
	.content-top-box-body-left {
		flex-direction: column;
	}
	
	.in-content-top-box-body-left {
		width: 100%!important;
	}
	
	.content-box-body-left {
		width: 100%;
		margin-right: 0px;
	}
	
	.box-same-category {
		flex-direction: column;
	}
	
	.box-same-category img {
		height: auto;
		width: 100%;
	}
	
		
	.text-author-box {
		font-size: 14px;
	}
	
  .content-related-articles{
	grid-template-columns: 1fr;
	justify-content: stretch;
  }
}

.entry-body {
	font-size: 18px!important;
}

/*----------------------------------------*/
/* ===== Table trong nội dung bài viết ===== */
.entry-body table,
.entry-body .VCCTable {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.entry-body table th,
.entry-body table td,
.entry-body .VCCTable th,
.entry-body .VCCTable td {
  border: 1px solid #333;   /* viền */
  padding: 8px 10px;
  vertical-align: top;
}

/* header nếu có */
.entry-body table th,
.entry-body .VCCTable th {
  font-weight: 600;
  text-align: left;
}

/* đảm bảo khi in vẫn ra viền */
@media print {
  .entry-body table th,
  .entry-body table td,
  .entry-body .VCCTable th,
  .entry-body .VCCTable td {
    border: 1px solid #000 !important;
  }
}

/*------------------------------------*/
.dg-modal { border-radius: 14px; overflow: hidden; }

.dg-header {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  padding: 16px 20px;
}
.dg-header .modal-title { font-weight: 800; }
.dg-header .dg-sub { font-size: 13px; opacity: .85; }

.dg-form { padding: 6px 2px; }

.dg-group { margin-bottom: 14px; }
.dg-group label {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  color: #1f2937;
  font-size: 14px;
}
.dg-group label span { color: #e11d48; }

.dg-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-size: 14px;
}
.dg-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.dg-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.dg-textarea { resize: vertical; min-height: 92px; }

/* Inline error dưới input */
.dg-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #ef4444;
  line-height: 1.3;
}
.dg-error.show { display: block; }

/* Nếu có #errServer (message chung) */
.dg-server-error {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.dg-server-error.show {
  display: block;
  background: #fef2f2;
  border-color: #fecaca;
}
.dg-server-error.is-success {
  color: #065f46;
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

/* Rating */
.dg-rating { display: flex; align-items: center; gap: 6px; user-select: none; }
.dg-star {
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #d1d5db;
  padding: 0 2px;
  transition: transform .12s ease, color .12s ease;
}
.dg-star:hover { transform: scale(1.15); }
.dg-star.is-on { color: #f59e0b; }

.dg-rating-text { margin-left: 8px; font-weight: 700; color: #6b7280; font-size: 14px; }

/* Buttons */
.dg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.dg-actions .btn { border-radius: 12px; font-weight: 700; padding: 10px 16px; }

#dgModal.dg-loading #btnSubmitDG { opacity: .75; pointer-events: none; }
#dgModal.dg-loading #btnSubmitDG::after { content: " ..."; font-weight: 700; }

@media (max-width: 576px) {
  .dg-actions { flex-direction: column; align-items: stretch; }
}

/*-------------------------------------------------*/
/* Caption */
.entry-body .PhotoCMS_Caption,
.entry-body figcaption {
  margin-top: 10px;
  padding: 0 10px;
  text-align: center;
  color: #6b6b6b;
  font-size: 15px;      /* OK: set size, chỉ không set font-family */
  line-height: 1.55;
}

.entry-body .PhotoCMS_Caption p,
.entry-body figcaption p {
  margin: 0;
  font-style: italic;   /* chữ nghiêng cho chú thích */
}

/* RELATED NEWS BOX - match mọi type (type-1/2/3/...) */
.entry-body .VCSortableInPreviewMode[type="RelatedNewsBox"],
.entry-body-video .VCSortableInPreviewMode[type="RelatedNewsBox"],
.article-content .VCSortableInPreviewMode[type="RelatedNewsBox"]{
  margin: 14px 0 18px;
}

/* alignRight */
.entry-body .VCSortableInPreviewMode.alignRight[type="RelatedNewsBox"],
.entry-body-video .VCSortableInPreviewMode.alignRight[type="RelatedNewsBox"],
.article-content .VCSortableInPreviewMode.alignRight[type="RelatedNewsBox"]{
  float: right;
  width: 320px;
  max-width: 100%;
  margin: 6px 0 14px 16px;
}

/* KHUNG: ăn cho mọi type */
.entry-body .kbwscwl-relatedbox,
.entry-body-video .kbwscwl-relatedbox,
.article-content .kbwscwl-relatedbox{
  border: 1px solid #e6e8eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

/* list reset */
.entry-body .kbwscwl-relatedbox ul,
.entry-body-video .kbwscwl-relatedbox ul,
.article-content .kbwscwl-relatedbox ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-body .kbwscwl-relatedbox li,
.entry-body-video .kbwscwl-relatedbox li,
.article-content .kbwscwl-relatedbox li{
  margin: 0;
  padding: 10px;
}

/* title */
.entry-body .kbwscwl-relatedbox h4,
.entry-body-video .kbwscwl-relatedbox h4,
.article-content .kbwscwl-relatedbox h4{
  margin: 0;
  line-height: 1.35;
}

.entry-body .kbwscwl-relatedbox a.title,
.entry-body-video .kbwscwl-relatedbox a.title,
.article-content .kbwscwl-relatedbox a.title{
  display: block;
  color: #1f2a37;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.entry-body .kbwscwl-relatedbox a.title:hover,
.entry-body-video .kbwscwl-relatedbox a.title:hover,
.article-content .kbwscwl-relatedbox a.title:hover{
  text-decoration: underline;
}

/* “Đọc ngay” (type-3 có link này) */
.entry-body .kbwscwl-relatedbox .kbwscwlrl-next,
.entry-body-video .kbwscwl-relatedbox .kbwscwlrl-next,
.article-content .kbwscwl-relatedbox .kbwscwlrl-next{
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  text-decoration: none;
}


/* responsive: xuống dưới, full width */
@media (max-width: 768px) {
  .entry-body .VCSortableInPreviewMode.alignRight[type="RelatedNewsBox"] {
    float: none;
    width: 100%;
    margin: 12px 0 14px;
  }
}
/*----------POPUP VIDEO----------------*/
.docbai-player.mini{
  position: fixed;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;

  width: 200px;
  padding: 8px;
  border-radius: 10px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  z-index:9999;

  transform: translateY(8px);
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease, transform .15s ease;
}

.docbai-player.mini.show{
  transform: translateY(0);
  opacity:1;
  pointer-events:auto;
}


.docbai-player.mini .docbai-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 8px;
}
.docbai-player.mini .docbai-title{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  font-size:13px;
}
.docbai-player.mini .dot{
  width:8px;height:8px;border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,.18);
}
.docbai-player.mini .docbai-close{
  border:0;
  background:rgba(0,0,0,.04);
  width:28px;height:28px;border-radius:10px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:14px;
}
.docbai-player.mini .docbai-close:hover{ background:rgba(0,0,0,.08); }

.docbai-player.mini .docbai-controls{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom: 8px;
}
.docbai-player.mini .docbai-btn{
  border:0;
  width:34px;height:34px;
  border-radius:12px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:#111827;
  color:#fff;
  font-size:14px;
}
.docbai-player.mini .docbai-btn.danger{ background:#ef4444; }

.docbai-player.mini .docbai-time{
  margin-left:auto;
  font-size:11px;
  color:rgba(17,24,39,.7);
  font-weight:600;
  display:flex;
  align-items:center;
  gap:6px;
}
.docbai-player.mini .docbai-time .sep{ opacity:.5; }

.docbai-player.mini .docbai-seek{
  width:100%;
  accent-color:#111827;
  height:16px;
}

/* mobile */
@media (max-width:480px){
  .docbai-player.mini{
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 92px;
  }
}






