/*
 * Giao dien cho hai khoi con lai cua site cu ma plugin goc khong con:
 *   1. Khoi danh gia Google (TrustIndex) tren trang chu
 *   2. Muc luc bai viet (LuckyWP Table of Contents)
 *
 * CSS goc cua hai plugin nay nam tren may chu cu (trustindex-google-widget.css
 * va lwptoc css) - khong co trong ban luu Wayback, nen viet lai theo dung
 * cau truc HTML da phuc dung.
 */

/* ==========================================================================
   1. Danh gia Google
   ========================================================================== */
.ti-widget {
	margin: 0 auto;
	max-width: 1170px;
	font-family: var(--pgh-font-body);
	color: var(--pgh-text);
}

.ti-widget-container { width: 100%; }

/* --- Dong dau: ho so doanh nghiep --- */
.ti-footer {
	margin-bottom: 34px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--pgh-line);
}

.ti-footer .ti-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	text-align: center;
}

.ti-footer .ti-profile-img img {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.ti-footer .ti-profile-details { text-align: left; }

.ti-footer .ti-name {
	font-family: var(--pgh-font-head);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: #16323b;
	max-width: 460px;
	margin-bottom: 4px;
}

.ti-rating-text {
	font-size: 13px;
	color: var(--pgh-muted);
	margin-top: 2px;
}
.ti-rating-text .nowrap { white-space: nowrap; }

.ti-header-write-btn-container { margin-left: auto; }

.ti-header-write-btn {
	display: inline-block;
	padding: 9px 18px;
	background: var(--pgh-primary);
	color: #fff;
	border-radius: 3px;
	font-family: var(--pgh-font-head);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.ti-header-write-btn:hover { background: var(--pgh-primary-dark); color: #fff; }

/* --- Sao --- */
.ti-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 1;
}
.ti-star {
	width: 17px;
	height: 17px;
	display: block;
}

/* --- Luoi the danh gia --- */
.ti-reviews-container-wrapper {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	align-items: stretch;
}

.ti-review-item { display: flex; }

.ti-review-item .ti-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	padding: 22px 22px 20px;
	box-shadow: 0 3px 14px rgba(0, 0, 0, .05);
	transition: box-shadow .25s ease, transform .25s ease;
}
.ti-review-item .ti-inner:hover {
	box-shadow: 0 8px 26px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
}

.ti-review-header {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	padding-right: 30px;
}

.ti-review-header .ti-profile-img img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: var(--pgh-bg-soft);
}

.ti-review-header .ti-profile-details { min-width: 0; }

.ti-review-item .ti-name {
	font-family: var(--pgh-font-head);
	font-size: 15px;
	font-weight: 700;
	color: #16323b;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ti-date {
	font-family: var(--pgh-font-alt);
	font-size: 12px;
	color: #9a9a9a;
	letter-spacing: .3px;
}

/* Logo Google goc tren cua the */
.ti-platform-icon {
	position: absolute;
	top: 0;
	right: 0;
	width: 20px;
	height: 20px;
	display: block;
}

.ti-review-item .ti-stars { margin-bottom: 12px; }

.ti-review-text-container { flex: 1 1 auto; }

.ti-review-content {
	font-size: 14px;
	line-height: 1.75;
	color: #4a4a4a;
	margin: 0;
}

/* Nhan "da xac minh" */
.ti-verified-review {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 14px;
	font-size: 11px;
	color: #7c7c7c;
}
.ti-verified-review::before {
	content: '';
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--pgh-primary);
	flex: 0 0 auto;
}
.ti-verified-platform { font-weight: 600; }

.ti-verified-tooltip {
	position: absolute;
	left: 0;
	bottom: 130%;
	width: 230px;
	padding: 9px 12px;
	background: #16323b;
	color: #fff;
	font-size: 11px;
	line-height: 1.5;
	border-radius: 4px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s;
	z-index: 5;
}
.ti-verified-review:hover .ti-verified-tooltip { opacity: 1; visibility: visible; }

/* Nut dieu huong cua slider goc - ban tinh khong dung toi */
.ti-controls, .ti-next, .ti-prev, .ti-controls-line { display: none !important; }

@media (max-width: 1024px) {
	.ti-reviews-container-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.ti-reviews-container-wrapper { grid-template-columns: 1fr; gap: 18px; }
	.ti-footer .ti-row { flex-direction: column; }
	.ti-footer .ti-profile-details { text-align: center; }
	.ti-footer .ti-name { max-width: none; }
	.ti-header-write-btn-container { margin-left: 0; }
}

/* ==========================================================================
   2. Muc luc bai viet
   ========================================================================== */
.lwptoc {
	margin: 28px 0 34px;
	font-family: var(--pgh-font-body);
}

.lwptoc_i {
	display: block;
	background: #f7fbfc;
	border: 1px solid #dbecef;
	border-left: 4px solid var(--pgh-primary);
	border-radius: 4px;
	padding: 18px 22px;
}

.lwptoc_header {
	margin-bottom: 10px;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
}

.lwptoc_title {
	font-family: var(--pgh-font-head);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #16323b;
}

.lwptoc_toggle { font-size: 13px; }
.lwptoc_toggle_label {
	color: var(--pgh-primary);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.lwptoc_toggle_label:hover { color: var(--pgh-accent); }

.lwptoc_items { font-size: 14px; }
.lwptoc_items-visible { display: block; }

.lwptoc_itemWrap { padding-left: 20px; }
.lwptoc_i > .lwptoc_items > .lwptoc_itemWrap { padding-left: 0; }

.lwptoc_item {
	display: block;
	padding: 4px 0;
	line-height: 1.6;
}

.lwptoc_item a { color: #2f6f7d; text-decoration: none; }
.lwptoc_item a:hover { color: var(--pgh-accent); text-decoration: underline; }

.lwptoc_item_number {
	color: var(--pgh-primary);
	font-weight: 700;
	margin-right: 6px;
}

.lwptoc_item_label { color: inherit; }

.lwptoc-light .lwptoc_i { color: var(--pgh-text); }

@media (max-width: 767px) {
	.lwptoc_i { padding: 14px 16px; }
	.lwptoc_itemWrap { padding-left: 14px; }
}
