/* LapNet - Tin tức: CSS trang danh sách + chi tiết. Prefix .tt- để tránh đụng theme Flatsome. */

.tt-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 24px 20px 60px;
	color: #1f2430;
}

/* Breadcrumb */
.tt-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 18px;
	padding: 0;
	font-size: 13px;
	color: #8a8f98;
}
.tt-breadcrumb a { color: #8a8f98; text-decoration: none; }
.tt-breadcrumb a:hover { color: #e0212c; }
.tt-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.tt-breadcrumb [aria-current="page"] { color: #1f2430; }

/* Page header */
.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; }
.tt-page-header p { color: #6b7280; 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: #e0212c;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	text-decoration: none;
	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: #e0212c; border-color: #e0212c; color: #fff; }
.tt-filter-btn.is-active .dashicons { color: #fff; }

/* Section headings */
.tt-section { margin: 0 0 44px; }
.tt-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	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: 2px; bottom: 2px;
	width: 4px;
	background: #e0212c;
	border-radius: 2px;
}

/* Cards - shared */
.tt-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eef0f3; transition: box-shadow .15s ease, transform .15s ease; }
.tt-card:hover { box-shadow: 0 10px 24px rgba(17,17,17,.08); transform: translateY(-2px); }
.tt-card h3, .tt-card h4 { margin: 0 0 8px; color: #111827; }
.tt-card-thumb { position: relative; background: #f3f4f6; aspect-ratio: 16/10; overflow: hidden; }
.tt-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.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; }
.tt-card-body { padding: 16px; }
.tt-card-body p { color: #6b7280; 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: #9ca3af; }

/* Most read layout */
.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 { display: flex; gap: 12px; padding: 10px; align-items: center; }
.tt-card-side .tt-card-thumb { width: 84px; height: 64px; flex: 0 0 auto; aspect-ratio: auto; border-radius: 8px; }
.tt-card-side .tt-card-body { padding: 0; flex: 1; }
.tt-card-side h4 { font-size: 14.5px; line-height: 1.4; margin: 0 0 6px; }

/* Grid */
.tt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tt-grid-related { grid-template-columns: repeat(4, 1fr); }
.tt-card-grid h4 { font-size: 15.5px; }

/* Pagination */
.tt-pagination { display: flex; justify-content: center; margin-top: 28px; }
.tt-pagination ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.tt-pagination a, .tt-pagination span { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid #e5e7eb; text-decoration: none; color: #374151; font-weight: 600; }
.tt-pagination .current { background: #e0212c; border-color: #e0212c; color: #fff; }
.tt-pagination a:hover { border-color: #e0212c; color: #e0212c; }

/* CTA banner */
.tt-cta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	background: linear-gradient(90deg, #fff1f1, #ffe4e6);
	border-radius: 16px;
	padding: 24px 28px;
	margin-top: 8px;
}
.tt-cta-icon { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }
.tt-cta-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.tt-cta-text strong { font-size: 17px; }
.tt-cta-text span { color: #6b7280; font-size: 14px; }
.tt-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tt-btn { padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tt-btn-solid { background: #e0212c; color: #fff; }
.tt-btn-solid:hover { background: #c01a24; color: #fff; }
.tt-btn-outline { background: #fff; color: #e0212c; border: 1px solid #e0212c; }
.tt-btn-outline:hover { background: #fff5f5; }

/* Single article */
.tt-single { max-width: 900px; }
.tt-article-header h1 { font-size: 30px; font-weight: 800; margin: 0 0 12px; line-height: 1.3; }
.tt-article-excerpt { color: #6b7280; font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.tt-article-thumb { border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.tt-article-thumb img { width: 100%; height: auto; display: block; }

.tt-toc { background: #f8fafc; border: 1px solid #eef0f3; border-radius: 12px; padding: 18px 22px; margin-bottom: 28px; }
.tt-toc-title { font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.tt-toc ol { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tt-toc a { color: #374151; text-decoration: none; font-size: 14.5px; }
.tt-toc a:hover { color: #e0212c; }
.tt-toc-level-3 { padding-left: 18px; font-size: 13.5px; }

.tt-content { font-size: 16px; line-height: 1.8; color: #1f2430; }
.tt-content h2 { font-size: 22px; font-weight: 800; margin: 34px 0 14px; scroll-margin-top: 100px; }
.tt-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 12px; scroll-margin-top: 100px; }
.tt-content p { margin: 0 0 16px; }
.tt-content ul, .tt-content ol { margin: 0 0 16px; padding-left: 22px; }
.tt-content li { margin-bottom: 8px; }
.tt-content img { max-width: 100%; height: auto; border-radius: 10px; }
.tt-content hr { border: none; border-top: 1px solid #eef0f3; margin: 24px 0; }

.tt-block { margin: 32px 0; }
.tt-block h2 { font-size: 20px; font-weight: 800; margin: 0 0 16px; }

/* Price cards */
.tt-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tt-price-card { position: relative; border: 1px solid #eef0f3; border-radius: 12px; padding: 20px; background: #fff; }
.tt-price-card.is-featured { border-color: #e0212c; box-shadow: 0 0 0 1px #e0212c; }
.tt-price-badge { position: absolute; top: -11px; left: 16px; background: #e0212c; color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tt-price-card h3 { margin: 6px 0 2px; font-size: 17px; }
.tt-price-speed { color: #6b7280; font-size: 14px; margin: 0 0 12px; }
.tt-price-features { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.tt-price-features li { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; color: #374151; }
.tt-price-features .dashicons { color: #16a34a; font-size: 16px; width: 16px; height: 16px; margin-top: 2px; }
.tt-price-amount { font-size: 19px; font-weight: 800; color: #e0212c; margin: 0 0 10px; }
.tt-price-amount span { font-size: 13px; font-weight: 500; color: #6b7280; }
.tt-price-link { font-size: 14px; font-weight: 700; color: #374151; text-decoration: none; }
.tt-price-link:hover { color: #e0212c; }
.tt-price-all { margin-top: 18px; }

/* Comparison table */
.tt-table-scroll { overflow-x: auto; }
.tt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tt-table th, .tt-table td { border: 1px solid #eef0f3; padding: 10px 14px; text-align: left; white-space: nowrap; }
.tt-table th { background: #f8fafc; font-weight: 700; }

/* Tips */
.tt-tips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tt-tips-list li { position: relative; padding-left: 22px; font-size: 15px; color: #374151; }
.tt-tips-list li::before { content: "•"; position: absolute; left: 4px; color: #2563eb; font-weight: 900; }

/* FAQ */
.tt-faq-list { display: flex; flex-direction: column; gap: 10px; }
.tt-faq-item { border: 1px solid #eef0f3; border-radius: 10px; padding: 14px 18px; }
.tt-faq-item summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.tt-faq-item summary::-webkit-details-marker { display: none; }
.tt-faq-item summary::after { content: "+"; font-size: 20px; color: #9ca3af; }
.tt-faq-item[open] summary::after { content: "–"; }
.tt-faq-answer { padding-top: 10px; color: #6b7280; font-size: 14.5px; line-height: 1.7; }
.tt-faq-answer p:last-child { margin-bottom: 0; }

/* Article footer / share */
.tt-article-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; padding: 16px 0; margin: 32px 0 24px; font-size: 13.5px; color: #9ca3af; }
.tt-share { display: flex; align-items: center; gap: 8px; }
.tt-share-btn { width: 32px; height: 32px; border-radius: 50%; background: #f3f4f6; border: none; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #374151; cursor: pointer; font-size: 14px; }
.tt-share-btn:hover { background: #e0212c; color: #fff; }

/* Author box */
.tt-author-box { display: flex; gap: 16px; background: #f8fafc; border-radius: 12px; padding: 20px; margin-bottom: 40px; }
.tt-author-box img { border-radius: 50%; flex: 0 0 auto; }
.tt-author-label { display: block; font-size: 12px; color: #9ca3af; margin-bottom: 2px; }
.tt-author-info strong { font-size: 15.5px; }
.tt-author-role, .tt-author-bio { margin: 4px 0 0; color: #6b7280; font-size: 13.5px; line-height: 1.6; }
.tt-author-social { display: flex; gap: 14px; margin-top: 8px; }
.tt-author-social a { font-size: 13px; color: #e0212c; text-decoration: none; font-weight: 600; }

/* Shortcode (nhúng ở vị trí bất kỳ - không ép max-width như .tt-wrap, ăn theo container của theme) */
.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: 960px) {
	.tt-grid, .tt-grid-related, .tt-grid-cols-3, .tt-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.tt-most-read { grid-template-columns: 1fr; }
	.tt-price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.tt-grid, .tt-grid-related, .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-header h1 { font-size: 22px; }
	.tt-cta { flex-direction: column; align-items: flex-start; }
	.tt-author-box { flex-direction: column; }
}
