﻿.main-full {
  display:block;
  clear:both;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:10px;
  margin-top:20px;
  width:100%;
  max-width:1200px;
}
.main-content {
	display: grid;
	grid-template-columns: 70% 30%; /* Tr�i 75%, ph?i 25% */
	gap: 20px; /* Kho?ng c�ch gi?a c?t */
	clear:both;
	margin-left:auto;
	margin-right:auto;
	margin-bottom:10px;
	margin-top:20px;
	width:100%;
	max-width:1200px;
	text-align: left;
}

/* Box demo */
.main-content .news-box,
.main-content .sidebar-box {
	margin-bottom: 15px;
	padding: 5px
}

/* Responsive cho mobile */
@media (max-width: 768px) {
	.main-content {
		grid-template-columns: 100%; /* Ch? c?n 1 c?t */
	}
}

/* ==== CSS: m?i selector b?t �?u t? .main-content ==== */
.main-content .news-box-a {
  --bg: #1e1f21;
  --card: #242526;
  --muted: rgba(255,255,255,0.65);
  --accent: #e91e63;
  color: #fff;
  background: transparent;
  padding: 18px 0;
}

/* header */
.main-content .news-box-a .nba-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  margin-bottom: 12px;
}

.main-content .news-box-a .nba-title {
  font-weight: 700;
  letter-spacing: 0.6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.main-content .news-box-a .nba-popular {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.main-content .news-box-a .nba-posts {
  color: var(--muted);
  font-size: 14px;
}

/* nav links on header right */
.main-content .news-box-a .nba-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.main-content .news-box-a .nba-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 2px 6px;
}

.main-content .news-box-a .nba-nav a:hover {
  color: var(--accent);
}
.main-content .news-box-a .nba-nav a.active {
  color: var(--accent);
  font-weight: 700;
}


.main-content .news-box-a .nav-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  width: 34px;
  height: 34px;
  cursor: pointer;
}

/* divider line */
.main-content .news-box-a .nba-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 10px 0 18px;
  border-radius: 2px;
}

/* body: two columns */
.main-content .news-box-a .nba-body {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 22px;
  align-items: start;
}

/* --- main article (left) --- */
.main-content .news-box-a .nba-main { color: #fff; }
.main-content .news-box-a .nba-main-image {
  position: relative;
  overflow: hidden;
  /* gi? khung 340x215 */
  aspect-ratio: 340 / 215;
  width: 100%;
  background: #e0e0e0;
}
.main-content .news-box-a .nba-main-image img {
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
}
.main-content .news-box-a .nba-main-image .nba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  text-transform: uppercase;
}

/* main title h3 */
.main-content .news-box-a .nba-main-title {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}
.main-content .news-box-a .nba-main-title a {
  color: #fff;
  text-decoration: none;
}
.main-content .news-box-a .nba-main-title a:hover { text-decoration: underline; }

/* meta + excerpt */
.main-content .news-box-a .nba-main-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.main-content .news-box-a .nba-excerpt {
  margin: 0;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  font-size: 14px;
}

/* --- right list (small items) --- */
.main-content .news-box-a .nba-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* each small item */
.main-content .news-box-a .nba-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.main-content .news-box-a .nba-thumb {
  position: relative;
  width: 115px;
  height: 100px;
  overflow: hidden;
  flex: 0 0 115px;
  display: block;
  background: #ddd;
}
.main-content .news-box-a .nba-thumb img {
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
}

/* small item content */
.main-content .news-box-a .nba-item-content { flex:1; }
.main-content .news-box-a .nba-item-title {
  margin: 0 0 6px;
  font-size: 14px;
}
.main-content .news-box-a .nba-item-title a {
  color: #fff;
  text-decoration: none;
}
.main-content .news-box-a .nba-item-title a:hover { text-decoration: underline; }

.main-content .news-box-a .nba-item-meta {
  font-size: 12px;
  color: var(--muted);
}


/* ===== Responsive: mobile ===== */
@media (max-width: 768px) {
  .main-content .news-box-a .nba-body {
    grid-template-columns: 1fr; /* x?p d?c */
    gap: 14px;
  }

  /* main article full width, list xu?ng d�?i */
  .main-content .news-box-a .nba-main-image {
    aspect-ratio: 340 / 215; /* gi? t? l? */
  }

  /* small item thumb gi?m k�ch th�?c cho mobile */
  .main-content .news-box-a .nba-thumb {
    width: 100px;
    height: 70px;
    flex: 0 0 100px;
  }

  .main-content .news-box-a .nba-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .main-content .news-box-a .nba-nav { gap: 8px; }
}

/* Section wrapper */
.main-content .news-section {
  margin-top: 10px;
}

.main-content .news-section .section-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-bottom: 2px solid #e91e63;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

/* Single article */
.main-content .news-box-b {
  display: grid;
  grid-template-columns: 218px 1fr;
  gap: 15px;
  align-items: start;
}

.main-content .news-box-b .news-thumb img {
  width: 100%;
  height: 170px; 
  object-fit: cover;
  display: block; 
}

.main-content .news-box-b .news-info {
  text-align: left;
}

.main-content .news-box-b .news-title {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.4;
}

.main-content .news-box-b .news-title a {
  color: #fff;
  text-decoration: none;
}

.main-content .news-box-b .news-title a:hover {
  color: #e91e63;
}

.main-content .news-box-b .news-meta {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
}

.main-content .news-box-b .news-summary {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
  .main-content .news-box-b {
    grid-template-columns: 1fr; /* ?nh full width, text xu?ng d�?i */
  }
  
  .main-content .news-box-b .news-thumb {
    height: 280px;
  } 

  .main-content .news-box-b .news-thumb img {
    width: 100%;
    height: 280px;      
    object-fit: cover;  
  }
}


.sidebar-right .sidebar-box {
  background: #1f1f1f;
  padding: 10px;
  color: #fff;
}

/* ?nh to �?u ti�n */
.sidebar-right .sidebar-featured {
  position: relative;
  margin-bottom: 20px;
}
.sidebar-right .sidebar-featured img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.sidebar-right .sidebar-featured .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.sidebar-right .sidebar-featured h3 a {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* c?t ng?n ch? cho �?p */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-right .sidebar-featured h3 a:hover {
  text-decoration: underline;
}
.sidebar-right .sidebar-featured .cat {
  display: inline-block;
  background: #e91e63;
  padding: 2px 6px;
  font-size: 12px;
  margin-bottom: 8px;
  border-radius: 3px;
}
.sidebar-right .sidebar-featured .meta {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 5px;
}

/* Danh s�ch b�i nh? */
.sidebar-right .sidebar-list .item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.sidebar-right .sidebar-list .item img {
  width: 115px;
  height: 85px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-right .sidebar-list .info h4 {
   margin: 0 0 5px 0;
}

.sidebar-right .sidebar-list .info h4 a {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;  /* c?t ch? */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-right .sidebar-list .info h4 a:hover {
  text-decoration: underline;
}
.sidebar-right .sidebar-list .rating {
  font-size: 14px;
  color: gold;
  margin-top: 5px;
}

.sidebar-box .section-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-bottom: 2px solid #e91e63;
  padding-bottom: 5px;
  margin-bottom: 20px;
  margin-top: 3px;
}

/* Responsive: khi m�n nh? th? n� xu?ng d�?i main-content */
@media (max-width: 768px) {
  .sidebar-right {
    margin-top: 20px;
  }
} 

.box-more-img .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 ?nh m?i d?ng tr�n PC */
  gap: 15px;
}

.box-more-img .item {
  position: relative;
  overflow: hidden;
}

.box-more-img .item a {
  display: block;
  position: relative;
  width: 100%;
  height: 280px; /* fix c?ng chi?u cao */
  overflow: hidden;
}

.box-more-img .item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* gi? t? l?, kh�ng m�o */
  transition: transform 0.3s ease;
}

.box-more-img .item:hover img {
  transform: scale(1.05); /* zoom nh? khi hover */
}

.box-more-img .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
  font-size: 14px;
}

.box-more-img .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
  font-size: 14px;
}

.box-more-img .overlay h4,
.box-more-img .overlay p {
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* b�ng �? m?nh */
}

/* Responsive */
@media (max-width: 768px) {
  .box-more-img .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 ?nh/d?ng ? �i?n tho?i */
  }
}

/*css show anh duoi trang*/

.box-more-img2 .grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 4 ?nh m?i d?ng tr�n PC */
  gap: 15px;
}

.box-more-img2 .item {
  position: relative;
  overflow: hidden;
}

.box-more-img2 .item a {
  display: block;
  position: relative;
  width: 100%;
  height: 250px; /* fix c?ng chi?u cao */
  overflow: hidden;
}

.box-more-img2 .item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* gi? t? l?, kh�ng m�o */
  transition: transform 0.3s ease;
}

.box-more-img2 .item:hover img {
  transform: scale(1.05); /* zoom nh? khi hover */
}

.box-more-img2 .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
  font-size: 14px;
}

.box-more-img2 .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
  font-size: 14px;
}

.box-more-img2 .overlay h4,
.box-more-img2 .overlay p {
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* b�ng �? m?nh */
}

.box-more-img2 .item a h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* ch? hi?n th? 2 d?ng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.4em;
  color: #fff;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .box-more-img2 .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 ?nh/d?ng ? �i?n tho?i */
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.pagination a {
  display: inline-block;
  padding: 8px 14px;
  background: #222; /* n?n t?i */
  color: #ddd;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #ff0066; /* h?ng highlight khi hover */
  color: #fff;
}

.pagination a.active {
  background: #ff0066; /* trang hi?n t?i */
  color: #fff;
  font-weight: bold;
}

.pagination a.prev,
.pagination a.next {
  background: #333; /* n�t m?i t�n */
  font-weight: bold;
}

/*css cat danh m?c*/

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-card {
  background: #1f1f1f;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.news-body {
  padding: 15px;
  flex: 1;
}
.news-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}
.news-body h3 a {
  color: #fff;
  text-decoration: none;
}
.news-body h3 a:hover {
  color: #06b6d4;
}
.news-meta {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 10px;
}
.news-summary {
  font-size: 14px;
  color: #d1d5db;
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* s? d?ng hi?n th? */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  border-top: 1px solid #1f2937;
  padding: 10px 15px;
  font-size: 13px;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.news-footer span {
  margin-right: 10px;
}

.btn_2{
    display: inline-block;
    vertical-align: middle;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    padding-right: 12px;
    padding-left: 12px;
    color: #fff;
    border: 0;
    border-radius: 3px;
    outline: 0;
    font-size: 100%;
    height: 40px;
    line-height: 40px;
    margin: 3px;
    -webkit-font-smoothing: antialiased;
}

/* style chuẩn, đặt ở cuối file CSS để override */
.news-cat a.btn_2 {
  display: inline-flex;           /* căn giữa theo chiều dọc */
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  vertical-align: middle;
  font-size: 13px;                /* cỡ chữ rõ ràng */
  font-weight: 600;
  line-height: 1;                 /* không làm nút cao thêm */
  padding: 4px 10px;              /* gọn: top/bottom nhỏ */
  border-radius: 1px;
  height: auto;                   /* vô hiệu hóa height cố định */
  min-height: 0;
  text-decoration: none;
  color: #fff;
  background-color: #ed2553;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .05s ease, background-color .15s ease;
}

/* hover: gạch chân chữ */
.news-cat a.btn_2:hover,
.news-cat a.btn_2:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

/* nếu vẫn bị override bởi rules khác, dùng bản cưỡng chế */
.news-cat a.btn_2.force {
  font-size: 13px !important;
  padding: 4px 10px !important;
  line-height: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  background-color: #ed2553 !important;
  color: #fff !important;
  border-radius: 6px !important;
}

.hz-pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 4px;
    padding: 0;
    margin: 20px 0;
    justify-content: center;
}
.hz-page-item {}
.hz-page-link {
    display: block;
    padding: 6px 12px;
    background: #ed2553;
    border: 1px solid #ed2553;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}
.hz-page-item.active .hz-page-link {
    background: #000;
    color: #fff;
    border-color: #ed2553;
}
.hz-page-item .hz-page-link:hover {
    background: #000;
}
.hz-page-item.hz-ellipsis {
    padding: 6px 12px;
    color: #777;
}
@media (max-width: 600px) {
    .hz-page-link {
        padding: 4px 8px;
        font-size: 12px;
    }
}

.btn-readmore {
  display: block;              /* full width giống btn-block */
  width: 100%;
  background-color: #ed2553;   /* nền đỏ */
  color: #fff !important;                 /* chữ trắng */
  font-weight: bold;           /* chữ đậm */
  font-size: 1.5rem;             /* chữ to vừa phải (~16px) */
  text-align: center;          /* căn giữa chữ */
  padding: 12px 16px;          /* nút cao, to */
  cursor: pointer;
  text-decoration: none;       /* bỏ gạch chân nếu là thẻ a */
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-readmore:hover,
.btn-readmore:focus {
  background-color: #d91f48;   /* đỏ đậm hơn khi hover */
  text-underline-offset: 3px;
  outline: none;
}

.btn-readmore:active {
  transform: translateY(1px);  /* hiệu ứng nhấn */
}

.navbreak {
  border-radius: 0 !important;
  background: linear-gradient(to right, #1f1f1f, #0d0d0d) !important;
}

/*css post detail*/
.detail_content {
  font-size: 1.2rem; /* ~14px (16px * 0.875) */
  line-height: 1.6;    /* dễ đọc */
  color: #fff;         /* màu chữ cơ bản */
  word-wrap: break-word;
}

/* Đảm bảo co giãn đẹp trên mọi thiết bị */
.detail_content p,
.detail_content ul,
.detail_content ol {
  margin-bottom: 1em;
}

/* Ảnh trong bài viết */
.detail_content img {
  display: block;
  max-width: 100%;    /* không tràn màn hình */
  height: auto;
  margin: 1em auto;   /* căn giữa */
}

/* Link trong bài */
.detail_content a {
  color: #fff0a2  !important;    /* màu mặc định (xanh) */
  text-decoration: none;   /* bỏ gạch chân */
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.detail_content a:hover {
  color: #ed2553;          /* đổi màu khi hover */
  text-decoration: underline;
}

.list-link.list-type-1 {width:100%;max-width:900px;margin:0 auto;}
    .list-link.list-type-1 .item {display:flex;gap:10px;border-bottom:1px solid #4f4f4f;padding:10px 0;}
    .list-link.list-type-1 .thumb {flex:0 0 20%;max-width:20%;}
    .list-link.list-type-1 .thumb img {width:85%;height:auto;display:block;}
    .list-link.list-type-1 .content {flex:1;max-width:80%;}
    .list-link.list-type-1 h3 {font-size:16px;font-weight:bold;margin:0 0 5px;line-height:1.3em;max-height:2.6em;overflow:hidden;}
    .list-link.list-type-1 h3 a {display:inline-block;text-decoration:none; font-size: 18px;}
    .list-link.list-type-1 h3 a:hover {overflow:visible;white-space:normal;}
    .list-link.list-type-1 .cat {font-size:13px;}
    .list-link.list-type-1 .year {font-size:12px;}
    @media (max-width:600px){.list-link.list-type-1 .item{flex-direction:column;}.list-link.list-type-1 .thumb,.list-link.list-type-1 .content{max-width:100%;flex:100%;}}
	
	
.list-link.list-type-2 {display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:15px;max-width:1000px;margin:0 auto;}
    .list-link.list-type-2 .item {border:1px solid #1f1f1f;padding:10px;display:flex;flex-direction:column;}
    .list-link.list-type-2 .thumb {width:100%;margin-bottom:10px;}
    .list-link.list-type-2 .thumb img {width:100%;height:auto;display:block;}
    .list-link.list-type-2 h3 {font-size:15px;font-weight:bold;margin:0 0 5px;line-height:1.3em;max-height:2.6em;overflow:hidden;}
    .list-link.list-type-2 h3 a {display:inline-block;text-decoration:none;}
    .list-link.list-type-2 h3 a:hover {color: #fff !important; overflow:visible;white-space:normal;}
    .list-link.list-type-2 .cat {font-size:13px;}
    .list-link.list-type-2 .year {font-size:12px;}
    @media (max-width:600px){.list-link.list-type-2{grid-template-columns:repeat(2,1fr);}}
	
/* H1 */
.post-title {
  font-size: 2rem;        /* to ở desktop */
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.3;
  color: #fff;
}

/* responsive: nhỏ hơn trên mobile */
@media (max-width: 768px) {
  .post-title {
    font-size: 1.4rem;
  }
}

/* gạch ngang phân cách */
.post-divider {
  border: none;
  border-top: 1px solid #1f1f1f;
  margin: 1em 0;
}

/* danh sách thông tin */
.authar-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1em; /* khoảng cách giữa các mục */
  font-size: 0.9rem;
  color: #fff;
}

.authar-info li {
  display: inline-flex;
  align-items: center;
  position: relative;
}

/* thêm dấu chấm phân cách trước các li (trừ cái đầu) */
.authar-info li:not(:first-child)::before {
  content: "•";
  margin: 0 0.6em;
  color: #aaa;
}

/* link trong ul */
.authar-info a {
  color: inherit;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.authar-info a:hover {
  text-decoration: underline;
}

.post_cover {
  width: 70%;
  margin: 0;
  overflow: hidden;      /* tránh tràn */
  display: flex;
  align-items: center; 
  margin: auto;
}

/* ảnh co đầy ngang, giữ tỉ lệ */
.post_cover img {
  display: block;        /* loại bỏ gap dưới inline-img */
  width: 100%;           /* chiếm full chiều ngang khung chứa */
  height: auto;          /* giữ tỷ lệ */
  max-width: 100%;
  object-fit: cover;     /* hữu ích nếu bạn dùng chiều cao cố định */
  vertical-align: middle;
}

/*Phần lazy trong post */

.lazy-wrapper {
  position: relative;
  display: flex;          /* dùng flex */
  justify-content: center; /* căn ngang */
  align-items: center;     /* căn dọc nếu cha cao hơn ảnh */
}

.lazy-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto; /* căn giữa nếu không dùng flex */
}

.spinner_post {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(237,37,83,0.3);
  border-top: 4px solid #ed2553;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2;
}

.lazyloaded + .spinner_post {
  display: none;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/*css table of content*/

.detail_content ul {
  counter-reset: toc-counter; /* reset bộ đếm */
  margin: 20px 0;
  padding: 0;
  list-style: none;
  border-collapse: collapse;
  width: 100%;
}

.detail_content ul::before {
  content: "🔥 Quick Overview";
  display: block;
  font-size: 1.4em;
  font-weight: bold;
  color: #ff4d6d;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail_content ul li {
  counter-increment: toc-counter; /* tăng số */
  margin: 0;
  padding: 12px 16px 12px 50px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s ease;
}

.detail_content ul li:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail_content ul li::before {
  content: counter(toc-counter) ".";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #ff4d6d;
  font-size: 1.1em;
}

.detail_content ul li a {
  color: #ddd;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.detail_content ul li a:hover {
  color: #ff4d6d;
  transform: translateX(5px); /* nhún sang ngang */
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.post-tags a {
  display: inline-block;
  background: #1e1e1e;      /* nền tối */
  color: #ddd;              /* chữ sáng */
  font-size: 12px;
  padding: 5px 10px;  
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #333;
}

.post-tags a:hover {
  background: #333;          /* hover sáng hơn */
  color: #fff;
  border-color: #555;
}

.tags-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #ff4d6d; /* màu nhấn (hợp tông giao diện đỏ/hồng) */
  font-size: 15px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
 
}

.related-item a {
  display: block;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.related-item a:hover {
  opacity: 0.7;
}

.related-thumb {
  width: 100%;
  height: 120px; 
  overflow: hidden;
}

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

.related-title {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* cắt tối đa 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive: 2 ảnh / hàng */
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;  
  padding: 20px 0;
  gap: 40px;
}

.post-nav a {
  flex: 1;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease;
}

.post-nav a:hover {
  opacity: 0.8;
}

.post-prev {
  text-align: left;
}

.post-next {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #ff2a6d; /* hồng nổi bật */
  margin-bottom: 5px;
}

.nav-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4em;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* cắt tối đa 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* =COMMENT MINI CSS= */
.cmt-mini {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03); /* subtle panel */
  color: #e6e6e6;
  width: 100%;
  max-width: none;
  margin-bottom: 15px;
  box-sizing: border-box;
}

/* avatar */
.cmt-mini__avatar img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

/* body */
.cmt-mini__body {
  flex: 1 1 auto;
  min-width: 0; /* allow ellipsis */
}

/* meta row: author + time */
.cmt-mini__meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1;
}

/* author link */
.cmt-mini__author {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  display: inline-block;
}

/* hover effect on author */
.cmt-mini__author:hover {
  text-decoration: underline;
  opacity: 0.95;
}

/* time */
.cmt-mini__time {
  color: #bcbcbc;
  font-size: 12px;
}

/* comment text */
.cmt-mini__text {
  color: #dcdcdc;
  font-size: 14px;
  line-height: 1.4;
  max-height: 3.8em; /* show up to ~2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

/* small screens: tighten spacing */
@media (max-width: 480px) {
  .cmt-mini {
    gap: 10px;
    padding: 8px 10px;
  }
  .cmt-mini__avatar img { width: 40px; height: 40px; border-radius: 6px; }
  .cmt-mini__author { max-width: 55%; font-size: 14px; }
  .cmt-mini__text { font-size: 13px; }
}

.fix_margin_bottom {
  margin-bottom: -15px !important;
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.review-list li {
  margin-bottom: 12px;
  padding-left: 15px;
  position: relative;
}

.review-list li::before {
  content: "▶"; /* mũi tên */
  font-size: 10px;
  color: #e91e63; /* màu đỏ hồng */
  position: absolute;
  left: 0;
  top: 2px;
}

.review-list a {
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.review-list a:hover {
  color: #e91e63;
}

.stick {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 15px; /* khoảng cách cách trên khi dính */
  z-index: 10; /* tránh bị chồng đè */
}

/* Trên mobile thì bỏ sticky */
@media (max-width: 768px) {
  .stick {
    position: static;
    top: auto;
  }
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mini-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mini-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 142%; /* giữ tỉ lệ ảnh */
  overflow: hidden;
  border-radius: 4px;
}

.mini-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.mini-card a:hover img {
  opacity: 0.8;
}

.mini-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
}

.mini-title {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.3em;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* cắt tối đa 1 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-time {
  font-size: 11px;
  color: #ccc;
}

.seo-note {
  background: #1f1f1f; /* nền tối hơn chút so với nền site */
  border: 2px dashed #383838; /* viền vàng dashed */
  padding: 15px 20px;  
  font-size: 15px;
  line-height: 1.6;
  color: #ddd; /* chữ sáng dễ đọc trên nền tối */
}

.seo-note h1{
	font-size: 20px;
}

.seo-note h2{
	font-size: 18px;
}

.seo-note a {
  color: #f1c40f !important; /* link vàng */
  text-decoration: none;
  font-weight: 600;
}

.seo-note a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .seo-note {
    font-size: 14px;
    padding: 12px 15px;
  }
}

.note_sidebar{
	 font-size: 15px;
    line-height: 1.6;
}

.note_sidebar a {
  color: #f1c40f !important; /* link vàng */
  text-decoration: none;
}


/* Iframe responsive */
.box_video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio => 9/16 = 0.5625 */
    border-radius: 8px;
    overflow: hidden;
}

.box_video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Cho màn hình nhỏ hơn 768px (tablet + mobile) */
@media screen and (max-width: 768px) {
    .box_video iframe {
        height: 300px; /* thấp hơn để vừa màn hình */
    }
}

/* Cho màn hình nhỏ hơn 480px (mobile nhỏ) */
@media screen and (max-width: 480px) {
    .box_video iframe {
        height: 250px;
    }
}

.mytable-wrap {
		padding: 10px;
	}
	table.mytable {
		width: 100% !important;
		border-collapse: collapse;
	}
	table.mytable td img {
		max-width: 70px;
		border-radius: 6px;
	}
	table.mytable td a {
		display: inline-block;
		max-width: 200px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	
	.mytable-wrap ul::before {
    content: none !important; /* hủy bỏ pseudo */
    display: none !important;
}
	
	.mytable-wrap ul {
	  list-style: disc !important;
	  margin: 1em 0 !important;
	  padding-left: 40px !important;
	  border: none !important;
	  counter-reset: none !important;
	  width: auto !important;
	}

	.mytable-wrap li {
	  display: list-item !important;
	  margin: 0 !important;
	  padding: 0 !important;
	  border: none !important;
	  counter-increment: none !important;
	  position: static !important;
	}

	.mytable-wrap li::before {
	  content: none !important;
	}

	.mytable-wrap li a {
	  color: #e360d8 !important;
	  text-decoration: underline !important;
	  display: inline !important;
	  transform: none !important;
	}