/* Thiết kế truereview.vn trên nền Rehub. Màu lấy từ logo vòng nguyệt quế. */

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/be-vietnam-pro-400-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/be-vietnam-pro-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/be-vietnam-pro-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/be-vietnam-pro-600-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/be-vietnam-pro-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/be-vietnam-pro-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/be-vietnam-pro-700-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/be-vietnam-pro-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/be-vietnam-pro-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--tr-ink: #10202e;
	--tr-muted: #55677a;
	--tr-line: #e2e8ee;
	--tr-tint: #f2f7fb;
	--tr-brand: #0b74ad;
	--tr-deep: #08324d;
	--tr-buy: #d9480f;
	--tr-gold: #e0b252;
	--tr-radius: 14px;
	--tr-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Chữ */
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
.rehub-main-font,
.rehub-body-font,
.wp-block-button__link,
.post, .post p, .post li {
	font-family: var(--tr-font) !important;
}
body { color: var(--tr-ink); background: #fff; }
h1, h2, h3, h4, h5, h6 { color: var(--tr-ink); letter-spacing: -0.01em; }
a { color: var(--tr-brand); }

/* Ẩn lượt xem và số bình luận vì site mới mở lại, con số còn nhỏ */
.post_meta .postview_meta,
.post_meta .comm_count_meta,
.post-meta .comm_count_meta { display: none !important; }

/* Bố cục trang chủ */
.tr-front { overflow: hidden; }
.tr-section {
	padding: 64px max(20px, calc((100% - 1200px) / 2));
	margin: 0 !important;
}
.tr-section h2.wp-block-heading { font-size: 28px; line-height: 1.25; font-weight: 700; margin: 0 0 28px; }
.tr-section--tint { background: var(--tr-tint); }

/* Phần đầu trang chủ */
.tr-hero { background: var(--tr-deep); color: #fff; padding-block: 76px; }
.tr-hero .tr-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
	margin: 0;
}
.tr-hero .wp-block-column { margin: 0; min-width: 0; }
.tr-kicker {
	font-size: 14px !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--tr-gold) !important;
	margin: 0 0 16px !important;
}
.tr-hero h1 {
	color: #fff;
	font-size: clamp(40px, 5.4vw, 66px);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.025em;
	text-wrap: balance;
	margin: 0 0 22px;
}
.tr-lead {
	color: #cfe0ec !important;
	font-size: 18px !important;
	line-height: 1.65 !important;
	max-width: 30em;
	margin: 0 0 32px !important;
}
.tr-hero .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.tr-hero .wp-block-button__link {
	display: inline-block;
	padding: 14px 22px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}
.tr-btn-main .wp-block-button__link { background: var(--tr-buy); color: #fff; }
.tr-btn-main .wp-block-button__link:hover { background: #bf3f0c; color: #fff; }
.tr-btn-ghost .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.tr-btn-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 1px #fff; color: #fff; }

/* Bảng xếp hạng */
.tr-board {
	background: #fff;
	color: var(--tr-ink);
	border-radius: var(--tr-radius);
	padding: 24px 26px 12px;
	box-shadow: 0 18px 44px rgba(3, 22, 36, .35);
}
.tr-board__title { font-size: 19px !important; font-weight: 700; margin: 0 0 8px !important; color: var(--tr-ink) !important; }
.tr-rank { list-style: none; counter-reset: rank; margin: 0 !important; padding: 0 !important; }
.tr-rank li {
	counter-increment: rank;
	margin: 0 !important;
	padding: 0 !important;
	border-top: 1px solid var(--tr-line);
	list-style: none !important;
}
.tr-rank li:first-child { border-top: 0; }
.tr-rank a {
	display: grid;
	grid-template-columns: 34px 1fr;
	column-gap: 12px;
	padding: 13px 0;
	color: var(--tr-ink);
	text-decoration: none;
}
.tr-rank a::before {
	content: counter(rank);
	grid-row: span 2;
	align-self: center;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	border-radius: 50%;
	background: var(--tr-tint);
	color: var(--tr-brand);
	font-weight: 700;
	font-size: 15px;
}
.tr-rank li:first-child a::before { background: var(--tr-gold); color: var(--tr-deep); }
.tr-rank strong { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.tr-rank span { font-size: 13.5px; line-height: 1.4; color: var(--tr-muted); }
.tr-rank a:hover strong { color: var(--tr-brand); }

/* Ô chuyên mục */
.tr-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tr-cat {
	display: flex;
	flex-direction: column;
	color: var(--tr-ink);
	text-decoration: none;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	overflow: hidden;
	padding-bottom: 18px;
	transition: border-color .15s ease, transform .15s ease;
}
.tr-cat:hover { border-color: var(--tr-brand); transform: translateY(-2px); color: var(--tr-ink); }
.tr-cat img { width: 100%; height: 160px; object-fit: cover; display: block; margin: 0 0 16px; }
.tr-cat__name { font-size: 17px; font-weight: 700; padding: 0 18px; line-height: 1.3; }
.tr-cat__desc { font-size: 14px; line-height: 1.5; color: var(--tr-muted); padding: 6px 18px 0; }

/* Lưới bài viết */
.tr-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.tr-grid .wp-block-post { margin: 0 !important; padding: 0 !important; list-style: none !important; min-width: 0; }
.tr-grid .wp-block-post-featured-image { margin: 0 0 14px; }
.tr-grid .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	background: #fff;
}
.tr-grid .wp-block-post-terms { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.tr-grid .wp-block-post-terms a { color: var(--tr-brand); text-decoration: none; }
.tr-grid .wp-block-post-title { font-size: 18px; line-height: 1.4; font-weight: 600; margin: 0; }
.tr-grid .wp-block-post-title a { color: var(--tr-ink); text-decoration: none; }
.tr-grid .wp-block-post-title a:hover { color: var(--tr-brand); }

/* Trang chuyên mục và tìm kiếm */
.tr-archive { padding-block: 44px 64px; }
.tr-archive h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; font-weight: 700; margin: 0 0 10px; }
.tr-archive__desc { color: var(--tr-muted); font-size: 16.5px; line-height: 1.6; margin: 0 0 32px; }
.tr-archive .navigation.pagination { margin-top: 40px; text-align: center; }
.tr-archive .page-numbers { display: inline-block; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.tr-archive .page-numbers.current { background: var(--tr-brand); color: #fff; }
.tr-grid .wp-block-post-terms a + a { margin-left: 4px; }

/* Cách đánh giá */
.tr-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0 0 28px; }
.tr-steps .wp-block-column { margin: 0; border-top: 3px solid var(--tr-brand); padding-top: 16px; }
.tr-steps h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.tr-steps p { color: var(--tr-muted); font-size: 15.5px; line-height: 1.65; margin: 0; }

/* Trang bài viết */
.title_single_area h1 { color: var(--tr-ink) !important; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.title_single_area .admin_meta,
.title_single_area .post-meta-big { display: none !important; }
.title_single_area .meta { border-top: 0 !important; }
#content-sticky-panel { display: none !important; }
.rh-progress-bar::-webkit-progress-value { background: var(--tr-brand) !important; }
.rh-progress-bar::-moz-progress-bar { background: var(--tr-brand) !important; }
.tr-updated { font-size: 14px !important; color: var(--tr-muted); margin: 0 0 12px !important; }

/* Ghi chú liên kết tiếp thị */
.tr-note {
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: var(--tr-muted) !important;
	background: var(--tr-tint);
	border-radius: 10px;
	padding: 12px 16px;
	margin: 0 0 24px !important;
}

/* Bảng trong bài, cuộn ngang trên điện thoại */
.post .wp-block-table { overflow-x: auto; margin: 0 0 24px; }
.post .wp-block-table table { width: 100%; border-collapse: collapse; }
.post .wp-block-table th,
.post .wp-block-table td { border: 1px solid var(--tr-line); padding: 10px 12px; font-size: 15px; line-height: 1.5; text-align: left; vertical-align: top; }
.post .wp-block-table th { background: var(--tr-tint); font-weight: 600; }

/* Mục lục trong bài */
.tr-toc { border: 1px solid var(--tr-line); border-radius: 10px; padding: 14px 18px; margin: 0 0 28px; }
.tr-toc summary { font-weight: 600; cursor: pointer; }
.tr-toc ol { margin: 12px 0 0 20px !important; }
.tr-toc li { font-size: 15px; line-height: 1.5; margin: 0 0 6px !important; }
.tr-toc a { text-decoration: none; }

/* Nút cuối bài */
.tr-cta { margin: 32px 0 !important; text-align: center; }
.tr-btn {
	display: inline-block;
	padding: 14px 24px;
	border-radius: 10px;
	background: var(--tr-brand);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}
.tr-btn--buy { background: var(--tr-buy); }

/* Trang tĩnh */
.tr-lead-dark { font-size: 18px !important; line-height: 1.65 !important; }

/* Chân trang */
.footer-bottom.dark_style,
footer#theme_footer.dark_style { background: var(--tr-deep) !important; }
footer#theme_footer.dark_style { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom.dark_style .title { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--tr-gold) !important; }
.footer-bottom.dark_style a { color: #e4eef5 !important; text-decoration: none; }
.footer-bottom.dark_style a:hover { color: #fff !important; text-decoration: underline; }
.tr-footer-links { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.tr-footer-links li { margin: 0 0 8px !important; padding: 0 !important; list-style: none !important; }
.tr-footer-note { font-size: 13px; opacity: .75; }

/* Rehub chỉ vẽ đủ ba gạch khi rê chuột, trên điện thoại chúng thành ba chấm */
#dl-trigger svg line { stroke-dashoffset: 0 !important; }

/* Điện thoại và máy bảng */
@media (max-width: 1024px) {
	.tr-hero .tr-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.tr-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tr-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.post .wp-block-table table:has(th:nth-child(4)) { min-width: 560px; }
	.tr-section { padding-block: 44px; }
	.tr-hero { padding-block: 48px; }
	.tr-section h2.wp-block-heading { font-size: 24px; margin-bottom: 20px; }
	.tr-hero .wp-block-buttons,
	.tr-hero .wp-block-button { width: 100%; }
	.tr-hero .wp-block-button__link { display: block; text-align: center; }
	.tr-board { padding: 18px 18px 8px; }
	.tr-cats { gap: 12px; }
	.tr-cat img { height: 110px; margin-bottom: 12px; }
	.tr-cat__name { font-size: 15px; padding: 0 12px; }
	.tr-cat__desc { font-size: 13px; padding: 4px 12px 0; }
	.tr-grid .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
	.tr-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
