/*
 * Template: Tra cứu chứng nhận học viên
 * All rules are scoped under .vdt-certificate-page so they never leak to other
 * pages. Colours/fonts reuse the theme design tokens declared in main.css :root.
 */

.vdt-certificate-page {
	--vdt-cn-radius-card: 28px;
	--vdt-cn-radius-input: 15px;
	--vdt-cn-section-y: clamp(56px, 7vw, 96px);
	--vdt-cn-shadow-soft: 0 24px 60px rgba(11, 31, 58, .12);
	--vdt-cn-shadow-hover: 0 30px 70px rgba(11, 31, 58, .18);
	--vdt-cn-gradient: linear-gradient(135deg, #1e5bff 0%, #00b8d9 100%);
	background: var(--vdt-bg);
	overflow-x: hidden;
}

.vdt-certificate-page #vdt-certificate-main * {
	min-width: 0;
	box-sizing: border-box;
}

.vdt-certificate-page #vdt-certificate-main svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.85;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Shared section header ---------------------------------------------------- */
.vdt-certificate-page .vdt-certificate-section-head {
	max-width: 720px;
	margin: 0 auto clamp(32px, 4vw, 52px);
	text-align: center;
}

.vdt-certificate-page .vdt-certificate-eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(30, 91, 255, .09);
	color: var(--vdt-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.vdt-certificate-page .vdt-certificate-section-head h2 {
	margin: 0;
	color: var(--vdt-navy);
	font-size: var(--vdt-fs-h2);
	line-height: 1.2;
}

.vdt-certificate-page .vdt-certificate-section-head p {
	margin: 16px auto 0;
	max-width: 640px;
	color: var(--vdt-muted);
	font-size: var(--vdt-fs-body-lg);
}

/* Buttons ------------------------------------------------------------------ */
.vdt-certificate-page .vdt-certificate-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 28px;
	border-radius: 14px;
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.vdt-certificate-page .vdt-certificate-btn svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.vdt-certificate-page .vdt-certificate-btn--primary {
	background: var(--vdt-cn-gradient);
	color: #fff;
	box-shadow: 0 14px 30px rgba(30, 91, 255, .32);
}

.vdt-certificate-page .vdt-certificate-btn--primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 40px rgba(30, 91, 255, .40);
}

.vdt-certificate-page .vdt-certificate-btn--ghost {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .40);
	color: #fff;
	backdrop-filter: blur(4px);
}

.vdt-certificate-page .vdt-certificate-btn--ghost:hover {
	transform: translateY(-3px);
	background: rgba(255, 255, 255, .16);
	border-color: #fff;
}

.vdt-certificate-page .vdt-certificate-btn--light {
	background: #fff;
	color: var(--vdt-navy);
	border-color: var(--vdt-border);
	box-shadow: 0 10px 24px rgba(11, 31, 58, .10);
}

.vdt-certificate-page .vdt-certificate-btn--light:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px rgba(11, 31, 58, .16);
}

/* 1. HERO ------------------------------------------------------------------ */
.vdt-certificate-page .vdt-certificate-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(48px, 7vw, 88px) 0 clamp(96px, 12vw, 150px);
	background:
		radial-gradient(120% 130% at 88% -10%, rgba(0, 184, 217, .30), transparent 55%),
		radial-gradient(90% 90% at 6% 8%, rgba(30, 91, 255, .34), transparent 60%),
		linear-gradient(140deg, #0b1f3a 0%, #07182d 52%, #0a2547 100%);
	color: #fff;
	overflow: hidden;
}

/* Soft technical grid overlay */
.vdt-certificate-page .vdt-certificate-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
	-webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
	opacity: .7;
}

/* Soft glow accent */
.vdt-certificate-page .vdt-certificate-hero::after {
	content: "";
	position: absolute;
	right: -8%;
	bottom: -30%;
	z-index: -1;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 184, 66, .22), transparent 70%);
	pointer-events: none;
}

.vdt-certificate-page .vdt-certificate-hero__inner {
	position: relative;
	max-width: 880px;
	text-align: center;
}

.vdt-certificate-page .vdt-certificate-breadcrumb {
	margin-bottom: 26px;
	font-size: 14px;
}

.vdt-certificate-page .vdt-certificate-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vdt-certificate-page .vdt-certificate-breadcrumb li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, .70);
}

.vdt-certificate-page .vdt-certificate-breadcrumb li:not(:last-child)::after {
	content: "/";
	color: rgba(255, 255, 255, .40);
}

.vdt-certificate-page .vdt-certificate-breadcrumb a {
	color: rgba(255, 255, 255, .82);
	text-decoration: none;
}

.vdt-certificate-page .vdt-certificate-breadcrumb a:hover {
	color: #fff;
	text-decoration: underline;
}

.vdt-certificate-page .vdt-certificate-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 20px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #eaf1ff;
	font-size: 14px;
	font-weight: 600;
}

.vdt-certificate-page .vdt-certificate-hero__badge svg {
	width: 18px;
	height: 18px;
	color: var(--vdt-cyan);
}

.vdt-certificate-page .vdt-certificate-hero__title {
	margin: 22px auto 0;
	max-width: 15ch;
	color: #fff;
	font-size: var(--vdt-fs-h1);
	line-height: 1.12;
}

.vdt-certificate-page .vdt-certificate-hero__desc {
	margin: 20px auto 0;
	max-width: 640px;
	color: rgba(255, 255, 255, .84);
	font-size: var(--vdt-fs-lead);
	line-height: 1.62;
}

.vdt-certificate-page .vdt-certificate-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 32px;
}

.vdt-certificate-page .vdt-certificate-trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin: 44px 0 0;
	padding: 0;
	list-style: none;
}

.vdt-certificate-page .vdt-certificate-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px 14px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .90);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.vdt-certificate-page .vdt-certificate-trust__item:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, .10);
	border-color: rgba(0, 184, 217, .5);
}

.vdt-certificate-page .vdt-certificate-trust__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--vdt-cn-gradient);
	color: #fff;
}

.vdt-certificate-page .vdt-certificate-trust__icon svg {
	width: 23px;
	height: 23px;
}

/* 2. LOOKUP CARD ----------------------------------------------------------- */
.vdt-certificate-page .vdt-certificate-lookup-section {
	position: relative;
	margin-top: clamp(-110px, -11vw, -80px);
	padding-bottom: var(--vdt-cn-section-y);
	scroll-margin-top: 90px;
}

.vdt-certificate-page .vdt-certificate-lookup-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	/* extra top padding leaves room for the centred badge that sits on the top edge */
	padding: clamp(34px, 4.4vw, 54px) clamp(26px, 4vw, 48px) clamp(26px, 4vw, 48px);
	/* subtle Royal Blue → Cyan gradient border via padding-box/border-box */
	border: 1px solid transparent;
	border-radius: var(--vdt-cn-radius-card);
	background:
		linear-gradient(#ffffff, #ffffff) padding-box,
		linear-gradient(135deg, rgba(30, 91, 255, .55), rgba(0, 184, 217, .42)) border-box;
	/* soft navy shadow + faint blue glow behind (no pseudo-element = no overflow risk) */
	box-shadow: var(--vdt-cn-shadow-soft), 0 0 0 6px rgba(30, 91, 255, .04), 0 30px 80px rgba(30, 91, 255, .10);
	text-align: center;
}

/* Very light blue gradient tint in a couple of corners — decorative depth. */
.vdt-certificate-page .vdt-certificate-lookup-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	pointer-events: none;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(0, 184, 217, .07), transparent 42%),
		radial-gradient(120% 90% at 0% 100%, rgba(30, 91, 255, .06), transparent 42%);
}

/* Keep all real content above the corner tint. */
.vdt-certificate-page .vdt-certificate-lookup-card > * {
	position: relative;
	z-index: 1;
}

/* Centred pill badge sitting on the top edge of the card. */
.vdt-certificate-page .vdt-certificate-lookup-card__badge {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 3;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: calc(100% - 32px);
	padding: 10px 22px;
	border-radius: 999px;
	background: linear-gradient(135deg, #1e5bff, #00b8d9);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1;
	white-space: nowrap;
	border: 1.5px solid rgba(255, 255, 255, .55);
	box-shadow: 0 12px 28px rgba(30, 91, 255, .34);
}

.vdt-certificate-page .vdt-certificate-lookup-card__badge svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: #fff;
}

/* Decorative certificate illustration, faint, top-right, never covers content. */
.vdt-certificate-page .vdt-certificate-lookup-card__decor {
	position: absolute;
	top: clamp(14px, 2vw, 26px);
	right: clamp(14px, 2.4vw, 30px);
	z-index: 0;
	display: inline-flex;
	color: var(--vdt-blue);
	opacity: .06;
	pointer-events: none;
}

.vdt-certificate-page .vdt-certificate-lookup-card__decor svg {
	width: clamp(96px, 12vw, 150px);
	height: clamp(96px, 12vw, 150px);
}

.vdt-certificate-page .vdt-certificate-lookup-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin-bottom: 20px;
	border-radius: 20px;
	background: var(--vdt-cn-gradient);
	color: #fff;
	box-shadow: 0 16px 34px rgba(30, 91, 255, .30);
}

.vdt-certificate-page .vdt-certificate-lookup-card__icon svg {
	width: 34px;
	height: 34px;
}

.vdt-certificate-page .vdt-certificate-lookup-card__head h2 {
	margin: 0;
	color: var(--vdt-navy);
	font-size: var(--vdt-fs-h3);
}

.vdt-certificate-page .vdt-certificate-lookup-card__head p {
	margin: 14px auto 0;
	max-width: 560px;
	color: var(--vdt-muted);
	font-size: var(--vdt-fs-body);
}

.vdt-certificate-page .vdt-certificate-lookup-card__form {
	margin-top: 28px;
	text-align: left;
}

/* Fallback message when the shortcode/plugin is not active */
.vdt-certificate-page .vdt-certificate-lookup-card__fallback {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 22px 24px;
	border-radius: 18px;
	background: linear-gradient(135deg, #fff7e6, #fef2f2);
	border: 1px solid #fde3b8;
	text-align: left;
}

.vdt-certificate-page .vdt-certificate-lookup-card__fallback-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--vdt-gold);
	color: #4a2f00;
}

.vdt-certificate-page .vdt-certificate-lookup-card__fallback-icon svg {
	width: 24px;
	height: 24px;
	stroke: #4a2f00;
}

.vdt-certificate-page .vdt-certificate-lookup-card__fallback p {
	margin: 0;
	color: #7a4a10;
	font-size: 15px;
	line-height: 1.6;
}

.vdt-certificate-page .vdt-certificate-lookup-card__fallback a {
	color: var(--vdt-blue);
	font-weight: 700;
	white-space: nowrap;
}

.vdt-certificate-page .vdt-certificate-lookup-card__hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 24px 0 0;
	color: var(--vdt-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* Thin decorative rules on both sides (desktop) */
.vdt-certificate-page .vdt-certificate-lookup-card__hint::before,
.vdt-certificate-page .vdt-certificate-lookup-card__hint::after {
	content: "";
	flex: 1 1 auto;
	max-width: 90px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--vdt-border));
}

.vdt-certificate-page .vdt-certificate-lookup-card__hint::after {
	background: linear-gradient(90deg, var(--vdt-border), transparent);
}

.vdt-certificate-page .vdt-certificate-lookup-card__hint svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--vdt-success);
}

/*
 * Style the shortcode output. The active plugin renders `.vxd-tchv-*` markup
 * (its own card + <h2> + a fields row with a select, a text input and a submit
 * button, plus an AJAX result area). We only restyle it presentationally, scoped
 * to our parent card — the shortcode logic is never touched.
 * Generic element selectors are kept as a fallback in case the markup changes.
 */

/* Neutralise the plugin's own card so it doesn't double-frame ours */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-lookup,
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-lookup__card {
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Our card header already provides the heading — hide the plugin's duplicate */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-lookup__title {
	display: none;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-lookup-form {
	margin: 0;
}

/* Fields row: method select | keyword input | submit, bottom-aligned */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-lookup__fields {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 150px;
	gap: 16px;
	align-items: end;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-field > label {
	color: var(--vdt-navy);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
}

/* Keep screen-reader-only labels hidden even if the theme lacks the utility */
.vdt-certificate-page .vdt-certificate-lookup-card .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-lookup__meta {
	margin-top: 16px;
	color: var(--vdt-muted);
	font-size: 14px;
	line-height: 1.55;
	text-align: left;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result-container:not(:empty) {
	margin-top: 24px;
	text-align: left;
}

/* Inputs & select — appearance only, no flex sizing (they live in grid/flex fields) */
.vdt-certificate-page .vdt-certificate-lookup-card input[type="text"],
.vdt-certificate-page .vdt-certificate-lookup-card input[type="search"],
.vdt-certificate-page .vdt-certificate-lookup-card input[type="tel"],
.vdt-certificate-page .vdt-certificate-lookup-card input[type="number"],
.vdt-certificate-page .vdt-certificate-lookup-card input[type="email"],
.vdt-certificate-page .vdt-certificate-lookup-card select {
	width: 100%;
	min-height: 54px;
	padding: 14px 18px;
	border: 1.5px solid #d0d5dd;
	border-radius: var(--vdt-cn-radius-input);
	background: #fff;
	color: var(--vdt-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color .2s ease, box-shadow .2s ease;
	appearance: none;
}

/* Native chevron for the select */
.vdt-certificate-page .vdt-certificate-lookup-card select {
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}

.vdt-certificate-page .vdt-certificate-lookup-card input[type="text"]:focus,
.vdt-certificate-page .vdt-certificate-lookup-card input[type="search"]:focus,
.vdt-certificate-page .vdt-certificate-lookup-card input[type="tel"]:focus,
.vdt-certificate-page .vdt-certificate-lookup-card input[type="number"]:focus,
.vdt-certificate-page .vdt-certificate-lookup-card input[type="email"]:focus,
.vdt-certificate-page .vdt-certificate-lookup-card select:focus {
	outline: none;
	border-color: var(--vdt-blue);
	box-shadow: 0 0 0 4px rgba(30, 91, 255, .14);
}

.vdt-certificate-page .vdt-certificate-lookup-card input::placeholder {
	color: #98a2b3;
}

/* Submit button */
.vdt-certificate-page .vdt-certificate-lookup-card button,
.vdt-certificate-page .vdt-certificate-lookup-card input[type="submit"],
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	padding: 14px 30px;
	border: none;
	border-radius: var(--vdt-cn-radius-input);
	background: var(--vdt-cn-gradient);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(30, 91, 255, .30);
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.vdt-certificate-page .vdt-certificate-lookup-card button:hover,
.vdt-certificate-page .vdt-certificate-lookup-card input[type="submit"]:hover,
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 40px rgba(30, 91, 255, .40);
	filter: saturate(1.05);
}

.vdt-certificate-page .vdt-certificate-lookup-card button:disabled,
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-button:disabled {
	opacity: .7;
	cursor: progress;
	transform: none;
}

/* Loading state — the plugin JS adds `.is-loading` and swaps the label text.
   We add a CSS spinner (pseudo-element survives the textContent swap). */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-button.is-loading {
	opacity: 1;
	pointer-events: none;
	transform: none;
	filter: none;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-button.is-loading::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, .55);
	border-top-color: #fff;
	animation: vdtCnSpin .7s linear infinite;
}

@keyframes vdtCnSpin {
	to { transform: rotate(360deg); }
}

/*
 * ---- Result area (plugin `.vxd-tchv-result*`) ------------------------------
 * The plugin injects results into `.vxd-tchv-result-container` (AJAX). We give
 * that area room, a clear result panel, a polished success alert and a wide,
 * scrollable table. Scoped to our card so no other page/table is affected.
 */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result-container:not(:empty) {
	margin-top: 28px;
	text-align: left;
}

/* Reveal animation — runs once each time fresh result markup is inserted */
@keyframes vdtResultReveal {
	from { opacity: 0; transform: translateY(18px) scale(.985); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result-container > * {
	animation: vdtResultReveal .45s ease both;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result {
	margin-top: 0;
	padding-top: 24px;
	border-top: 1px dashed var(--vdt-border);
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result__header h3 {
	margin: 0 0 6px;
	color: var(--vdt-navy);
	font-size: var(--vdt-fs-h4);
	font-weight: 700;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result__header p {
	margin: 0 0 18px;
	color: var(--vdt-muted);
	font-size: 15px;
}

/* Alerts — structured status block (icon + title + description + note) */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 22px;
	padding: 18px 20px;
	border-radius: 16px;
	font-size: 15px;
	line-height: 1.6;
	overflow: hidden;
}

/* Faint static motif in the corner — depth without motion */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert::after {
	content: "";
	position: absolute;
	top: -46px;
	right: -46px;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	pointer-events: none;
}

/* Circular status icon (CSS background SVG — no dependency on the theme sprite,
   so the injected result markup renders correctly even if reused elsewhere) */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert__icon {
	position: relative;
	z-index: 1;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert__content {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert__title {
	display: block;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.35;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert__description {
	margin: 8px 0 0;
	font-weight: 500;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert__note {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 500;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert__note a {
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
	white-space: nowrap;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert__meta {
	margin: 10px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	opacity: .9;
}

/* Success */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert--success {
	background: #ecfdf3;
	border: 1px solid #abefc6;
	color: #027a48;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert--success::after {
	background: radial-gradient(circle, rgba(18, 183, 106, .16), transparent 70%);
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert--success .vxd-tchv-alert__icon {
	background-color: #12b76a;
	box-shadow: 0 8px 18px rgba(18, 183, 106, .32);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert--success .vxd-tchv-alert__title {
	color: #027a48;
}

/* Warning (not found) — never red, never "invalid" */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert--warning {
	background: #fffaeb;
	border: 1px solid #fedf89;
	color: #b54708;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert--warning::after {
	background: radial-gradient(circle, rgba(247, 144, 9, .14), transparent 70%);
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert--warning .vxd-tchv-alert__icon {
	background-color: #f79009;
	box-shadow: 0 8px 18px rgba(247, 144, 9, .30);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert--warning .vxd-tchv-alert__title {
	color: #b54708;
}

/* "Tra cứu lại" button — outlined amber, distinct from the primary submit */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-retry-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	min-height: 0;
	margin: 16px 0 2px;
	padding: 11px 20px;
	border: 1.5px solid #fec84b;
	border-radius: 12px;
	background: #fff;
	color: #b54708;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-retry-button:hover {
	background: #fffaf0;
	border-color: #f79009;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(181, 71, 8, .16);
	filter: none;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-retry-button:focus-visible {
	outline: 3px solid rgba(247, 144, 9, .35);
	outline-offset: 2px;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-retry-button__icon {
	width: 18px;
	height: 18px;
	flex: none;
	stroke: currentColor;
}


/*
 * Result table — fits ENTIRELY inside the card on desktop, no horizontal scroll.
 * `table-layout: fixed` + width:100% + per-column widths keep all 9 columns in one
 * frame; long values (course name) simply wrap inside their cell. On mobile the
 * whole table is turned into stacked student cards (see the ≤767px block below).
 */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;               /* no scrollbar; clips the rounded corners */
	border: 1px solid var(--vdt-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(11, 31, 58, .06);
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table {
	width: 100%;
	max-width: 100%;
	min-width: 0;                   /* kill the old min-width that forced scrolling */
	margin: 0;
	table-layout: fixed;
	border-collapse: collapse;
	border-spacing: 0;
	background: transparent;
	font-size: 14px;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table thead th,
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th {
	background: #eef3fb;
	color: var(--vdt-navy);
	font-weight: 700;
	font-size: 13px;
	text-align: left;
	/* Headers break only at spaces (never mid-word like "XẾP LOẠ|I") */
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th,
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td {
	padding: 13px 12px;
	border-bottom: 1px solid var(--vdt-border);
	vertical-align: middle;
	color: var(--vdt-text);
	line-height: 1.4;
	/* Never force a single line — long text wraps so the table can't overflow */
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table tbody tr:last-child td {
	border-bottom: none;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table tbody tr {
	transition: background-color .18s ease;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table tbody tr:hover {
	background: #f7faff;
}

/*
 * Proportional column widths (tablet + desktop). Sum = 100%, so with fixed layout
 * the table exactly fills the card — every column visible, no horizontal scroll.
 * Widths match the current 9-column config; if the admin changes columns this only
 * reflows proportions, it never causes overflow.
 */
@media (min-width: 768px) {
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th:nth-child(1),
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:nth-child(1) { width: 5%;  text-align: center; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th:nth-child(2),
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:nth-child(2) { width: 13%; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th:nth-child(3),
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:nth-child(3) { width: 10%; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th:nth-child(4),
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:nth-child(4) { width: 11%; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th:nth-child(5),
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:nth-child(5) { width: 9%; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th:nth-child(6),
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:nth-child(6) { width: 13%; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th:nth-child(7),
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:nth-child(7) { width: 14%; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th:nth-child(8),
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:nth-child(8) { width: 19%; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table th:nth-child(9),
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:nth-child(9) { width: 6%;  text-align: center; }
}

/* Result card layout (used by the plugin when few columns are shown) */
.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result-cards {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result-card {
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--vdt-border);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(11, 31, 58, .06);
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result-card__row + .vxd-tchv-result-card__row {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--vdt-border);
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result-card__label {
	display: block;
	margin-bottom: 4px;
	color: var(--vdt-muted);
	font-size: 13px;
	font-weight: 600;
}

.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result-card__value {
	display: block;
	color: var(--vdt-navy);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
}

/* While searching, gently mute the previous result set */
.vdt-certificate-page .vdt-certificate-shortcode-wrap.is-searching .vxd-tchv-result-container {
	opacity: .55;
	transition: opacity .2s ease;
}

/* 3. STEPS ----------------------------------------------------------------- */
.vdt-certificate-page .vdt-certificate-steps {
	padding: var(--vdt-cn-section-y) 0;
}

.vdt-certificate-page .vdt-certificate-steps__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.vdt-certificate-page .vdt-certificate-step-card {
	position: relative;
	padding: 34px 28px 30px;
	background: #fff;
	border: 1px solid var(--vdt-border);
	border-radius: 22px;
	box-shadow: 0 12px 30px rgba(11, 31, 58, .06);
	transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.vdt-certificate-page .vdt-certificate-step-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--vdt-cn-shadow-hover);
	border-color: rgba(30, 91, 255, .28);
}

.vdt-certificate-page .vdt-certificate-step-card__num {
	position: absolute;
	top: 22px;
	right: 24px;
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	color: rgba(30, 91, 255, .12);
	letter-spacing: -.02em;
}

.vdt-certificate-page .vdt-certificate-step-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 20px;
	border-radius: 16px;
	background: rgba(30, 91, 255, .10);
	color: var(--vdt-blue);
}

.vdt-certificate-page .vdt-certificate-step-card__icon svg {
	width: 28px;
	height: 28px;
}

.vdt-certificate-page .vdt-certificate-step-card h3 {
	margin: 0 0 10px;
	color: var(--vdt-navy);
	font-size: var(--vdt-fs-h4);
}

.vdt-certificate-page .vdt-certificate-step-card p {
	margin: 0;
	color: var(--vdt-muted);
	font-size: var(--vdt-fs-body);
	line-height: 1.65;
}

/* 4. RESULT INFO ----------------------------------------------------------- */
.vdt-certificate-page .vdt-certificate-info {
	padding: var(--vdt-cn-section-y) 0;
	background: #fff;
}

.vdt-certificate-page .vdt-certificate-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vdt-certificate-page .vdt-certificate-info-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 24px 22px;
	background: var(--vdt-bg);
	border: 1px solid var(--vdt-border);
	border-radius: 18px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.vdt-certificate-page .vdt-certificate-info-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(11, 31, 58, .10);
	border-color: rgba(0, 184, 217, .4);
}

.vdt-certificate-page .vdt-certificate-info-item__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: linear-gradient(135deg, rgba(30, 91, 255, .12), rgba(0, 184, 217, .12));
	color: var(--vdt-blue);
}

.vdt-certificate-page .vdt-certificate-info-item__icon svg {
	width: 23px;
	height: 23px;
}

.vdt-certificate-page .vdt-certificate-info-item__text {
	display: block;
}

.vdt-certificate-page .vdt-certificate-info-item__text strong {
	display: block;
	color: var(--vdt-navy);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.vdt-certificate-page .vdt-certificate-info-item__text small {
	display: block;
	margin-top: 5px;
	color: var(--vdt-muted);
	font-size: 14px;
	line-height: 1.55;
}

.vdt-certificate-page .vdt-certificate-info__note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 760px;
	margin: 30px auto 0;
	padding: 16px 22px;
	border-radius: 14px;
	background: rgba(30, 91, 255, .05);
	color: var(--vdt-text);
	font-size: 14.5px;
	line-height: 1.6;
}

.vdt-certificate-page .vdt-certificate-info__note svg {
	width: 20px;
	height: 20px;
	flex: none;
	margin-top: 2px;
	color: var(--vdt-blue);
}

/* 5. LEGAL NOTICE ---------------------------------------------------------- */
.vdt-certificate-page .vdt-certificate-notice-section {
	padding: 0 0 var(--vdt-cn-section-y);
}

.vdt-certificate-page .vdt-certificate-info + .vdt-certificate-notice-section {
	padding-top: var(--vdt-cn-section-y);
	background: #fff;
}

.vdt-certificate-page .vdt-certificate-notice {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	max-width: 940px;
	margin: 0 auto;
	padding: clamp(24px, 3.5vw, 38px);
	border-radius: 22px;
	background: linear-gradient(135deg, #0b1f3a, #0a2547);
	color: rgba(255, 255, 255, .90);
	box-shadow: var(--vdt-cn-shadow-soft);
}

.vdt-certificate-page .vdt-certificate-notice__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: rgba(0, 184, 217, .18);
	color: var(--vdt-cyan);
}

.vdt-certificate-page .vdt-certificate-notice__icon svg {
	width: 28px;
	height: 28px;
}

.vdt-certificate-page .vdt-certificate-notice__body h2 {
	margin: 4px 0 10px;
	color: #fff;
	font-size: var(--vdt-fs-h4);
}

.vdt-certificate-page .vdt-certificate-notice__body p {
	margin: 0;
	font-size: var(--vdt-fs-body);
	line-height: 1.7;
}

/* 6. FAQ ------------------------------------------------------------------- */
.vdt-certificate-page .vdt-certificate-faq {
	padding: var(--vdt-cn-section-y) 0;
}

.vdt-certificate-page .vdt-certificate-faq__inner {
	max-width: 820px;
}

.vdt-certificate-page .vdt-certificate-faq__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.vdt-certificate-page .vdt-certificate-faq__item {
	background: #fff;
	border: 1px solid var(--vdt-border);
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(11, 31, 58, .05);
	overflow: hidden;
	transition: border-color .25s ease, box-shadow .25s ease;
}

.vdt-certificate-page .vdt-certificate-faq__item[open] {
	border-color: rgba(30, 91, 255, .35);
	box-shadow: 0 16px 36px rgba(11, 31, 58, .10);
}

.vdt-certificate-page .vdt-certificate-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	color: var(--vdt-navy);
	font-size: var(--vdt-fs-h5);
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
	min-height: 44px;
}

.vdt-certificate-page .vdt-certificate-faq__question::-webkit-details-marker {
	display: none;
}

.vdt-certificate-page .vdt-certificate-faq__chevron {
	width: 22px;
	height: 22px;
	flex: none;
	color: var(--vdt-blue);
	transition: transform .3s ease;
}

.vdt-certificate-page .vdt-certificate-faq__item[open] .vdt-certificate-faq__chevron {
	transform: rotate(180deg);
}

.vdt-certificate-page .vdt-certificate-faq__answer {
	padding: 0 24px 22px;
	color: var(--vdt-muted);
	font-size: var(--vdt-fs-body);
	line-height: 1.7;
}

.vdt-certificate-page .vdt-certificate-faq__answer p {
	margin: 0;
}

/* 7. CTA ------------------------------------------------------------------- */
.vdt-certificate-page .vdt-certificate-cta-section {
	padding: 0 0 var(--vdt-cn-section-y);
}

.vdt-certificate-page .vdt-certificate-cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
	padding: clamp(30px, 4.5vw, 52px);
	border-radius: 26px;
	background:
		radial-gradient(90% 140% at 100% 0%, rgba(0, 184, 217, .30), transparent 60%),
		linear-gradient(135deg, #1e5bff, #0b1f3a);
	color: #fff;
	box-shadow: var(--vdt-cn-shadow-soft);
	overflow: hidden;
}

.vdt-certificate-page .vdt-certificate-cta__content {
	flex: 1 1 380px;
}

.vdt-certificate-page .vdt-certificate-cta__content h2 {
	margin: 0;
	color: #fff;
	font-size: var(--vdt-fs-h3);
}

.vdt-certificate-page .vdt-certificate-cta__content p {
	margin: 14px 0 0;
	max-width: 560px;
	color: rgba(255, 255, 255, .88);
	font-size: var(--vdt-fs-body-lg);
	line-height: 1.65;
}

.vdt-certificate-page .vdt-certificate-cta__hotline {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px !important;
}

.vdt-certificate-page .vdt-certificate-cta__hotline svg {
	width: 20px;
	height: 20px;
	flex: none;
	color: var(--vdt-cyan);
}

.vdt-certificate-page .vdt-certificate-cta__hotline strong {
	color: #fff;
}

.vdt-certificate-page .vdt-certificate-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 0 0 auto;
}

.vdt-certificate-page .vdt-certificate-cta__actions .vdt-certificate-btn {
	width: 100%;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
	.vdt-certificate-page .vdt-certificate-steps__grid,
	.vdt-certificate-page .vdt-certificate-info-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.vdt-certificate-page .vdt-certificate-trust {
		grid-template-columns: repeat(2, 1fr);
	}

	.vdt-certificate-page .vdt-certificate-cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.vdt-certificate-page .vdt-certificate-cta__actions {
		width: 100%;
		flex-direction: row;
	}

	/* Tablet: method + keyword on one row, submit button full width below */
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-lookup__fields {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-field--submit {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.vdt-certificate-page .vdt-certificate-hero {
		padding-top: 40px;
	}

	.vdt-certificate-page .vdt-certificate-hero__title {
		font-size: clamp(1.95rem, 8vw, 2.25rem);
	}

	.vdt-certificate-page .vdt-certificate-hero__actions .vdt-certificate-btn {
		flex: 1 1 100%;
	}

	.vdt-certificate-page .vdt-certificate-steps__grid,
	.vdt-certificate-page .vdt-certificate-info-grid,
	.vdt-certificate-page .vdt-certificate-trust {
		grid-template-columns: 1fr;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card {
		padding: 24px 20px;
	}

	/* Stack the plugin's method/keyword/submit fields into one column */
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-lookup__fields {
		grid-template-columns: 1fr;
	}

	.vdt-certificate-page .vdt-certificate-notice {
		flex-direction: column;
		gap: 16px;
	}

	.vdt-certificate-page .vdt-certificate-cta__actions {
		flex-direction: column;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card__fallback {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}

	/* Badge: smaller but still centred, never wider than the viewport */
	.vdt-certificate-page .vdt-certificate-lookup-card__badge {
		gap: 6px;
		padding: 8px 16px;
		font-size: 12.5px;
		letter-spacing: .03em;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card__badge svg {
		width: 17px;
		height: 17px;
	}

	/* Decorative illustration is desktop-only */
	.vdt-certificate-page .vdt-certificate-lookup-card__decor {
		display: none;
	}

	/* Alert compacts; retry button becomes full width for an easy tap target */
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert {
		gap: 12px;
		padding: 16px;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert__icon {
		width: 40px;
		height: 40px;
		background-size: 22px 22px;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-alert__note a {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-retry-button {
		width: 100%;
		min-height: 48px;
	}
}

/*
 * Mobile (≤767px): turn the result table into stacked student cards so nothing
 * overflows and each row is easy to read. Labels come from `data-label` (set by
 * our JS from the table header) with a hard-coded fallback for the current config.
 */
@media (max-width: 767px) {
	.vdt-certificate-page {
		overflow-x: hidden;
	}

	.vdt-certificate-page .vdt-certificate-shortcode-wrap {
		width: 100%;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result__header h3 {
		font-size: 1.2rem;
	}

	/* Drop the decorative rules beside the security hint on mobile */
	.vdt-certificate-page .vdt-certificate-lookup-card__hint::before,
	.vdt-certificate-page .vdt-certificate-lookup-card__hint::after {
		display: none;
	}

	/* Drop the table frame — each row becomes its own card */
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table-wrap {
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		overflow: visible;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table,
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table tbody,
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table tr,
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td {
		display: block;
		width: 100% !important;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table thead {
		display: none;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table tr {
		margin-bottom: 16px;
		padding: 6px 16px;
		background: #fff;
		border: 1px solid var(--vdt-border);
		border-radius: 18px;
		box-shadow: 0 12px 30px rgba(11, 31, 58, .08);
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table tbody tr:hover {
		background: #fff;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td {
		display: grid;
		grid-template-columns: 128px minmax(0, 1fr);
		gap: 10px 12px;
		padding: 11px 0;
		border-bottom: 1px solid #f0f2f5;
		font-size: 14px;
		line-height: 1.45;
		text-align: left !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table tbody tr td:last-child {
		border-bottom: 0;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td::before {
		content: attr(data-label);
		font-weight: 700;
		color: var(--vdt-navy);
		font-size: 13px;
	}

	/* Fallback labels for the current column config (used only if JS didn't run) */
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:not([data-label]):nth-child(1)::before { content: "STT"; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:not([data-label]):nth-child(2)::before { content: "Họ và tên"; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:not([data-label]):nth-child(3)::before { content: "Ngày sinh"; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:not([data-label]):nth-child(4)::before { content: "Số CCCD"; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:not([data-label]):nth-child(5)::before { content: "Quê quán"; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:not([data-label]):nth-child(6)::before { content: "Quyết định"; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:not([data-label]):nth-child(7)::before { content: "Thời gian đào tạo"; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:not([data-label]):nth-child(8)::before { content: "Khóa học hoàn thành"; }
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-table td:not([data-label]):nth-child(9)::before { content: "Xếp loại"; }
}

/* Respect reduced-motion: neutralise hover lifts + chevron spin */
@media (prefers-reduced-motion: reduce) {
	.vdt-certificate-page .vdt-certificate-btn,
	.vdt-certificate-page .vdt-certificate-step-card,
	.vdt-certificate-page .vdt-certificate-info-item,
	.vdt-certificate-page .vdt-certificate-trust__item,
	.vdt-certificate-page .vdt-certificate-lookup-card button {
		transition: none;
	}

	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-retry-button {
		transition: none;
	}

	.vdt-certificate-page .vdt-certificate-btn:hover,
	.vdt-certificate-page .vdt-certificate-step-card:hover,
	.vdt-certificate-page .vdt-certificate-info-item:hover,
	.vdt-certificate-page .vdt-certificate-trust__item:hover,
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-retry-button:hover {
		transform: none;
	}

	/* Result appears instantly; the loading spinner stays (functional feedback) */
	.vdt-certificate-page .vdt-certificate-lookup-card .vxd-tchv-result-container > * {
		animation: none;
	}
}
