/* toc */

.toc-title {
	cursor: pointer;
	display :none;
}
.toc-title.active{
		display :flex;
		gap: 10px;
	align-items: center
}
.toc-title .icon{
 	transition: transform .3s ease-out;
}
.toc-title.open .icon{
	transform: rotate(90deg);
}

li.toc-list-item + li.toc-list-item {
  margin-top: 8px;
}

.toc-list-item ol {
  margin-top: 8px;
}

.toc-link::before{
	content: none!important 
}
a.toc-link{
	color: var(--color-link)!important;
	font-weight: normal!important
}
.toc-list li::before{
		color: var(--color-link)!important;

}
a.toc-link:hover{
	text-decoration: underline
}

ol.toc-list  {
  counter-reset: section;                
  list-style-type: none;
}

.toc-list  li::before {
  counter-increment: section;           
  content: counters(section, ".") " "; 
}

.fixed-toc{
    position: fixed;
    left: 0;
    top: 50%!important;
    transform: translateY(-50%);
	z-index: 1000;
}

.fixed-toc button.btn.toc-toggle-btn {
	color: var(--color-primary);
    border: 1px solid;
    padding: 5px;
    width: 32px;
    height: 32px;
    line-height: 1;
    margin-left: 10px;
	background: white;
	opacity: 0.6
}
.fixed-toc button.btn.toc-toggle-btn:hover{
	opacity: 1

}
.fixed-toc .fixed-toc-content{
	width: 300px;
    background: #ffff;
    position: absolute;
    top: 0!important;
    z-index: 9999;
    padding: 15px;
    border: 1px solid;
    border-radius: 5px;
    max-height: 75vh;
    overflow-y: auto;
    transform: translateY(-50%) translateX(-100%);
	transition: transform .3s ease-out;
}
.fixed-toc.open .fixed-toc-content {
	    transform: translateY(-50%);
}

.toc-wrapper:has(.js-toc:empty){
	display: none
}  

/* Win Win — tin tức: ảnh nằm gọn trong khung màn hình */
.main-article {
	overflow-x: clip;
}

.main-article .article-wraper {
	max-width: 100%;
}

.main-article .ww-news-hero {
	margin-bottom: 1.25rem;
	border-radius: var(--rounded-sm, 0.25rem);
	overflow: hidden;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: min(52vh, 420px);
}

.main-article .ww-news-hero img {
	display: block;
	max-width: 100%;
	max-height: min(52vh, 420px);
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
}

.main-article .article-content img,
.main-article .article-content video,
.main-article .rte.content img {
	display: block;
	max-width: 100% !important;
	width: auto !important;
	height: auto !important;
	max-height: min(52vh, 420px);
	object-fit: contain;
	margin: 1rem auto;
	border-radius: var(--rounded-sm, 0.25rem);
}

/* Emoji / icon nhỏ (dán từ Facebook…): giữ inline cùng dòng với chữ */
.main-article .article-content img[width="16"],
.main-article .article-content img[height="16"],
.main-article .article-content img[width="18"],
.main-article .article-content img[height="18"],
.main-article .article-content img[src*="emoji.php"],
.main-article .article-content img[src*="/emoji/"],
.main-article .rte.content img[width="16"],
.main-article .rte.content img[height="16"],
.main-article .rte.content img[src*="emoji.php"],
.main-article .rte.content img[src*="/emoji/"] {
	display: inline !important;
	width: 1.2em !important;
	height: 1.2em !important;
	max-width: 1.2em !important;
	max-height: 1.2em !important;
	margin: 0 0.12em !important;
	vertical-align: -0.2em;
	border-radius: 0;
	object-fit: contain;
}

.main-article .article-content span.html-span,
.main-article .rte.content span.html-span {
	display: inline !important;
}

.main-article .article-content > div,
.main-article .rte.content > div {
	display: block;
	margin: 0 0 0.85em;
}
.main-article .article-content > div:last-child,
.main-article .rte.content > div:last-child {
	margin-bottom: 0;
}
.main-article .article-content div[dir="auto"],
.main-article .rte.content div[dir="auto"] {
	display: block;
	margin: 0 0 0.35em;
	line-height: 1.55;
}

.section-main-blog .card-article__image,
.main-article .card-article__image {
	overflow: hidden;
}

.section-main-blog .card-article__image img,
.main-article .card-article__image img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.section-main-blog .card-article-media .card-article__image img,
.main-article .card-article-media .card-article__image img {
	width: 107px;
	height: 80px;
	max-width: 107px;
	max-height: 80px;
	object-fit: cover;
}


.ega-cate-shortcode{
	background-color: var(--color-background-body);
}
.article-share .share-group{
  justify-content: flex-start;
}
.text-lg{
	font-size: calc(var(--font-size-body) * 1.4)
}