/*
Theme Name: Pareto
Theme URI: https://pareto.vn/
Author: Pareto Tech
Description: Block theme cho Pareto.vn — AI Agent & tự động hóa cho SME. Nhẹ, không page builder, chỉnh sửa hoàn toàn bằng Site Editor.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: pareto
*/

/* Web luôn dùng nền sáng, đồng bộ nhận diện logo Pareto (không đổi theo chế độ tối của máy). */
:root { color-scheme: light; }

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
[id] { scroll-margin-top: 84px; }

/* ---------- Header ---------- */
/* Dính ở khung <header> bọc ngoài (template part), không phải khối bên trong. */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
.pt-header {
	position: relative;
	background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.pt-header .wp-block-navigation a:hover { color: var(--wp--preset--color--brand); }
@media (max-width: 599px) { .pt-header .pt-header-cta { display: none; } }

/* ---------- Kiểu chung ---------- */
.pt-eyebrow {
	font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--wp--preset--color--brand);
}
.pt-lead { color: var(--wp--preset--color--ink-2); max-width: 680px; margin-left: 0 !important; }
.pt-muted { color: var(--wp--preset--color--ink-3); }
.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--brand); }
.wp-block-button__link { transition: transform .15s ease; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */
.pt-hero {
	background:
		radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--wp--preset--color--brand) 14%, transparent), transparent 60%),
		var(--wp--preset--color--base);
}
.pt-hero h1 .pt-grad {
	background: linear-gradient(135deg, var(--wp--preset--color--brand), var(--wp--preset--color--brand-2));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.pt-chips { gap: 8px !important; }
.pt-chips > p {
	margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink-2);
}

/* ---------- Số liệu ---------- */
.pt-stats {
	gap: 1px !important; background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line); border-radius: 16px; overflow: hidden;
}
.pt-stats { grid-template-columns: repeat(2, 1fr) !important; }
@media (min-width: 768px) { .pt-stats { grid-template-columns: repeat(4, 1fr) !important; } }
.pt-stats > .wp-block-group { background: var(--wp--preset--color--surface); padding: 22px 20px; }
.pt-stats .pt-num { font-size: 32px; font-weight: 800; line-height: 1.1; margin: 0; }
.pt-stats .pt-num + p { margin: 4px 0 0; color: var(--wp--preset--color--ink-3); font-size: 14px; }

/* ---------- Card ---------- */
.pt-card {
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px; padding: 28px;
	box-shadow: 0 1px 2px rgba(11,42,91,.05), 0 8px 24px rgba(11,42,91,.06);
	display: flex; flex-direction: column;
}
.pt-card > * { margin-block: 0 !important; }
.pt-card > * + * { margin-top: 12px !important; }
.pt-card.is-featured { border: 2px solid var(--wp--preset--color--brand); }
.pt-tag { font-size: 12px !important; font-weight: 700; letter-spacing: .1em; color: var(--wp--preset--color--accent); }
.pt-card ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.pt-card li { padding-left: 24px; position: relative; }
.pt-card li::before {
	content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px;
	border-left: 2.5px solid var(--wp--preset--color--brand); border-bottom: 2.5px solid var(--wp--preset--color--brand);
	transform: rotate(-45deg);
}
.pt-card .pt-links { margin-top: auto !important; padding-top: 8px; gap: 16px; font-weight: 700; }
.pt-card .pt-links p { margin: 0; }
.pt-card .pt-links a { text-decoration: none; }
.pt-card .pt-links p:not(:first-child) a { color: var(--wp--preset--color--ink-2); }

/* ---------- Hành trình ---------- */
.pt-step { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 20px; }
.pt-step > * { margin: 0 !important; }
.pt-step h3 { margin: 4px 0 6px !important; }

/* ---------- Khác biệt ---------- */
.pt-num-label { font-weight: 800; color: var(--wp--preset--color--brand); font-size: 14px; margin: 0 !important; }
.pt-nots { gap: 10px !important; }
.pt-nots > p {
	margin: 0; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
	background: var(--wp--preset--color--surface); border: 1px dashed var(--wp--preset--color--line);
}
.pt-nots > p.is-yes { border: 1.5px solid var(--wp--preset--color--brand); color: var(--wp--preset--color--brand); }

/* ---------- Kết quả trước / sau ---------- */
.pt-ba { gap: 10px !important; grid-template-columns: 1fr !important; }
.pt-ba > .wp-block-group { background: var(--wp--preset--color--alt); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.pt-ba > .wp-block-group > * { margin: 0; }
.pt-ba > .wp-block-group.is-after { background: color-mix(in srgb, var(--wp--preset--color--brand) 10%, var(--wp--preset--color--surface)); }
.pt-ba strong { display: block; font-size: 12px; color: var(--wp--preset--color--ink-3); }
.pt-quote { border-top: 3px solid var(--wp--preset--color--brand); padding-top: 18px; }
.pt-quote > * { margin: 0 !important; }
.pt-quote > * + * { margin-top: 12px !important; }

/* ---------- Bài viết (Query Loop) ---------- */
.pt-posts .wp-block-post { list-style: none; }
.pt-posts .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.pt-posts .wp-block-post-excerpt__more-link { font-weight: 700; text-decoration: none; }
.pt-posts .wp-block-post-title a:hover { color: var(--wp--preset--color--brand); }
.pt-posts .wp-block-post-terms a { color: var(--wp--preset--color--brand); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }

/* ---------- CTA cuối ---------- */
.pt-final { background: linear-gradient(135deg, #0a3fa8, #246cff); color: #fff; border-radius: 24px; }
.pt-final h2 { color: #fff; }
.pt-final p { color: #d6d8e2; }
.pt-final .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.35); }

/* ---------- Hero: bố cục 2 cột + minh họa ---------- */
.pt-hero { position: relative; overflow: hidden; }
.pt-hero::before {
	content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--brand-2) 22%, transparent), transparent 65%);
	pointer-events: none; will-change: transform; animation: pt-drift 14s ease-in-out 2 alternate;
}
.pt-hero > * { position: relative; }
.pt-hero-grid { align-items: center; }
.pt-hero h1 { font-size: clamp(32px, 4.2vw, 52px) !important; }
.pt-hero-art { margin: 0; }
.pt-hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
/* Không dùng filter (drop-shadow/blur) trên SVG đang chuyển động: trình duyệt phải vẽ lại cả hình mỗi khung hình. */
.ill-panel { fill: var(--wp--preset--color--surface); stroke: var(--wp--preset--color--line); }
.ill-card { fill: var(--wp--preset--color--alt); }
.ill-bubble { fill: var(--wp--preset--color--alt); }
.ill-badge { fill: var(--wp--preset--color--surface); stroke: var(--wp--preset--color--line); }
.ill-dot { fill: var(--wp--preset--color--line); }
.ill-line { stroke: var(--wp--preset--color--line); }
.ill-text { fill: var(--wp--preset--color--contrast); }
.ill-muted { fill: var(--wp--preset--color--ink-3); }
.ill-ok { fill: #22a06b; }
.ill-check { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ill-pending { fill: color-mix(in srgb, var(--wp--preset--color--brand) 18%, transparent); }
.ill-spin { fill: none; stroke: var(--wp--preset--color--brand); stroke-width: 2.2; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: pt-spin 1s linear 8; }
.ill-typing { fill: var(--wp--preset--color--ink-3); animation: pt-blink 1.2s 6; }
.ill-typing.t2 { animation-delay: .2s; } .ill-typing.t3 { animation-delay: .4s; }
.ill-bar { fill: var(--wp--preset--color--line); }
.ill-bar-fill { transform-box: fill-box; transform-origin: left; animation: pt-progress 2.4s 1.6s ease-out both; }
.ill-a1, .ill-a2, .ill-a3, .ill-a4, .ill-a5 { animation: pt-pop .6s cubic-bezier(.2,.8,.2,1) both; }
.ill-a1 { animation-delay: .2s; } .ill-a2 { animation-delay: .7s; } .ill-a3 { animation-delay: 1.1s; }
.ill-a4 { animation-delay: 1.5s; } .ill-a5 { animation-delay: 1.9s; }
.ill-float { animation: pt-bob 5s ease-in-out 3; }
.ill-float.f2 { animation-delay: -2.5s; }
@media (max-width: 781px) { .pt-hero-art { max-width: 520px; margin-inline: auto; } }

@keyframes pt-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pt-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pt-spin { to { transform: rotate(360deg); } }
@keyframes pt-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pt-progress { from { transform: scaleX(.1); } to { transform: scaleX(.72); } }
@keyframes pt-drift { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }
@keyframes pt-marquee { to { transform: translateX(-100%); } }

/* ---------- Dải khách hàng ---------- */
.pt-clients { border-block: 1px solid var(--wp--preset--color--line); }
.pt-marquee {
	display: flex; overflow: hidden; margin-top: 14px !important;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.pt-marquee-track { display: flex; flex-shrink: 0; gap: 48px; padding: 0 24px; margin: 0; list-style: none; animation: pt-marquee 40s linear infinite; }
.pt-marquee:hover .pt-marquee-track { animation-play-state: paused; }
.pt-marquee li { white-space: nowrap; font-weight: 700; font-size: 17px; color: var(--wp--preset--color--ink-3); letter-spacing: -.01em; }

/* ---------- Icon & avatar ---------- */
.pt-icon {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
	color: var(--wp--preset--color--brand);
	background: color-mix(in srgb, var(--wp--preset--color--brand) 12%, var(--wp--preset--color--surface));
}
.pt-icon svg { width: 24px; height: 24px; }
.pt-card .pt-icon { margin-bottom: 4px; }
.pt-card.is-featured .pt-icon { color: #fff; background: linear-gradient(135deg, var(--wp--preset--color--brand), var(--wp--preset--color--brand-2)); }
.pt-step .pt-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px !important; }
.pt-step .pt-icon svg { width: 20px; height: 20px; }
.pt-member { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start; }
.pt-member > .pt-avatar { grid-row: span 2; }
.pt-member h3 { margin-top: 2px !important; }
.pt-avatar {
	width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
	font-weight: 800; font-size: 17px; color: #fff;
	background: linear-gradient(135deg, var(--wp--preset--color--accent), var(--wp--preset--color--brand));
}

/* ---------- Hiệu ứng tương tác ---------- */
.pt-header { transition: box-shadow .2s ease; }
header.wp-block-template-part.is-scrolled .pt-header, .pt-header.is-scrolled { box-shadow: 0 6px 24px rgba(11,42,91,.08); }
.pt-card, .pt-step, .pt-posts .pt-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pt-card:hover, .pt-step:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--wp--preset--color--brand) 35%, var(--wp--preset--color--line));
	box-shadow: 0 2px 4px rgba(11,42,91,.05), 0 18px 40px rgba(11,42,91,.10);
}
.pt-final { position: relative; overflow: hidden; }
.pt-final::before {
	content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); will-change: transform; animation: pt-drift 12s ease-in-out infinite alternate; pointer-events: none;
}
.pt-final > * { position: relative; }
.pt-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.pt-reveal.is-in { opacity: 1; transform: none; }
.pt-card.pt-reveal.is-in:hover, .pt-step.pt-reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0s !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
	.ill-bar-fill { transform: scaleX(.72); }
}

/* ---------- Header: menu con ---------- */
.pt-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important; border-radius: 12px; padding: 6px 0;
	box-shadow: 0 12px 32px rgba(11,42,91,.12); background: var(--wp--preset--color--surface) !important; min-width: 260px !important;
}
.pt-header .wp-block-navigation__submenu-container a { padding: 8px 16px !important; }

/* ---------- Thẻ chương trình ---------- */
.pt-meta-line { font-size: 13px !important; font-weight: 600; color: var(--wp--preset--color--brand); }
.pt-tools-strip {
	align-items: center; gap: 16px !important; padding: 18px 22px; border-radius: 16px;
	border: 1px dashed color-mix(in srgb, var(--wp--preset--color--brand) 45%, var(--wp--preset--color--line));
	background: var(--wp--preset--color--soft);
}
.pt-tools-strip > p { margin: 0; flex: 1 1 320px; }
.pt-tools-strip .pt-links { flex: 0 0 auto; font-weight: 700; }
.pt-tools-strip .pt-links a { text-decoration: none; }
.pt-step .pt-member__role { color: var(--wp--preset--color--brand) !important; font-weight: 600; margin-top: 2px !important; }

/* ---------- FAQ ---------- */
.pt-faq { border-bottom: 1px solid var(--wp--preset--color--line); padding: 16px 0; }
.pt-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; position: relative; padding-right: 32px; }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--wp--preset--color--brand); transition: transform .2s; }
.pt-faq[open] summary::after { transform: rotate(45deg); }
.pt-faq p { color: var(--wp--preset--color--ink-2); margin: 10px 0 0; }

/* ---------- Danh sách bài, chip chuyên mục, phân trang ---------- */
.pt-post-card { padding: 0 0 20px !important; overflow: hidden; }
.pt-post-card > *:not(.wp-block-post-featured-image) { padding-inline: 20px; }
.pt-post-card .wp-block-post-featured-image { margin: 0 0 4px !important; }
.pt-post-card .wp-block-post-featured-image img { border-radius: 0; }
.pt-post-card .wp-block-post-title { margin-top: 6px !important; }
.pt-post-card .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.pt-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--brand); }
.pt-post-card .wp-block-post-terms a { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.pt-chips a { text-decoration: none; color: inherit; }
.pt-chips > p:hover { border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--brand); }
.pt-pagination { margin-top: 36px !important; gap: 6px; font-weight: 600; }
.pt-pagination a, .pt-pagination .current { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--wp--preset--color--line); text-decoration: none; }
.pt-pagination .current { background: var(--wp--preset--color--brand); color: #fff; border-color: transparent; }

/* ---------- Breadcrumb ---------- */
.yoast-breadcrumbs, .wp-block-yoast-seo-breadcrumbs { font-size: 13px; color: var(--wp--preset--color--ink-3); margin-bottom: 14px !important; }
.yoast-breadcrumbs a { color: var(--wp--preset--color--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(36,108,255,.35); }
.yoast-breadcrumbs a:hover { color: var(--wp--preset--color--brand); }

/* ---------- Bài viết: nội dung cũ & mới ---------- */
.pt-single__title { margin-top: 6px !important; }
.pt-single__meta { gap: 6px 16px !important; font-size: 14px; color: var(--wp--preset--color--ink-3); }
.pt-single__meta a { color: var(--wp--preset--color--ink-2); font-weight: 600; text-decoration: none; }
.pt-single__meta .pt-updated::before { content: "Cập nhật "; }
.pt-content { font-size: 17px; line-height: 1.75; }
.pt-content p[style*="justify"] { text-align: left !important; }
.pt-content h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.8em; }
.pt-content h3 { font-size: clamp(19px, 2.2vw, 22px); margin-top: 1.5em; }
.pt-content img { max-width: 100%; height: auto; border-radius: 12px; }
.pt-content figure { margin: 1.4em 0; }
.pt-content figcaption { font-size: 14px; color: var(--wp--preset--color--ink-3); text-align: center; }
.pt-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 15px; }
.pt-content th, .pt-content td { border: 1px solid var(--wp--preset--color--line); padding: 8px 12px; }
.pt-content blockquote { border-left: 4px solid var(--wp--preset--color--brand); margin-left: 0; padding-left: 18px; color: var(--wp--preset--color--ink-2); }
.pt-content iframe { max-width: 100%; }
.pt-content a { text-underline-offset: 3px; }

/* Trang dịch vụ cũ: bỏ lưới/khung của CMS cũ, giữ nội dung đọc tốt. */
.pt-legacy .container, .pt-legacy .w-100 { max-width: 100%; width: auto; }
.pt-legacy .flex { display: flex; flex-wrap: wrap; gap: 20px; }
.pt-legacy .flex > * { flex: 1 1 260px; }
.pt-legacy img { max-width: 100%; height: auto; }
.pt-legacy section, .pt-legacy .row { margin-bottom: 28px; }
.pt-legacy form, .pt-legacy .form, .pt-legacy [class*="form"] input, .pt-legacy button { display: none; }

/* Hộp CTA, tác giả, bài liên quan */
.pt-post-cta {
	margin: 40px 0 28px !important; padding: 26px 28px; border-radius: 18px;
	background: linear-gradient(135deg, #0a3fa8, #246cff); color: #e7e8ee;
}
.pt-post-cta .pt-eyebrow { margin: 0 0 6px; }
.pt-post-cta__title { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 6px; line-height: 1.3; }
.pt-post-cta p { margin: 0 0 14px; }
.pt-post-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.pt-btn {
	display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none !important;
	background: linear-gradient(135deg, var(--wp--preset--color--brand), var(--wp--preset--color--brand-2)); color: #fff !important;
}
.pt-btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.4); }
.pt-author { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; }
.pt-author p { margin: 0; }
.pt-author__name { font-weight: 700; }
.pt-author__name a { color: var(--wp--preset--color--contrast); }
.pt-author__bio { color: var(--wp--preset--color--ink-2); font-size: 15px; margin-top: 4px !important; }
.pt-author .pt-avatar { flex: 0 0 52px; }
.pt-related { margin-top: 48px; }
.pt-related h2 { font-size: 24px; margin-bottom: 18px; }
.pt-related__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pt-related__item { display: flex; flex-direction: column; gap: 10px; color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 700; line-height: 1.4; }
.pt-related__item:hover { color: var(--wp--preset--color--brand); }
.pt-related__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }

/* ---------- Footer: 4 cột cân nhau + dải dịch vụ khác ---------- */
.pt-footer { background: var(--wp--preset--color--alt); border-top: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ink-2); font-size: 15px; }
.pt-footer a { text-decoration: none; color: inherit; }
.pt-footer a:hover { color: var(--wp--preset--color--brand); }
.pt-footer__grid { display: grid; gap: 32px 40px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
@media (max-width: 960px) { .pt-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pt-footer__grid { grid-template-columns: 1fr; } }
.pt-footer__col h2, .pt-footer__title { margin: 0 0 16px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--contrast); line-height: 1.4; }
.pt-footer__col p { margin: 0 0 12px; line-height: 1.65; }
.pt-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pt-footer__col li { margin: 0; line-height: 1.45; }
.pt-footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.pt-ico { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; background: #fff; color: var(--wp--preset--color--brand); border: 1px solid var(--wp--preset--color--line); }
.pt-ico svg { width: 16px; height: 16px; }
.pt-ico--zalo { font-size: 9.5px; font-weight: 800; letter-spacing: -.02em; }
.pt-footer__more { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--wp--preset--color--ink-3); }
.pt-footer__more-title { font-weight: 700; color: var(--wp--preset--color--ink-2); }
.pt-footer__copy { margin: 18px 0 0; font-size: 13px; color: var(--wp--preset--color--ink-3); }

/* ---------- Nút nổi: Zalo + Hotline ---------- */
.pt-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pt-float__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; min-width: 54px; border-radius: 999px;
	color: #fff !important; text-decoration: none; font-weight: 800; box-shadow: 0 8px 22px rgba(11,42,91,.25); transition: transform .2s;
}
.pt-float__btn:hover { transform: translateY(-2px); }
.pt-float__zalo { background: #0068ff; font-size: 13px; }
.pt-float__call { background: linear-gradient(135deg, #1f5fe6, #3d82ff); padding: 0 20px 0 16px; }
.pt-float__call svg { width: 20px; height: 20px; will-change: transform; animation: pt-ring 2.4s ease-in-out infinite; }
.pt-float__label { font-size: 16px; letter-spacing: .01em; }
@keyframes pt-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(14deg); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(8deg); } }
@media (max-width: 560px) {
	.pt-float { right: 12px; bottom: 12px; }
	.pt-float__btn { height: 50px; min-width: 50px; }
	.pt-float__label { font-size: 15px; }
}

/* ---------- Form đặt lịch ---------- */
.pt-form { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; background: var(--wp--preset--color--surface); box-shadow: 0 8px 24px rgba(11,42,91,.06); }
.pt-form__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pt-form__row { display: grid; gap: 6px; }
.pt-form label { font-size: 14px; font-weight: 600; }
.pt-form input, .pt-form select, .pt-form textarea {
	font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; width: 100%;
	border: 1.5px solid var(--wp--preset--color--line); background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast);
}
.pt-form input:focus, .pt-form select:focus, .pt-form textarea:focus { outline: none; border-color: var(--wp--preset--color--brand); }
.pt-form .is-bad { border-color: #c2352a; }
.pt-form .pt-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; }
.pt-form .pt-btn:disabled { opacity: .6; }
.pt-form__msg { margin: 0; font-weight: 600; }
.pt-form__msg.is-ok { color: #1f8a5b; }
.pt-form__msg.is-err { color: #c2352a; }
.pt-form__note { margin: 0; font-size: 13px; color: var(--wp--preset--color--ink-3); }
.pt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Logo đối tác: 5+4 trên máy tính, 3x3 trên máy tính bảng/điện thoại ---------- */
.pt-partners-section { border-block: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--alt); }
.pt-partners-title { font-size: clamp(20px, 2.4vw, 26px) !important; font-weight: 800; color: var(--wp--preset--color--contrast); margin-top: 4px !important; }
.pt-partners { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.pt-partner { flex: 0 0 calc((100% - 4 * 16px) / 5); margin: 0; aspect-ratio: 2 / 1; display: grid; place-items: center; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--wp--preset--color--line); transition: transform .2s, box-shadow .2s; }
.pt-partner:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,42,91,.08); }
.pt-partner img { width: 100%; height: 100%; object-fit: contain; }
.pt-partner.is-empty { border-style: dashed; color: var(--wp--preset--color--ink-3); font-size: 13px; font-weight: 600; }
@media (max-width: 900px) { .pt-partners { gap: 12px; } .pt-partner { flex-basis: calc((100% - 2 * 12px) / 3); } }
@media (max-width: 480px) { .pt-partners { gap: 8px; } .pt-partner { flex-basis: calc((100% - 2 * 8px) / 3); border-radius: 10px; padding: 2px; } }

/* ---------- Chuyên gia (ảnh, tên, vai trò, mô tả, gạch đầu dòng) ---------- */
.pt-experts { display: grid; gap: 24px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.pt-expert {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 32px 28px 28px; border-radius: 20px; background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line); box-shadow: 0 1px 2px rgba(11,42,91,.05), 0 10px 28px rgba(11,42,91,.07);
	transition: transform .25s ease, box-shadow .25s ease;
}
.pt-expert:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11,42,91,.06), 0 18px 40px rgba(11,42,91,.12); }
.pt-expert__photo {
	width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: center 22%;
	border: 4px solid var(--wp--preset--color--soft); box-shadow: 0 0 0 2px var(--wp--preset--color--brand);
}
.pt-expert__name { margin: 20px 0 4px; font-size: 20px; }
.pt-expert__role { margin: 0 0 14px; font-weight: 700; font-size: 15px; color: var(--wp--preset--color--brand); }
.pt-expert__bio { margin: 0 0 16px; color: var(--wp--preset--color--ink-2); font-size: 15px; line-height: 1.6; }
.pt-expert__list {
	list-style: none; margin: auto 0 0; padding: 16px 0 0; width: 100%; text-align: left;
	border-top: 1px solid var(--wp--preset--color--line); display: grid; gap: 8px; font-size: 14.5px; color: var(--wp--preset--color--ink-2);
}
.pt-expert__list li { position: relative; padding-left: 24px; line-height: 1.5; }
.pt-expert__list li::before {
	content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
	border-left: 2.5px solid var(--wp--preset--color--brand); border-bottom: 2.5px solid var(--wp--preset--color--brand); transform: rotate(-45deg);
}

/* Logo header: ảnh nhẹ 236px (2x) thay vì ảnh gốc 2048px */
.pt-logo { display: block; line-height: 0; }
.pt-logo img { width: 118px; height: auto; display: block; }
@media (max-width: 560px) { .pt-logo img { width: 96px; } }

/* ---------- Hỏi đáp: 2 cột (giới thiệu + danh sách), không để khoảng trắng lệch ---------- */
.pt-faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 56px; align-items: start; }
@media (max-width: 900px) { .pt-faq-wrap { grid-template-columns: 1fr; } }
.pt-faq-intro { position: sticky; top: 110px; }
@media (max-width: 900px) { .pt-faq-intro { position: static; } }
.pt-faq-intro h2 { margin: 8px 0 14px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; }
.pt-faq-intro__text { color: var(--wp--preset--color--ink-2); margin: 0 0 20px; }
.pt-faq-intro__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.pt-btn--line { background: #fff !important; color: var(--wp--preset--color--brand) !important; border: 1.5px solid var(--wp--preset--color--brand); }
.pt-faq-list { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: 6px 24px; }
.pt-faq-list .pt-faq:last-child { border-bottom: 0; }
.pt-faq summary { padding-right: 36px; line-height: 1.45; }

/* ---------- Lưới cân đối: 4 vấn đề / 4 bước = 4 cột máy tính, 2 cột tablet, 1 cột điện thoại ---------- */
.pt-partner { box-sizing: border-box; }
#van-de .wp-block-group.is-layout-grid, #cach-lam .wp-block-group.is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 960px) { #van-de .wp-block-group.is-layout-grid, #cach-lam .wp-block-group.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { #van-de .wp-block-group.is-layout-grid, #cach-lam .wp-block-group.is-layout-grid { grid-template-columns: 1fr !important; } }

/* Link trên nền xanh nhạt: đậm hơn để đạt độ tương phản 4.5:1 */
.pt-tools-strip a, .pt-links a, .has-soft-background-color a:not(.wp-element-button):not(.pt-btn), .has-alt-background-color a:not(.wp-element-button):not(.pt-btn) { color: #1a4fd6; }
