.background {
    width: 100%;
}

.background img {
    height: auto;
    width: 100%;
}

.body {
    width: 100%;
    padding: 32px 0;
}

.box-body {
    display: flex;
    width: 100%;
}

.content-box-body-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.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);
}

.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));
}

.content-top-box-body-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.in-content-top-box-body-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 60%;
}

.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));
}


.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));
}

.content-related-articles {
	display: grid;
    gap: 24px;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(240px, 360px));
    justify-content: center;
}

.box-content-related-articles img {
    height: auto;
    width: auto;
}

.box-content-related-articles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.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;
}

.line-footer-bottom {
    background: rgba(48, 48, 48, 0.15);
}

.content-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.button-content-article-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.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));
}

.button-fixed img {
    height: 20px;
}

.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;
}

/*------------------------------------------*/
.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: 150px;
	width: 240px;
}

/* CASE 1 + 3: Có .image-figure (dù bên trong có img hay không) */
.article-content .image-figure {
  width: 1310px!important;
  transform: translateX(-20%);
}

/* Nếu muốn chắc chắn ảnh trong image-figure full theo figure */
.article-content .image-figure img {
  width: 100% !important;
  transform: none !important; /* tránh bị translate của img lẻ */
}

/* CASE 2: img đứng 1 mình (không nằm trong image-figure) */
.article-content img:not(.image-figure img) {
  max-width: 1310px !important;
  width: 1310px !important;
  transform: translateX(-20%);
}

.buntton-face {
	width: 30px;
	height: auto;
}

.buntton-back {
	width: 30px;
	height: auto;
}

.buntton-export {
	width: 30px;
	height: auto;
}

.buntton-zalo {
	width: 25px;
	height: auto;
}

.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;
}

.author-box {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.text-author-box {
	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));
}


.image-caption {
	margin-top: 10px;
    padding: 0 10px;
    text-align: center;
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.55;
    font-style: italic;
}

.entry-body {
	font-size: 18px!important;
}

@media (max-width: 768px) {
	.body {
		width: 100vw!important;
	}
	
	.in-content-top-box-body-left {
		width: 100%!important;
	}
	
	.box-same-category {
		flex-direction: column;
	}	

	.box-same-category img {
		width: 100%!important;
		height: 240px!important;
	}
	
	.article-content .image-figure {
		width: 100% !important;
		transform: translate(0px);
	}
	
	.img-article-top-left {
		width: auto;
		height: 40px;
	}
	
	.button-fixed {
		gap: 5px;
	}
	
		
	.text-author-box {
		font-size: 14px;
	}
	
	  .content-related-articles{
		grid-template-columns: 1fr;
		justify-content: stretch;
	  }
}

/*----------------------------------------*/
/* ===== 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;
  }
}