/* Tin tức Pro — CSS trang danh sách + chi tiết.
 * Prefix .tt- để tránh đụng theme Flatsome. Có khối "reset" riêng để
 * vô hiệu các style chung của Flatsome (button viết hoa, li margin, h màu xám...).
 */

.tt-wrap,
.tt-shortcode,
.tt-progress {
	/* Màu thương hiệu mặc định — plugin tự ghi đè theo màu chủ đạo của website (inc/brand.php). */
	--tt-primary: #2563eb;
	--tt-primary-dark: #1e51c1;
	--tt-primary-darker: #1943a0;
	--tt-primary-light: #79a2f3;
	--tt-primary-soft: #f4f7fe;
	--tt-primary-soft2: #e9f0fd;
	--tt-primary-line: #dde7fc;
	--tt-primary-rgb: 37, 99, 235;
	--tt-text: #111827;
	--tt-body: #2b3140;
	--tt-muted: #6b7280;
	--tt-faint: #9ca3af;
	--tt-line: #e9ecf1;
	--tt-surface: #f7f8fa;
	--tt-radius: 14px;
	--tt-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
	--tt-sticky-top: 90px;
	--tt-content-size: 17px;
	box-sizing: border-box;
}
.tt-wrap *, .tt-wrap *::before, .tt-wrap *::after,
.tt-shortcode *, .tt-shortcode *::before, .tt-shortcode *::after { box-sizing: border-box; }

.tt-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 20px 60px;
	color: var(--tt-body);
}

/* ---------- Reset xung đột Flatsome ---------- */
.tt-wrap h1, .tt-wrap h2, .tt-wrap h3, .tt-wrap h4,
.tt-shortcode h2, .tt-shortcode h3, .tt-shortcode h4 { color: var(--tt-text); letter-spacing: normal; text-transform: none; }
.tt-wrap a:not(.tt-btn) { text-decoration: none; }
.tt-wrap :where(nav, aside, .tt-article-meta, .tt-price-block, .tt-tips-block, .tt-tags, .tt-author-box) :where(ul, ol),
.tt-shortcode :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.tt-wrap :where(nav, aside, .tt-article-meta, .tt-price-block, .tt-tips-block) li,
.tt-shortcode li { margin: 0; }
.tt-wrap button,
.tt-wrap .tt-btn,
.tt-shortcode .tt-btn {
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	margin: 0;
	line-height: 1.3;
	text-shadow: none;
	box-shadow: none;
	font-family: inherit;
}
.tt-wrap img { max-width: 100%; }
.tt-wrap figure { margin: 0; }

/* ---------- Thanh tiến độ đọc ---------- */
.tt-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100000; pointer-events: none; }
.tt-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--tt-primary), var(--tt-primary-light)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .1s linear; }
.admin-bar .tt-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .tt-progress { top: 46px; } }

/* ---------- Breadcrumb ---------- */
.tt-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 20px !important; font-size: 13px; color: var(--tt-faint); }
.tt-breadcrumb li { display: flex; align-items: center; gap: 6px; margin: 0 !important; }
.tt-breadcrumb a { color: var(--tt-muted); }
.tt-breadcrumb a:hover { color: var(--tt-primary); }
.tt-breadcrumb [aria-current="page"] { color: var(--tt-text); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 60ch; }

/* ---------- Page header (danh sách) ---------- */
.tt-page-header { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.tt-page-header h1 { font-size: 32px; font-weight: 800; margin: 0 0 10px; line-height: 1.25; }
.tt-page-header p { color: var(--tt-muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- Filter pills ---------- */
.tt-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 32px; }
.tt-filter-btn {
	--tt-cat-color: var(--tt-primary);
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 16px; border-radius: 999px; border: 1px solid var(--tt-line);
	background: #fff; color: #374151; font-size: 14px; font-weight: 600; transition: all .15s ease;
}
.tt-filter-btn .dashicons { font-size: 16px; width: 16px; height: 16px; color: var(--tt-cat-color); }
.tt-filter-btn:hover { border-color: var(--tt-cat-color); color: var(--tt-cat-color); }
.tt-filter-btn.is-active { background: var(--tt-primary); border-color: var(--tt-primary); color: #fff; }
.tt-filter-btn.is-active .dashicons { color: #fff; }

/* Mobile: 1 hàng, vuốt ngang dạng slide (v1.2.1) */
@media (max-width: 768px) {
	.tt-filters {
		flex-wrap: nowrap; justify-content: flex-start; gap: 8px;
		overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity; scroll-padding-inline: 20px; overscroll-behavior-x: contain;
		scrollbar-width: none; margin-bottom: 24px; padding: 2px 0 4px;
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
		mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
	}
	.tt-filters::-webkit-scrollbar { display: none; }
	.tt-filters.at-start { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%); }
	.tt-filters.at-end { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px); mask-image: linear-gradient(to right, transparent 0, #000 20px); }
	.tt-filters.at-start.at-end { -webkit-mask-image: none; mask-image: none; }
	/* Tràn sát mép màn hình trong trang tin tức để có thêm chỗ vuốt. */
	.tt-wrap .tt-filters { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
	.tt-filter-btn { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; padding: 8px 14px; font-size: 13.5px; }
}
@media (max-width: 600px) {
	.tt-wrap .tt-filters { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding-inline: 16px; }
}

/* ---------- Section headings ---------- */
.tt-section { margin: 0 0 44px; }
.tt-section-title { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; margin: 0 0 18px; }
.tt-section-title-bar { position: relative; padding-left: 14px; }
.tt-section-title-bar::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; background: var(--tt-primary); border-radius: 2px; }

/* ---------- Cards ---------- */
.tt-card { display: flex; flex-direction: column; color: inherit; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--tt-line); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.tt-card:hover { box-shadow: var(--tt-shadow); transform: translateY(-3px); border-color: transparent; color: inherit; }
.tt-card h3, .tt-card h4 { margin: 0 0 8px; color: var(--tt-text); transition: color .15s ease; }
.tt-card:hover h3, .tt-card:hover h4 { color: var(--tt-primary); }
.tt-card-thumb { position: relative; background: #eef0f3; aspect-ratio: 16/10; overflow: hidden; }
.tt-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; transition: transform .4s ease; }
.tt-card:hover .tt-card-thumb img { transform: scale(1.04); }
.tt-thumb-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 22px; }
.tt-badge { position: absolute; left: 12px; top: 12px; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; line-height: 1.4; }
.tt-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.tt-card-body p { color: var(--tt-muted); font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.tt-card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--tt-faint); margin-top: auto; }
.tt-card-grid h4, .tt-card-featured h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.4; }
.tt-card-grid h4 { font-size: 16px; }

.tt-most-read { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.tt-card-featured h3 { font-size: 20px; }
.tt-most-read-side { display: flex; flex-direction: column; gap: 12px; }
.tt-card-side { flex-direction: row; gap: 12px; padding: 10px; align-items: center; }
.tt-card-side .tt-card-thumb { width: 88px; height: 66px; flex: 0 0 auto; aspect-ratio: auto; border-radius: 8px; }
.tt-card-side .tt-card-body { padding: 0; }
.tt-card-side h4 { font-size: 14.5px; line-height: 1.4; margin: 0 0 6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

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

/* ---------- Pagination ---------- */
.tt-pagination { display: flex; justify-content: center; margin-top: 28px; }
.tt-pagination ul { display: flex; gap: 8px; }
.tt-pagination a, .tt-pagination span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--tt-line); color: #374151; font-weight: 600; }
.tt-pagination .current { background: var(--tt-primary); border-color: var(--tt-primary); color: #fff; }
.tt-pagination a:hover { border-color: var(--tt-primary); color: var(--tt-primary); }

/* ---------- Buttons ---------- */
.tt-btn { padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; transition: background .15s ease, color .15s ease; }
.tt-btn-solid { background: var(--tt-primary); color: #fff !important; }
.tt-btn-solid:hover { background: var(--tt-primary-dark); }
.tt-btn-outline { background: #fff; color: var(--tt-primary) !important; border-color: var(--tt-primary); }
.tt-btn-outline:hover { background: var(--tt-primary-soft); }

/* ---------- CTA banner ---------- */
.tt-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(100deg, var(--tt-primary-soft), var(--tt-primary-soft2)); border: 1px solid var(--tt-primary-line); border-radius: 18px; padding: 24px 28px; margin-top: 8px; }
.tt-cta-icon { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; box-shadow: 0 4px 12px rgba(var(--tt-primary-rgb), .12); }
.tt-cta-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.tt-cta-text strong { font-size: 18px; color: var(--tt-text); }
.tt-cta-text span { color: var(--tt-muted); font-size: 14px; }
.tt-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =====================================================================
   TRANG CHI TIẾT — bố cục 2 cột
   ===================================================================== */
.tt-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-bottom: 48px; }
.tt-single.no-sidebar .tt-single-layout { grid-template-columns: minmax(0, 820px); justify-content: center; }

.tt-article { min-width: 0; background: #fff; }

/* Header bài viết */
.tt-article-cat { --tt-cat-color: var(--tt-primary); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tt-cat-color) !important; background: color-mix(in srgb, var(--tt-cat-color) 10%, #fff); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.tt-article-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tt-article-title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.25; font-weight: 800; margin: 0 0 14px; }
.tt-article-excerpt { color: var(--tt-muted); font-size: 17px; line-height: 1.7; margin: 0 0 20px; }

.tt-article-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 14px 0; margin-bottom: 24px; border-top: 1px solid var(--tt-line); border-bottom: 1px solid var(--tt-line); }
.tt-meta-author { display: flex; align-items: center; gap: 10px; }
.tt-meta-author img { width: 40px; height: 40px; border-radius: 50%; display: block; margin: 0; }
.tt-meta-author strong { display: block; font-size: 14.5px; color: var(--tt-text); line-height: 1.3; }
.tt-meta-author span { display: block; font-size: 12.5px; color: var(--tt-faint); line-height: 1.3; }
.tt-meta-list { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--tt-muted); }
.tt-meta-list li { display: inline-flex; align-items: center; gap: 6px; }
.tt-meta-list .tt-ico { color: var(--tt-faint); }
.tt-ico { flex: 0 0 auto; vertical-align: middle; }

.tt-wrap .tt-article-thumb { border-radius: var(--tt-radius); overflow: hidden; margin: 0 0 28px; background: #eef0f3; }
.tt-article-thumb img { width: 100%; height: auto; display: block; margin: 0; }

/* Mục lục */
.tt-toc-list { counter-reset: none; display: flex; flex-direction: column; gap: 2px; }
.tt-toc-list a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 8px; color: #374151; font-size: 14.5px; line-height: 1.45; border-left: 2px solid transparent; transition: background .15s, color .15s; }
.tt-toc-list a:hover { background: var(--tt-surface); color: var(--tt-primary); }
.tt-toc-list a.is-active { background: var(--tt-primary-soft); color: var(--tt-primary); border-left-color: var(--tt-primary); font-weight: 600; }
.tt-toc-num { flex: 0 0 22px; height: 22px; border-radius: 6px; background: var(--tt-surface); color: var(--tt-muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 0; }
.tt-toc-list a.is-active .tt-toc-num { background: var(--tt-primary); color: #fff; }
.tt-toc-level-3 a { padding-left: 42px; font-size: 13.5px; color: var(--tt-muted); }

.tt-toc-inline { display: none; border: 1px solid var(--tt-line); background: var(--tt-surface); border-radius: 12px; margin: 0 0 24px; }
.tt-toc-inline summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; color: var(--tt-text); }
.tt-toc-inline summary::-webkit-details-marker { display: none; }
.tt-toc-inline summary em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--tt-faint); margin-left: auto; }
.tt-toc-inline summary .tt-ico:last-child { transition: transform .2s; color: var(--tt-faint); }
.tt-toc-inline[open] summary .tt-ico:last-child { transform: rotate(180deg); }
.tt-toc-inline nav { padding: 0 8px 12px; }
.tt-single.no-sidebar .tt-toc-inline { display: block; }

/* Nội dung */
.tt-content { font-size: var(--tt-content-size); line-height: 1.85; color: var(--tt-body); overflow-wrap: break-word; }
.tt-content > *:first-child { margin-top: 0; }
.tt-content h2 { font-size: 24px; font-weight: 800; line-height: 1.35; margin: 40px 0 14px; scroll-margin-top: calc(var(--tt-sticky-top) + 10px); }
.tt-content h3 { font-size: 20px; font-weight: 700; line-height: 1.4; margin: 30px 0 12px; scroll-margin-top: calc(var(--tt-sticky-top) + 10px); }
.tt-content h4 { font-size: 18px; margin: 24px 0 10px; }
.tt-content p { margin: 0 0 18px; }
.tt-wrap .tt-content a { color: var(--tt-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tt-wrap .tt-content a:hover { color: var(--tt-primary-dark); }
.tt-content ul, .tt-content ol { margin: 0 0 18px; padding-left: 24px; }
.tt-content ul { list-style: disc; }
.tt-content ol { list-style: decimal; }
.tt-content li { margin: 0 0 8px; }
.tt-content img { max-width: 100%; height: auto; border-radius: 12px; }
.tt-wrap .tt-content figure { margin: 24px 0; }
.tt-content figcaption, .tt-content .wp-caption-text { text-align: center; font-size: 13.5px; color: var(--tt-faint); margin-top: 8px; }
.tt-content blockquote { margin: 24px 0; padding: 16px 20px; background: var(--tt-surface); border-left: 4px solid var(--tt-primary); border-radius: 0 12px 12px 0; font-style: normal; color: var(--tt-text); }
.tt-content blockquote p:last-child { margin-bottom: 0; }
.tt-content hr { border: none; border-top: 1px solid var(--tt-line); margin: 28px 0; }
.tt-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 20px; display: block; overflow-x: auto; }
.tt-content th, .tt-content td { border: 1px solid var(--tt-line); padding: 10px 14px; text-align: left; }
.tt-content th { background: var(--tt-surface); }
.tt-content iframe, .tt-content video { max-width: 100%; }
.tt-content .wp-block-embed__wrapper iframe { aspect-ratio: 16/9; height: auto; width: 100%; }
.tt-page-links { display: flex; gap: 8px; align-items: center; margin: 20px 0; font-weight: 600; }

/* ---------- Thu gọn nội dung ---------- */
.tt-article-body { position: relative; }
.tt-article-body.is-collapsed { overflow: hidden; transition: max-height .5s ease; }
.tt-article-body.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--tt-fade, 48px); background: linear-gradient(rgba(255,255,255,0), #fff 90%); pointer-events: none; }
.tt-article-body.is-expanding { overflow: hidden; transition: max-height .5s ease; }
.tt-expand { position: relative; display: flex; justify-content: center; margin: 4px 0 8px; }
.tt-expand[hidden] { display: none; }
.tt-expand::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--tt-primary-line); }
.tt-wrap .tt-expand-btn {
	position: relative; display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 22px; border-radius: 999px; border: 1px solid var(--tt-primary);
	background: #fff; color: var(--tt-primary); font-size: 14.5px; font-weight: 700; cursor: pointer;
	box-shadow: 0 6px 18px rgba(var(--tt-primary-rgb), .15); transition: background .15s, color .15s, transform .15s;
}
.tt-wrap .tt-expand-btn:hover { background: var(--tt-primary); color: #fff; transform: translateY(-1px); }
.tt-expand-btn .tt-ico { animation: tt-bounce 1.6s ease-in-out infinite; }
@keyframes tt-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---------- Khối mở rộng ---------- */
.tt-block { margin: 36px 0; }
.tt-block h2 { font-size: 22px; font-weight: 800; margin: 0 0 16px; }

.tt-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tt-price-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--tt-line); border-radius: var(--tt-radius); padding: 22px 20px 20px; background: #fff; transition: box-shadow .2s; }
.tt-price-card:hover { box-shadow: var(--tt-shadow); }
.tt-price-card.is-featured { border-color: var(--tt-primary); box-shadow: 0 0 0 1px var(--tt-primary); }
.tt-price-badge { position: absolute; top: -11px; left: 16px; background: var(--tt-primary); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tt-price-card h3 { margin: 4px 0 2px; font-size: 18px; }
.tt-price-speed { color: var(--tt-muted); font-size: 14px; margin: 0 0 12px; }
.tt-price-features { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px !important; }
.tt-price-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #374151; line-height: 1.5; }
.tt-price-features .tt-ico { color: #16a34a; margin-top: 3px; }
.tt-price-amount { font-size: 20px; font-weight: 800; color: var(--tt-primary); margin: auto 0 10px; }
.tt-price-amount span { font-size: 13px; font-weight: 500; color: var(--tt-muted); }
.tt-price-link { font-size: 14px; font-weight: 700; color: #374151; }
.tt-price-link:hover { color: var(--tt-primary); }
.tt-price-all { margin-top: 18px; }

.tt-table-scroll { overflow-x: auto; border: 1px solid var(--tt-line); border-radius: 12px; }
.tt-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.tt-table th, .tt-table td { border: 0; border-bottom: 1px solid var(--tt-line); padding: 12px 14px; text-align: left; white-space: nowrap; line-height: 1.4; }
.tt-table tbody tr:last-child td { border-bottom: 0; }
.tt-table tbody tr:nth-child(even) { background: #fbfbfc; }
.tt-table th { background: var(--tt-surface); font-weight: 700; color: var(--tt-text); }

.tt-tips-block { background: #f0f6ff; border: 1px solid #dbe8fe; border-radius: var(--tt-radius); padding: 20px 22px; }
.tt-tips-list { display: flex; flex-direction: column; gap: 10px; }
.tt-tips-list li { position: relative; padding-left: 22px; font-size: 15px; color: #374151; line-height: 1.6; }
.tt-tips-list li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: #2563eb; }

.tt-faq-list { display: flex; flex-direction: column; gap: 10px; }
.tt-faq-item { border: 1px solid var(--tt-line); border-radius: 12px; padding: 0; background: #fff; transition: border-color .15s; }
.tt-faq-item[open] { border-color: var(--tt-primary-line); }
.tt-faq-item summary { cursor: pointer; font-weight: 700; font-size: 15.5px; color: var(--tt-text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; }
.tt-faq-item summary::-webkit-details-marker { display: none; }
.tt-faq-item summary::after { content: "+"; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--tt-surface); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--tt-muted); }
.tt-faq-item[open] summary::after { content: "–"; background: var(--tt-primary); color: #fff; }
.tt-faq-answer { padding: 0 18px 16px; color: var(--tt-muted); font-size: 15px; line-height: 1.75; }
.tt-faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Footer bài viết ---------- */
.tt-article-footer { margin: 32px 0 24px; }
.tt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--tt-faint); }
.tt-tags a { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--tt-surface); color: #374151; border: 1px solid var(--tt-line); }
.tt-tags a:hover { border-color: var(--tt-primary); color: var(--tt-primary); }
.tt-article-footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--tt-line); border-bottom: 1px solid var(--tt-line); padding: 14px 0; font-size: 13.5px; color: var(--tt-faint); }
.tt-share-wrap { display: flex; align-items: center; gap: 10px; }
.tt-share { display: flex; align-items: center; gap: 8px; }
.tt-wrap .tt-share-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--tt-surface); border: 1px solid var(--tt-line); display: inline-flex; align-items: center; justify-content: center; color: #374151; cursor: pointer; transition: all .15s; }
.tt-wrap .tt-share-btn:hover { color: #fff; border-color: transparent; transform: translateY(-1px); }
.tt-share-fb:hover { background: #1877f2 !important; }
.tt-share-x:hover { background: #111 !important; }
.tt-share-in:hover { background: #0a66c2 !important; }
.tt-share-mail:hover, .tt-copy-link:hover { background: var(--tt-primary) !important; }
.tt-copy-ok { display: none; }
.tt-copy-link.is-copied { background: #16a34a !important; color: #fff !important; }
.tt-copy-link.is-copied .tt-copy-ico { display: none; }
.tt-copy-link.is-copied .tt-copy-ok { display: inline-flex; }
.tt-copy-ico, .tt-copy-ok { line-height: 0; }

/* ---------- Tác giả ---------- */
.tt-author-box { display: flex; gap: 18px; background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); padding: 22px; margin-bottom: 36px; }
.tt-author-box img { border-radius: 50%; flex: 0 0 auto; width: 72px; height: 72px; margin: 0; }
.tt-author-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--tt-faint); margin-bottom: 2px; }
.tt-author-info strong { font-size: 17px; color: var(--tt-text); }
.tt-author-role, .tt-author-bio { margin: 4px 0 0; color: var(--tt-muted); font-size: 14px; line-height: 1.6; }
.tt-author-social { display: flex; gap: 14px; margin-top: 10px; }
.tt-author-social a { font-size: 13px; color: var(--tt-primary); font-weight: 600; }

.tt-comments { border-top: 1px solid var(--tt-line); padding-top: 24px; }

/* ---------- Sidebar ---------- */
.tt-sidebar { display: flex; flex-direction: column; gap: 20px; align-self: stretch; min-width: 0; }
.tt-side-box { background: #fff; border: 1px solid var(--tt-line); border-radius: var(--tt-radius); padding: 18px; }
.tt-side-title { display: flex; align-items: center; gap: 8px; font-size: 16px !important; font-weight: 800; margin: 0 0 12px !important; padding-bottom: 12px; border-bottom: 1px solid var(--tt-line); color: var(--tt-text); }
.tt-side-title .tt-ico { color: var(--tt-primary); }
.tt-side-toc .tt-toc-list { max-height: 50vh; overflow-y: auto; scrollbar-width: thin; margin: 0 -6px !important; }

.tt-side-posts { display: flex; flex-direction: column; gap: 4px; }
.tt-side-posts a { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 10px; color: inherit; transition: background .15s; }
.tt-side-posts a:hover { background: var(--tt-surface); }
.tt-side-posts a:hover strong { color: var(--tt-primary); }
.tt-side-thumb { position: relative; flex: 0 0 76px; height: 58px; border-radius: 8px; overflow: hidden; background: #eef0f3; }
.tt-side-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.tt-side-thumb em { position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; border-radius: 6px; background: var(--tt-primary); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tt-side-post-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tt-side-post-body strong { font-size: 14px; line-height: 1.4; color: var(--tt-text); font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; transition: color .15s; }
.tt-side-post-body small { font-size: 12px; color: var(--tt-faint); }

.tt-side-cats ul { display: flex; flex-direction: column; gap: 2px; }
.tt-side-cats a { --tt-cat-color: var(--tt-primary); display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: #374151; font-size: 14.5px; transition: background .15s; }
.tt-side-cats a i { width: 8px; height: 8px; border-radius: 50%; background: var(--tt-cat-color); flex: 0 0 auto; }
.tt-side-cats a span { flex: 1; }
.tt-side-cats a b { font-size: 12px; font-weight: 600; color: var(--tt-muted); background: var(--tt-surface); border-radius: 999px; padding: 2px 9px; }
.tt-side-cats a:hover, .tt-side-cats a.is-active { background: var(--tt-surface); color: var(--tt-cat-color); }

.tt-side-widget ul { list-style: none; margin: 0; padding: 0; }
.tt-side-widget li { margin: 0 0 8px; }

.tt-side-sticky { position: sticky; top: var(--tt-sticky-top); }
.tt-side-cta { background: linear-gradient(160deg, var(--tt-primary), var(--tt-primary-darker)); border: 0; color: #fff; text-align: left; position: relative; overflow: hidden; }
.tt-side-cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); }
.tt-side-cta-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin: 0 0 6px; }
.tt-wrap .tt-side-cta h3 { color: #fff; font-size: 18px; line-height: 1.35; margin: 0 0 8px; }
.tt-side-cta p { font-size: 14px; line-height: 1.55; opacity: .9; margin: 0 0 14px; }
.tt-side-cta .tt-btn-solid { position: relative; z-index: 1; width: 100%; background: #fff; color: var(--tt-primary) !important; }
.tt-side-cta .tt-btn-solid:hover { background: var(--tt-primary-soft); }
.tt-side-hotline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; color: #fff !important; font-weight: 800; font-size: 17px; letter-spacing: .02em; }

/* Related */
.tt-related { padding-top: 8px; }

/* ---------- Shortcode ---------- */
.tt-shortcode { width: 100%; }
.tt-shortcode + .tt-shortcode { margin-top: 36px; }
.tt-shortcode-more { display: flex; justify-content: center; margin-top: 24px; }
.tt-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tt-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tt-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.tt-single-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
}
@media (max-width: 960px) {
	.tt-grid, .tt-grid-cols-3, .tt-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.tt-most-read { grid-template-columns: 1fr; }
	.tt-single-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.tt-toc-inline { display: block; }
	.tt-side-toc { display: none; }
	.tt-side-sticky { position: static; }
	.tt-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.tt-side-sticky { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.tt-wrap { padding: 16px 16px 48px; }
	.tt-grid, .tt-grid-cols-2, .tt-grid-cols-3, .tt-grid-cols-4 { grid-template-columns: 1fr; }
	.tt-page-header h1 { font-size: 24px; }
	.tt-article-excerpt { font-size: 16px; }
	.tt-content { --tt-content-size: 16px; }
	.tt-content h2 { font-size: 21px; }
	.tt-content h3 { font-size: 18px; }
	.tt-meta-list { gap: 6px 14px; font-size: 12.5px; }
	.tt-wrap .tt-article-thumb { margin-left: -16px; margin-right: -16px; border-radius: 0; }
	.tt-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
	.tt-author-box { flex-direction: column; }
	.tt-sidebar { grid-template-columns: 1fr; }
	.tt-article-footer-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Chia sẻ Facebook (v1.2) ---------- */
.tt-fb-nudge { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; padding: 14px 18px; border-radius: var(--tt-radius); background: #eef4ff; border: 1px solid #dbe6fd; color: #1e3a8a; font-size: 15px; }
.tt-wrap a.tt-fb-nudge-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #1877f2; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; }
.tt-wrap a.tt-fb-nudge-btn:hover { background: #0f63d4; color: #fff; }

html.tt-fbm-open { overflow: hidden; }
.tt-fbm[hidden] { display: none !important; }
.tt-fbm { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tt-fbm-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); animation: tt-fbm-fade .15s ease-out; }
.tt-fbm-box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.25); overflow: hidden; animation: tt-fbm-pop .18s ease-out; color: var(--tt-body); }
@keyframes tt-fbm-fade { from { opacity: 0; } }
@keyframes tt-fbm-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.tt-fbm-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--tt-line); }
.tt-fbm-head strong { font-size: 17px; color: var(--tt-text); flex: 1; }
.tt-fbm-logo { width: 30px; height: 30px; border-radius: 50%; background: #1877f2; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.tt-wrap .tt-fbm-x { width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--tt-surface); color: #4b5563; font-size: 22px; line-height: 1; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.tt-wrap .tt-fbm-x:hover { background: #e5e7eb; }
.tt-fbm-body { padding: 16px 18px 6px; overflow-y: auto; }
.tt-fbm-label { display: block; font-size: 13px; font-weight: 600; color: var(--tt-text); margin: 0 0 6px; }
.tt-fbm-label em { font-weight: 400; color: var(--tt-muted); font-style: normal; }
.tt-wrap .tt-fbm-text { width: 100%; min-height: 170px; margin: 0; padding: 12px; border: 1px solid var(--tt-line); border-radius: 10px; background: #fafbfc; font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #1c1e21; resize: vertical; box-shadow: none; }
.tt-wrap .tt-fbm-text:focus { outline: none; border-color: #1877f2; background: #fff; box-shadow: 0 0 0 3px rgba(24,119,242,.15); }
.tt-fbm-preview { margin-top: 12px; border: 1px solid #dadde1; border-radius: 10px; overflow: hidden; background: #f0f2f5; }
.tt-fbm-img { aspect-ratio: 1.91 / 1; background: #e4e6eb; }
.tt-fbm-img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.tt-fbm-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.tt-fbm-domain { font-size: 12px; color: #65676b; letter-spacing: .02em; }
.tt-fbm-ptitle { font-size: 15px; color: #050505; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-fbm-pdesc { font-size: 13px; color: #65676b; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tt-fbm-hint { margin: 12px 0 8px; font-size: 13px; line-height: 1.5; color: var(--tt-muted); }
.tt-fbm-hint.is-ok { color: #15803d; }
.tt-fbm-hint.is-warn { color: #b45309; }
.tt-fbm-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--tt-line); }
.tt-wrap .tt-fbm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin: 0; padding: 0 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; transition: background .15s, border-color .15s; }
.tt-wrap .tt-fbm-btn[hidden] { display: none; }
.tt-wrap .tt-fbm-primary { flex: 1 1 220px; background: #1877f2; color: #fff; border: 1px solid #1877f2; }
.tt-wrap .tt-fbm-primary:hover { background: #0f63d4; border-color: #0f63d4; color: #fff; }
.tt-wrap .tt-fbm-ghost { background: #fff; color: #374151; border: 1px solid var(--tt-line); }
.tt-wrap .tt-fbm-ghost:hover { border-color: #1877f2; color: #1877f2; }
@media (max-width: 600px) {
	.tt-fbm { padding: 0; align-items: flex-end; }
	.tt-fbm-box { max-width: none; max-height: 92vh; border-radius: 16px 16px 0 0; }
	.tt-fbm-actions { flex-direction: column; }
	.tt-wrap .tt-fbm-btn { width: 100%; flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.tt-wrap *, .tt-wrap *::before, .tt-wrap *::after { animation: none !important; transition: none !important; }
}
@media print {
	.tt-sidebar, .tt-progress, .tt-expand, .tt-share-wrap, .tt-related, .tt-cta, .tt-fb-nudge, .tt-fbm { display: none !important; }
	.tt-single-layout { display: block; }
	.tt-article-body.is-collapsed { max-height: none !important; overflow: visible; }
	.tt-article-body.is-collapsed::after { display: none; }
}
