/* Hỏi đáp: /hoi-dap/ (page-templates/hoi-dap.php), câu hỏi (single-tri_question.php), tab "Câu hỏi của tôi". */

.tri-qa {
	color: var(--wp--preset--color--navy);
}

.tri-qa-hero {
	padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 44px);
	background:
		radial-gradient(700px 300px at 85% 0%, rgba(0, 178, 255, 0.18), transparent 60%),
		linear-gradient(135deg, #0b2a78, #123a94 55%, #09205e);
	color: #fff;
}

.tri-qa-hero h1 {
	margin: 0 0 8px;
	font-size: clamp(28px, 4vw, 44px);
}

.tri-qa-hero p {
	max-width: 640px;
	margin: 0 0 20px;
	opacity: 0.9;
}

.tri-qa-hero__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tri-qa-search {
	display: flex;
	flex: 1 1 420px;
	gap: 8px;
	padding: 6px;
	border-radius: 14px;
	background: #fff;
}

.tri-qa-search input {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border: 0;
	font: inherit;
	font-size: 15px;
	outline: 0;
}

.tri-qa__wrap {
	padding-top: 24px;
	padding-bottom: 48px;
}

.tri-qa-ask {
	display: grid;
	gap: 12px;
	margin-bottom: 24px;
	padding: 20px;
	border: 1px solid #e3e9f5;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(9, 31, 91, 0.1);
}

.tri-qa-ask[hidden] {
	display: none;
}

.tri-qa-ask h2 {
	margin: 0;
	font-size: 20px;
}

.tri-qa-ask textarea,
.tri-qa-ask__select {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	border: 1.5px solid #dbe3f0;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 400;
}

.tri-qa-ask__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.tri-qa-ask__tools {
	display: flex;
	align-items: center;
	gap: 16px;
}

.tri-qa-filters,
.tri-qa-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.tri-qa-filters a,
.tri-qa-cats a {
	padding: 7px 14px;
	border: 1.5px solid #dbe3f0;
	border-radius: 999px;
	color: var(--wp--preset--color--navy);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.tri-qa-cats a {
	padding: 5px 12px;
	font-size: 13px;
}

.tri-qa-filters a.is-active,
.tri-qa-cats a.is-active {
	border-color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--navy);
	color: #fff;
}

.tri-qa-list {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.tri-qa-row {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 14px;
	padding: 16px;
	border: 1px solid #e3e9f5;
	border-radius: 14px;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tri-qa-row:hover {
	box-shadow: 0 12px 28px rgba(9, 31, 91, 0.1);
	transform: translateY(-1px);
}

.tri-qa-row__count {
	display: grid;
	place-content: center;
	height: 64px;
	border: 1.5px solid #dbe3f0;
	border-radius: 12px;
	text-align: center;
}

.tri-qa-row__count strong {
	font-size: 20px;
	line-height: 1;
}

.tri-qa-row__count small {
	color: #6b7894;
	font-size: 11px;
}

.tri-qa-row__count.has {
	border-color: var(--wp--preset--color--royal, #3b63a8);
	color: var(--wp--preset--color--royal, #3b63a8);
}

.tri-qa-row__count.is-best {
	border-color: #1a7f37;
	background: #1a7f37;
	color: #fff;
}

.tri-qa-row__count.is-best small {
	color: #d9f2e1;
}

.tri-qa-row__title {
	color: var(--wp--preset--color--navy);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
	text-decoration: none;
}

.tri-qa-row__title:hover {
	color: var(--wp--preset--color--orange);
}

.tri-qa-row__pending {
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fff4e0;
	color: #8a5a00;
	font-size: 11px;
	font-weight: 800;
}

.tri-qa-row__excerpt {
	margin: 6px 0;
	color: #4b5775;
	font-size: 14px;
	line-height: 1.5;
}

.tri-qa-row__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #6b7894;
	font-size: 13px;
}

.tri-qa-tag {
	padding: 2px 8px;
	border-radius: 999px;
	background: #eef3fb;
	color: var(--wp--preset--color--royal, #3b63a8);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.tri-qa-pager {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
}

.tri-qa-pager .page-numbers {
	padding: 6px 12px;
	border-radius: 8px;
	color: var(--wp--preset--color--navy);
	font-weight: 700;
	text-decoration: none;
}

.tri-qa-pager .current {
	background: var(--wp--preset--color--navy);
	color: #fff;
}

.tri-qa-empty {
	margin-top: 16px;
	padding: 32px;
	border: 1.5px dashed #c9d6ec;
	border-radius: 16px;
	text-align: center;
}

/* Trang câu hỏi */
.tri-qa-crumb {
	margin-bottom: 14px;
	font-size: 14px;
}

.tri-qa-crumb a {
	color: #5b6886;
}

.tri-qa-q {
	padding: 24px;
	border: 1px solid #e3e9f5;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(9, 31, 91, 0.08);
}

.tri-qa-q__title {
	margin: 0 0 10px;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.3;
}

.tri-qa-q__body {
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.7;
}

.tri-qa-q__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.tri-qa-best {
	padding: 0;
	border: 0;
	background: none;
	color: #1a7f37;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

@media (max-width: 767px) {
	.tri-qa-ask__row {
		grid-template-columns: 1fr;
	}

	.tri-qa-row {
		grid-template-columns: 52px 1fr;
		gap: 10px;
		padding: 12px;
	}

	.tri-qa-row__count {
		height: 52px;
	}

	.tri-qa-q {
		padding: 18px;
	}
}
