/* =========================================================
   DQ EDU — Frontend stylesheet (thuần CSS, không dùng framework/plugin ngoài)
   Màu sắc/typography tham chiếu theo custom properties do theme.json sinh ra:
   var(--wp--preset--color--brand-700) v.v.
   ========================================================= */

*, *::before, *::after {
	box-sizing: border-box;
}

/* Khử khoảng trắng (block-gap) mặc định giữa các section chính, header và footer */
.wp-site-blocks > *,
.wp-site-blocks > * + * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

:root {
	--dq-radius: 12px;
	--dq-radius-sm: 8px;
	--dq-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--dq-shadow-md: 0 6px 16px rgba(15, 23, 42, .08);
	--dq-shadow-lg: 0 16px 32px rgba(15, 23, 42, .12);
	--dq-container: 1400px;
	--dq-pad: clamp(1.25rem, 4vw, 2.5rem);
	/* Bộ màu có thể chỉnh trong wp-admin > Thông tin liên hệ (mục Bộ màu website).
	   Giá trị override được in ở <head>; ở đây là mặc định. */
	--dq-lime: #b8f36c;
	--dq-orange: #EA580C;
	--dq-orange-dark: #C2410C;
}

/* Đảm bảo thuộc tính [hidden] luôn thắng mọi rule display: flex/block khác trong file này */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { cursor: pointer; }
button { cursor: pointer; font-family: inherit; }

.dq-container { max-width: var(--dq-container); margin-inline: auto; padding-inline: var(--dq-pad); width: 100%; }
.dq-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
/* Tắt padding ngang mặc định của WordPress cho group có nền (theme tự kiểm soát padding) */
.wp-block-group.has-background { padding-inline: 0; }
/* Đồng bộ mép trái/phải: section alignwide dùng ĐÚNG công thức của .dq-container */
.dq-section.alignwide { max-width: var(--dq-container); margin-inline: auto; padding-inline: var(--dq-pad); width: 100%; }
.alignwide .dq-container { padding-inline: 0; max-width: none; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-600);
	outline-offset: 2px;
	border-radius: 4px;
}

.dq-eyebrow {
	display: inline-block;
	color: var(--wp--preset--color--brand-700);
	font-weight: 700;
	font-size: .8125rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin-bottom: .5rem;
}

/* ---------- Headings (Ghi đè font chữ tiêu đề đậm và lớn hơn) ---------- */
h1, .h1, h1.wp-block-heading {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.25rem, 5vw, 3.25rem) !important;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--slate-900);
	margin-top: 0;
	margin-bottom: 1rem;
}
h2, .h2, h2.wp-block-heading {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--slate-900);
	margin-top: 0;
	margin-bottom: 1rem;
}
h3, .h3, h3.wp-block-heading {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
	font-weight: 500;
	line-height: 1.25;
	color: var(--wp--preset--color--slate-900);
	margin-top: 0;
	margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.dq-btn, .wp-block-button__link, .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	border-radius: 4px;               /* bo rất nhẹ theo higherlifefoundation */
	font-weight: 400;
	font-size: .9375rem;
	letter-spacing: -0.01em;
	padding: .68rem 1.35rem;
	min-height: 44px;
	transition: color 250ms ease;
	cursor: pointer;
	border: 0;
	text-decoration: none;
	line-height: 1.2;
	position: relative; overflow: hidden; isolation: isolate;
}
/* Lớp nền "quét" chạy từ trái sang phải khi hover (clip-path wipe) */
.dq-btn::after, .wp-block-button__link::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	clip-path: inset(0 100% 0 0);
	transition: clip-path .5s cubic-bezier(.25, 1, .5, 1);
}
.dq-btn:hover::after, .wp-block-button__link:hover::after { clip-path: inset(0 0 0 0); }

/* Mũi tên sang trái cho MỌI nút (mask theo màu chữ) */
.dq-btn::before, .wp-block-button__link::before {
	content: ""; flex: 0 0 auto; width: 1.05em; height: 1.05em;
	background-color: currentColor;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12h16M13 5l7 7-7 7"/></svg>') center/contain no-repeat;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12h16M13 5l7 7-7 7"/></svg>') center/contain no-repeat;
	transition: transform .5s cubic-bezier(.25, 1, .5, 1);
}

/* Nút chính: nền xanh var(--dq-lime) + chữ đen; hover quét nền tối #222, chữ trắng, mũi tên sang phải */
.dq-btn--primary, .is-style-fill .wp-block-button__link { background: var(--dq-lime); color: #111; }
.dq-btn--primary::after, .is-style-fill .wp-block-button__link::after { background: #222; }
.dq-btn--primary:hover, .is-style-fill .wp-block-button__link:hover { color: #fff; flex-direction: row-reverse; }

/* Nút phụ tối giản: ô xanh dưới mũi tên, hover ô giãn rộng 100% (chữ/icon giữ nguyên) */
.dq-btn--secondary, .is-style-outline .wp-block-button__link {
	background: transparent; color: #111 !important; padding-left: 3.7em;
}
.dq-btn--secondary::after, .is-style-outline .wp-block-button__link::after {
	inset: auto; left: 0; top: 0; height: 100%; width: 2.9em; z-index: -1;
	clip-path: none; background: var(--dq-lime); border-radius: 4px;
	transition: width .4s cubic-bezier(.2, .8, .2, 1);
}
.dq-btn--secondary:hover::after, .is-style-outline .wp-block-button__link:hover::after { clip-path: none; width: 100%; }
.dq-btn--secondary::before, .is-style-outline .wp-block-button__link::before {
	position: absolute; left: 0; top: 0; height: 100%; width: 2.9em; z-index: 1; flex: none;
	background-color: #111;
	-webkit-mask-size: 44% auto; mask-size: 44% auto;
}
.dq-btn--secondary:hover, .is-style-outline .wp-block-button__link:hover { color: #111 !important; }
.dq-btn--accent { background: var(--wp--preset--color--accent-600); color: #fff; }
.dq-btn--accent:hover { background: var(--wp--preset--color--accent-700, #7E221A); }
.dq-btn--ghost { background: var(--wp--preset--color--slate-50); color: var(--wp--preset--color--slate-500); }
.dq-btn--block { width: 100%; }
/* Mọi nút cùng cỡ chữ & kích thước — bỏ khác biệt sm/xs */
.dq-btn--sm, .dq-btn--xs { padding: .68rem 1.35rem; font-size: .9375rem; }
.dq-btn:disabled { opacity: .55; cursor: not-allowed; }
.dq-link-arrow { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--wp--preset--color--brand-700); text-decoration: none; }
.dq-link-arrow:hover { text-decoration: underline; }

/* ---------- Icons ---------- */
.dq-icon { width: 22px; height: 22px; flex-shrink: 0; }
.dq-icon--xs { width: 15px; height: 15px; }
.dq-icon--sm { width: 18px; height: 18px; }
.dq-icon--lg { width: 30px; height: 30px; }
.dq-icon--xl { width: 44px; height: 44px; }
.dq-icon--brand { color: var(--wp--preset--color--brand-600); }
.dq-icon--accent { color: var(--wp--preset--color--brand-600); }

/* ---------- Header ---------- */
.dq-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--wp--preset--color--slate-200); transition: box-shadow 200ms ease; }
.dq-header.is-scrolled { box-shadow: var(--dq-shadow-sm); }
.dq-header__topbar { border-bottom: 1px solid var(--wp--preset--color--slate-50); display: none; }
.dq-header__topbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; padding-block: .4rem; font-size: .8125rem; color: var(--wp--preset--color--slate-500); }
.dq-topbar-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--wp--preset--color--slate-500); text-decoration: none; }
.dq-topbar-link:hover { color: var(--wp--preset--color--brand-700); }
.dq-topbar-link-inner { color: var(--dq-orange); text-decoration: none; font-weight: 700; }
.dq-topbar-link-inner:hover { color: var(--dq-orange-dark); text-decoration: underline; }
/* Email (link mailto) cũng dùng màu cam. */
a.dq-topbar-link[href^="mailto"] { color: var(--dq-orange); font-weight: 600; }
a.dq-topbar-link[href^="mailto"]:hover { color: var(--dq-orange-dark); }
.dq-topbar-sep { color: var(--wp--preset--color--slate-200); }

/* ---------- Tìm kiếm trên header ---------- */
.dq-search-toggle {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	border: 1px solid var(--wp--preset--color--slate-200); border-radius: 50%;
	background: #fff; color: var(--wp--preset--color--slate-900); cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.dq-search-toggle:hover { background: var(--wp--preset--color--brand-50); color: var(--wp--preset--color--brand-700); border-color: var(--wp--preset--color--brand-100); }
.dq-search-toggle[aria-expanded="true"] { background: var(--wp--preset--color--brand-700); color: #fff; border-color: var(--wp--preset--color--brand-700); }

.dq-search-panel {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 45;
	background: #fff; border-bottom: 1px solid var(--wp--preset--color--slate-200);
	box-shadow: var(--dq-shadow-md);
}
.dq-search-panel__inner { position: relative; display: flex; justify-content: center; align-items: center; padding-block: 1.75rem; }
/* Thanh tìm kiếm bo tròn, căn giữa */
.dq-searchbar {
	display: flex; align-items: center; gap: .5rem;
	width: 100%; max-width: 620px;
	background: #fff; border: 1.5px solid #D1D5DB; border-radius: 999px;
	padding: .3rem .3rem .3rem 1.25rem;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.dq-searchbar:focus-within { border-color: var(--wp--preset--color--brand-600); box-shadow: 0 0 0 4px rgba(96, 176, 59, .12); }
/* Pill đã hiện trạng thái focus ở viền ngoài -> bỏ outline focus mặc định của ô nhập bên trong (tránh 2 viền). */
.dq-searchbar__input:focus-visible, .dq-archive__search input:focus-visible { outline: none; }
.dq-searchbar__icon { flex: 0 0 auto; display: inline-flex; color: var(--wp--preset--color--slate-500); }
.dq-searchbar__icon .dq-icon { width: 22px; height: 22px; }
.dq-searchbar__input {
	flex: 1 1 auto; min-width: 0;
	border: 0; outline: 0; background: transparent;
	font-size: 1.05rem; color: var(--wp--preset--color--slate-900);
	padding: .55rem 0;
}
.dq-searchbar__submit {
	flex: 0 0 auto; border: 0; cursor: pointer;
	background: var(--wp--preset--color--brand-700); color: #fff;
	font-weight: 700; font-size: .95rem; padding: .65rem 1.6rem; border-radius: 999px;
	transition: background .2s ease;
}
.dq-searchbar__submit:hover { background: var(--wp--preset--color--brand-600); }
.dq-search-close {
	position: absolute; top: 50%; right: 0; transform: translateY(-50%);
	display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 1px solid var(--wp--preset--color--slate-200); border-radius: 50%;
	background: #fff; color: var(--wp--preset--color--slate-500); cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.dq-search-close:hover { background: var(--wp--preset--color--slate-50); color: var(--wp--preset--color--slate-900); }
@media (max-width: 1140px) { .dq-search-close { position: static; transform: none; margin-left: .75rem; } }

/* Ô tìm kiếm trong menu di động */
.dq-mobile-search { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.dq-mobile-search__input {
	flex: 1 1 auto; min-width: 0;
	border: 1px solid var(--wp--preset--color--slate-200); border-radius: var(--dq-radius-sm);
	background: #fff; font-size: 1rem; color: var(--wp--preset--color--slate-900);
	padding: .6rem .8rem; outline: none;
}
.dq-mobile-search__input:focus { border-color: var(--wp--preset--color--brand-700); }
.dq-mobile-search__submit {
	flex: 0 0 auto; display: inline-grid; place-items: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--dq-radius-sm);
	background: var(--wp--preset--color--brand-700); color: #fff; cursor: pointer;
}
@media (min-width: 1024px) { .dq-header__topbar { display: block; } }

.dq-header__main { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.dq-logo, .custom-logo-link { display: inline-flex; cursor: pointer; }
.dq-logo-svg, .dq-logo-img, .custom-logo { height: 34px; width: auto; max-width: 240px; object-fit: contain; }
@media (min-width: 640px) { .dq-logo-svg, .dq-logo-img, .custom-logo { height: 40px; } }

.dq-nav { display: none; align-items: center; gap: 1.75rem; }
.dq-nav__link { position: relative; display: inline-flex; align-items: center; gap: .25rem; padding-block: .4rem; font-size: .9375rem; font-weight: 500; color: var(--wp--preset--color--slate-900); text-decoration: none; }
.dq-nav__link::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms ease; }
.dq-nav__link:hover::after, .dq-nav__link.is-active::after { transform: scaleX(1); }
@media (min-width: 1024px) { .dq-nav { display: flex; } }

/* ---------- Header nav dropdown / mega-menu ---------- */
.dq-nav__item { position: relative; display: flex; align-items: center; }
.dq-nav__caret { width: 13px; height: 13px; transition: transform 200ms ease; }
.has-dropdown:hover .dq-nav__caret,
.has-dropdown:focus-within .dq-nav__caret,
.has-dropdown.is-open .dq-nav__caret { transform: rotate(180deg); }

.dq-nav__dropdown {
	position: absolute; top: 100%; left: 0; z-index: 50;
	background: #fff; border: 1px solid var(--wp--preset--color--slate-200); border-radius: var(--dq-radius);
	box-shadow: var(--dq-shadow-lg); padding: .6rem;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.has-dropdown:hover .dq-nav__dropdown,
.has-dropdown:focus-within .dq-nav__dropdown,
.has-dropdown.is-open .dq-nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dq-nav__dropdown ul { list-style: none; margin: 0; padding: 0; min-width: 230px; }
.dq-nav__dropdown ul li a,
.dq-nav__mega-heading {
	display: block; padding: .5rem .75rem; border-radius: var(--dq-radius-sm);
	font-size: .9rem; color: var(--wp--preset--color--slate-900); text-decoration: none;
}
.dq-nav__dropdown ul li a:hover { background: var(--wp--preset--color--brand-50); color: var(--wp--preset--color--brand-700); }

.dq-nav__dropdown--mega {
	left: 50%; transform: translate(-50%, 6px); display: flex; gap: 1.5rem;
	padding: 1.25rem; min-width: 640px;
}
.has-dropdown:hover .dq-nav__dropdown--mega,
.has-dropdown:focus-within .dq-nav__dropdown--mega,
.has-dropdown.is-open .dq-nav__dropdown--mega { transform: translate(-50%, 0); }
.dq-nav__mega-col { min-width: 200px; flex: 1; }
.dq-nav__mega-heading { font-weight: 700; font-size: .8125rem; color: var(--wp--preset--color--brand-700); text-transform: uppercase; letter-spacing: .03em; }
.dq-nav__mega-heading:hover { background: var(--wp--preset--color--brand-50); }

/* ---------- Mega menu dạng tab (Khóa đào tạo) ---------- */
.dq-megatabs { position: fixed; left: 0; right: 0; top: var(--dq-mega-top, 112px); width: 100%; padding: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--slate-200); box-shadow: var(--dq-shadow-lg); overflow: hidden; transform: none; }
.has-dropdown:hover .dq-megatabs, .has-dropdown:focus-within .dq-megatabs, .has-dropdown.is-open .dq-megatabs { transform: none; }
.dq-megatabs__inner { display: grid; grid-template-columns: 288px 1fr; max-width: var(--dq-container); margin-inline: auto; }
.dq-megatabs__side { display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--wp--preset--color--slate-200); padding-top: .75rem; }
.dq-megatabs__tabs { list-style: none; margin: 0; padding: 0; min-width: 0; }
.dq-megatabs__tabs li { margin: 0; }
.dq-megatabs__tab { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .72rem 1.25rem; background: transparent; border: 0; font: inherit; font-size: .95rem; color: var(--wp--preset--color--slate-900); cursor: pointer; text-align: left; transition: background-color .15s ease; }
.dq-megatabs__tab-caret { transform: rotate(-90deg); opacity: .45; flex: 0 0 auto; }
.dq-megatabs__tab:hover { background: rgba(0,0,0,.03); }
.dq-megatabs__tab.is-active { background: var(--wp--preset--color--brand-50); font-weight: 600; box-shadow: inset 3px 0 0 var(--wp--preset--color--brand-700); }
.dq-megatabs__tab.is-active .dq-megatabs__tab-caret { opacity: .9; color: var(--wp--preset--color--brand-700); }
.dq-megatabs__promos { position: relative; margin: 1.25rem 1.25rem 0; }
.dq-megatabs__promo { display: none; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.dq-megatabs__promo.is-active { display: block; }
.dq-megatabs__all { position: relative; overflow: hidden; isolation: isolate; margin: 1.1rem 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	padding: .8rem 1.1rem; border-radius: 6px; background: var(--dq-lime); color: #111; font-weight: 400; font-size: .9rem; text-decoration: none;
	transition: color .3s ease; }
.dq-megatabs__all::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #222; clip-path: inset(0 100% 0 0); transition: clip-path .5s cubic-bezier(.25,1,.5,1); }
.dq-megatabs__all:hover { color: #fff; }
.dq-megatabs__all:hover::after { clip-path: inset(0 0 0 0); }
.dq-megatabs__all .dq-icon { flex: 0 0 auto; }
.dq-megatabs__panels { position: relative; padding: 1.5rem 1.9rem; min-height: 360px; }
.dq-megatabs__panel { display: none; }
.dq-megatabs__panel.is-active { display: block; }
.dq-megatabs__panel-title { display: inline-flex; align-items: center; gap: .4rem; color: var(--wp--preset--color--brand-700); font-size: 1.2rem; font-weight: 700; text-decoration: none; margin-bottom: 1.1rem; }
.dq-megatabs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem 2.25rem; }
@media (min-width: 1180px) { .dq-megatabs__grid { grid-template-columns: repeat(3, 1fr); } }
.dq-megatabs__course { display: block; text-decoration: none; }
.dq-megatabs__course-name { display: inline; font-weight: 600; color: var(--wp--preset--color--slate-900);
	background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px;
	transition: background-size .35s ease; padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dq-megatabs__course:hover .dq-megatabs__course-name { background-size: 100% 1.5px; }
.dq-megatabs__course-desc { display: block; margin-top: .25rem; font-size: .82rem; color: var(--wp--preset--color--slate-500); line-height: 1.45; }

.dq-header__actions { display: none; }
@media (min-width: 1024px) { .dq-header__actions { display: flex; align-items: center; gap: .75rem; } }

.dq-mobile-toggle { background: none; border: none; padding: .4rem; color: var(--wp--preset--color--slate-900); }
@media (min-width: 1024px) { .dq-mobile-toggle { display: none; } }

.dq-mobile-menu { border-top: 1px solid var(--wp--preset--color--slate-200); background: #fff; padding: .75rem 1.25rem 1.25rem; }
@media (min-width: 1024px) { .dq-mobile-menu { display: none !important; } }
.dq-mobile-menu__link { display: block; padding: .8rem .5rem; border-radius: var(--dq-radius-sm); font-weight: 500; color: var(--wp--preset--color--slate-900); text-decoration: none; }
.dq-mobile-menu__link:hover, .dq-mobile-menu__link.is-active { background: var(--wp--preset--color--brand-50); color: var(--wp--preset--color--brand-700); }
.dq-mobile-menu__cta { width: 100%; margin-top: .75rem; }

.dq-mobile-menu__group { border-bottom: 1px solid var(--wp--preset--color--slate-100); }
.dq-mobile-menu__row { display: flex; align-items: center; }
.dq-mobile-menu__row .dq-mobile-menu__link { flex: 1; }
.dq-mobile-menu__toggle { background: none; border: none; padding: .6rem; color: var(--wp--preset--color--slate-500); }
.dq-mobile-menu__toggle svg { transition: transform 200ms ease; }
.dq-mobile-menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dq-mobile-menu__submenu { padding: 0 0 .5rem .75rem; display: flex; flex-direction: column; }
.dq-mobile-menu__submenu-heading { margin: .6rem 0 .2rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--wp--preset--color--slate-500); }
.dq-mobile-menu__submenu-heading a { color: inherit; text-decoration: none; }
.dq-mobile-menu__sublink { display: block; padding: .5rem; font-size: .9rem; color: var(--wp--preset--color--slate-900); text-decoration: none; border-radius: var(--dq-radius-sm); }
.dq-mobile-menu__sublink:hover { background: var(--wp--preset--color--brand-50); color: var(--wp--preset--color--brand-700); }

/* ---------- Hero ---------- */
/* ---------- Hero (dùng chung trang chủ + trang Giới thiệu) ---------- */
.dq-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.dq-hero__inner { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 940px) { .dq-hero__inner { grid-template-columns: 1.15fr .85fr; } }

/* Cỡ chữ chọn để tiêu đề luôn gói trong 2 dòng ở desktop, hero không tràn màn hình. */
.dq-hero__title { font-size: clamp(1.9rem, 3.5vw, 2.65rem) !important; font-weight: 800; line-height: 1.15; margin: 0 0 1.15rem; }
.dq-hero__title .dq-text-brand { display: inline; }
.dq-text-brand { color: var(--wp--preset--color--brand-700); }
.dq-hero__desc { font-size: 1.0625rem; color: var(--wp--preset--color--slate-500); max-width: 46ch; margin: 0 0 2rem; }
.dq-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }

.dq-hero__visual { position: relative; }
.dq-hero__img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-height: 440px;
	border-radius: var(--dq-radius); box-shadow: var(--dq-shadow-lg);
}
.dq-hero__card {
	position: absolute; left: -14px; bottom: -22px;
	background: #fff; border: 1px solid var(--wp--preset--color--slate-200);
	border-radius: var(--dq-radius); box-shadow: var(--dq-shadow-lg);
	padding: 1rem 1.35rem; min-width: 190px;
	display: flex; flex-direction: column;
}
@media (max-width: 939.98px) { .dq-hero__card { left: auto; right: 12px; bottom: -18px; } }
.dq-hero__card-num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.85rem; line-height: 1.1; color: var(--wp--preset--color--brand-700); }
.dq-hero__card-label { font-size: .8125rem; color: var(--wp--preset--color--slate-500); }

/* ---------- Slider ảnh đầu trang chủ ---------- */
.dq-hero-slider { position: relative; }
.dq-hero-slider__viewport {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 4;            /* mobile: dọc 3:4 */
	background: var(--wp--preset--color--brand-50);
}
@media (min-width: 768px) {
	.dq-hero-slider__viewport { aspect-ratio: 21 / 9; }  /* tablet + desktop: ngang 21:9 */
}
.dq-hero-slider__track {
	display: flex;
	height: 100%;
	transition: transform .5s ease;
	will-change: transform;
}
.dq-hero-slider__slide { flex: 0 0 100%; width: 100%; height: 100%; }
.dq-hero-slider__link { display: block; width: 100%; height: 100%; }
.dq-hero-slider__picture { display: block; width: 100%; height: 100%; }
.dq-hero-slider__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.dq-hero-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .82); color: var(--wp--preset--color--slate-900);
	font-size: 1.6rem; line-height: 1; cursor: pointer;
	display: grid; place-items: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	transition: background .2s ease;
}
.dq-hero-slider__nav:hover { background: #fff; }
.dq-hero-slider__nav--prev { left: 14px; }
.dq-hero-slider__nav--next { right: 14px; }

.dq-hero-slider__dots {
	position: absolute; left: 0; right: 0; bottom: 14px;
	display: flex; justify-content: center; gap: 8px;
}
.dq-hero-slider__dot {
	width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .55); cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.dq-hero-slider__dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 639.98px) {
	.dq-hero-slider__nav { width: 36px; height: 36px; font-size: 1.3rem; }
	.dq-hero-slider__nav--prev { left: 8px; }
	.dq-hero-slider__nav--next { right: 8px; }
}

/* ---------- Dải logo Đơn vị hợp tác (marquee) ---------- */
.dq-partners { border-block: 1px solid var(--wp--preset--color--slate-200); padding-block: 30px; overflow: hidden; }
.dq-partners__label {
	text-align: center; margin: 0 0 1.25rem;
	font-size: .8125rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
	color: var(--wp--preset--color--slate-500);
}
.dq-partners__viewport { position: relative; overflow: hidden; }
/* Mờ hai mép cho marquee mượt hơn */
.dq-partners__viewport::before,
.dq-partners__viewport::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8%; z-index: 2; pointer-events: none; }
.dq-partners__viewport::before { left: 0; background: linear-gradient(to right, var(--wp--preset--color--base, #fff), transparent); }
.dq-partners__viewport::after { right: 0; background: linear-gradient(to left, var(--wp--preset--color--base, #fff), transparent); }
.dq-partners__track {
	display: flex; width: max-content; align-items: center;
	animation: dq-partners-marquee 30s linear infinite;
}
.dq-partners:hover .dq-partners__track { animation-play-state: paused; }
.dq-partners__item { flex: 0 0 auto; padding-inline: clamp(1.5rem, 3vw, 3rem); display: grid; place-items: center; }
.dq-partners__link { display: block; }
.dq-partners__logo { display: block; height: clamp(44px, 6vw, 80px); width: auto; object-fit: contain; }
@keyframes dq-partners-marquee {
	from { transform: translateX(-50%); }  /* chạy từ trái sang phải */
	to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
	.dq-partners__track { animation: none; transform: none; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }
	.dq-partners__item[aria-hidden="true"] { display: none; }
}

/* ---------- Nhóm chương trình đào tạo (4 block ảnh nền) ---------- */
/* Carousel: 3 block/lần trên desktop, cuộn ngang scroll-snap */
.dq-progroups-wrapper { position: relative; overflow: hidden; }
.dq-progroups {
	display: flex; gap: 18px;
	overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; -ms-overflow-style: none;
}
.dq-progroups::-webkit-scrollbar { display: none; }

.dq-progroup {
	flex: 0 0 85%; scroll-snap-align: start;
	position: relative; overflow: hidden; border-radius: var(--dq-radius);
	height: 60vh; min-height: 340px;
	display: flex; flex-direction: column; justify-content: flex-end;
	text-decoration: none; color: #fff;
	background-size: cover; background-position: center;
	transition: transform .35s ease, box-shadow .35s ease;
}
@media (min-width: 640px) { .dq-progroup { flex-basis: calc((100% - 18px) / 2); } }
@media (min-width: 1024px) { .dq-progroup { flex-basis: calc((100% - 36px) / 3); } }
.dq-progroup:hover { box-shadow: var(--dq-shadow-lg); }
/* Nền dự phòng khi danh mục chưa có ảnh */
.dq-progroup--v1 { background: linear-gradient(155deg, var(--wp--preset--color--brand-700) 0%, var(--wp--preset--color--brand-900) 100%); }
.dq-progroup--v2 { background: var(--wp--preset--color--brand-800); }
.dq-progroup--v3 { background: linear-gradient(155deg, var(--wp--preset--color--brand-600) 0%, var(--wp--preset--color--brand-800) 100%); }
.dq-progroup--v4 { background: var(--wp--preset--color--brand-900); }
.dq-progroup--v2::before, .dq-progroup--v4::before {
	content: ""; position: absolute; inset: 0; opacity: .16;
	background: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 11px);
}
/* Lớp phủ tối để chữ luôn đọc rõ trên ảnh nền */
.dq-progroup__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.30) 45%, rgba(0,0,0,.06) 78%); }
.dq-progroup.has-bg .dq-progroup__shade { display: block; }
.dq-progroup:not(.has-bg) .dq-progroup__shade { display: none; }

/* Lớp phủ tối khi hover để mũi tên trắng luôn nổi bật */
.dq-progroup::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0,0,0,0); transition: background .3s ease; }
.dq-progroup:hover::after { background: rgba(0,0,0,.30); }
/* Mũi tên chéo hiện khi hover — góc trên bên phải */
.dq-progroup__arrow {
	position: absolute; top: 20px; right: 20px; z-index: 2;
	transform: translate(-10px, 10px) scale(.85); opacity: 0; color: #fff;
	transition: opacity .4s ease, transform .45s cubic-bezier(.2,.8,.2,1);
	filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.dq-progroup__arrow .dq-icon { width: 40px; height: 40px; stroke-width: 1.6; }
.dq-progroup:hover .dq-progroup__arrow { opacity: 1; transform: translate(0, 0) scale(1); }

.dq-progroup__body { position: relative; z-index: 2; display: block; padding: clamp(22px, 2.4vw, 32px); }
.dq-progroup__count {
	display: inline-block; margin-bottom: .7rem; padding: .25rem .7rem; border-radius: var(--dq-radius-sm);
	background: rgb(255 255 255 / .18); font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.dq-progroup__title {
	position: relative; display: block; width: fit-content; max-width: 100%; margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.2rem, 2vw, 1.6rem) !important; font-weight: 800; line-height: 1.22; color: #fff;
}
/* Gạch chân mảnh mọi dòng, hiện dần khi hover */
.dq-progroup__title { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px; transition: background-size .4s ease; padding-bottom: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dq-progroup:hover .dq-progroup__title { background-size: 100% 1.5px; }
/* Mô tả ẩn, chỉ hiện (fade-in + trượt lên) khi hover */
.dq-progroup__desc {
	display: block; font-size: .9rem; max-width: 42ch; line-height: 1.6; color: rgb(255 255 255 / .92);
	margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(8px);
	transition: opacity .35s ease, max-height .4s ease, transform .35s ease, margin-top .35s ease;
}
.dq-progroup:hover .dq-progroup__desc { margin-top: .6rem; max-height: 10rem; opacity: 1; transform: none; }

/* ---------- Tiêu đề trang danh mục (block dq/term-hero) ---------- */
.dq-term-hero { position: relative; background: var(--wp--preset--color--brand-50); background-size: cover; background-position: center; }
.dq-term-hero__shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.28) 100%); }
.dq-term-hero__inner { position: relative; z-index: 1; padding-block: clamp(3rem, 6vw, 5rem); }
.dq-term-hero__title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.12; max-width: 20ch; }
.dq-term-hero__desc { margin: .75rem 0 0; font-size: 1.0625rem; line-height: 1.6; max-width: 60ch; }
/* Chưa có ảnh: nền xanh nhạt, chữ tối. Có ảnh: chữ trắng trên lớp phủ tối. */
.dq-term-hero:not(.dq-term-hero--image) .dq-term-hero__title { color: var(--wp--preset--color--slate-900); }
.dq-term-hero:not(.dq-term-hero--image) .dq-term-hero__desc { color: var(--wp--preset--color--slate-500); }
.dq-term-hero--image .dq-term-hero__eyebrow { color: var(--dq-lime); }
.dq-term-hero--image .dq-term-hero__title { color: #fff; }
.dq-term-hero--image .dq-term-hero__desc { color: rgb(255 255 255 / .92); }

/* ---------- Vì sao chọn: tiêu đề dính trái + lý do đánh số ---------- */
.dq-why { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 900px) {
	.dq-why { grid-template-columns: .82fr 1.18fr; }
	.dq-why__aside { position: sticky; top: 108px; }
}
.dq-why__aside h2 { margin: 0 0 1rem; }
.dq-why__lead { color: var(--wp--preset--color--slate-500); font-size: 1.0625rem; max-width: 46ch; }
.dq-why__cta { margin-top: 1.75rem; }
.dq-reasons { display: flex; flex-direction: column; }
.dq-reason { display: grid; grid-template-columns: 46px 1fr; gap: 1.15rem; padding-block: 1.6rem; }
.dq-reason + .dq-reason { border-top: 1px solid var(--wp--preset--color--slate-200); }
.dq-reason__no { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.05rem; color: var(--wp--preset--color--brand-700); padding-top: .1rem; }
.dq-reason h3 { font-size: 1.08rem !important; font-weight: 700; margin: 0 0 .35rem; }
.dq-reason p { color: var(--wp--preset--color--slate-500); font-size: .9375rem; max-width: 56ch; margin: 0; }

/* ---------- Stats band ---------- */
.dq-stats { padding-block: 2.5rem; }
.dq-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .dq-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.dq-stats__item { display: flex; flex-direction: column; gap: .25rem; }
.dq-stats__num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.25rem); color: #fff; }
.dq-stats__label { color: var(--wp--preset--color--brand-100); font-size: .9rem; }
/* Fade-in text phía dưới số — chỉ áp dụng khi JS bật animation (.dq-stats--anim). */
.dq-stats--anim .dq-stats__label { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; transition-delay: .35s; }
.dq-stats--anim .dq-stats__item.is-visible .dq-stats__label { opacity: 1; transform: none; }

/* ---------- Section head ---------- */
.dq-section__head { margin-bottom: 2.5rem; text-align: center; }
.dq-section__head--left { text-align: left; margin-bottom: 2.25rem; }
.dq-section__head--left h2 { margin: 0; }
.dq-section--tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.dq-section__head--split { display: flex; align-items: center; justify-content: space-between; text-align: left; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.dq-section__head--split h2 { margin: 0; }
/* Đoạn mô tả ngắn dưới tiêu đề section (căn giữa, giữ độ dài dòng dễ đọc). */
.dq-section__desc { max-width: 820px; margin: 0 auto; color: var(--wp--preset--color--slate-500); font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.65; }
.dq-section__head--left .dq-section__desc, .dq-section__head--split .dq-section__desc { margin-left: 0; }

/* ---------- Why choose ---------- */
.dq-why-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .dq-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dq-why-grid { grid-template-columns: repeat(4, 1fr); } }
/* Biến thể 3 cột (VD 6 thẻ = 2 hàng đều nhau). */
@media (min-width: 1024px) { .dq-why-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.dq-why-card { background: #fff; border: 1px solid #D1D5DB; border-radius: var(--dq-radius); padding: 1.75rem 1.5rem; transition: box-shadow 260ms cubic-bezier(.2,.7,.3,1), transform 260ms cubic-bezier(.2,.7,.3,1), border-color 260ms ease; }
.dq-why-card:hover { border-color: var(--wp--preset--color--brand-600); box-shadow: 0 10px 24px -14px rgba(96, 176, 59,.30); }
.dq-why-card__icon { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
/* Icon dạng SVG nét (stroke=currentColor) — cùng cỡ & màu brand với icon PNG tô mask. */
.dq-why-card__icon > svg { width: 48px; height: 48px; color: var(--wp--preset--color--brand-700); }
/* Icon PNG được tô lại màu brand bằng CSS mask (URL ảnh đặt inline theo từng thẻ). */
.dq-why-card__icon-img {
	display: block; width: 56px; height: 56px;
	background-color: var(--wp--preset--color--brand-700);
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
}
.dq-why-card h3 { font-size: 1.0625rem; margin: 0 0 .5rem; }
.dq-why-card p { color: var(--wp--preset--color--slate-500); font-size: .9375rem; margin: 0; }

/* ---------- Filter pills & select dropdowns ---------- */
.dq-schedule__filters { margin-bottom: 1.5rem; }
.dq-filter-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.dq-filter-dropdown { display: none; }
/* Bộ lọc 2 tầng: danh mục lớn + danh mục con */
.dq-hier .dq-filter-parents { margin-bottom: .75rem; }
.dq-filter-children { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: .8rem .95rem;
	background: var(--wp--preset--color--slate-50); border-radius: 12px; }
.dq-pill--sm { padding: .38rem .9rem; font-size: .82rem; }
@media (max-width: 640px) {
	.dq-filter-bar { position: sticky; top: 68px; z-index: 20; background: #fff; margin: 0 0 1.25rem; padding: .7rem 0; box-shadow: 0 6px 14px -12px rgba(0,0,0,.4); }
	.dq-filter-bar .dq-filter-parents, .dq-filter-bar .dq-filter-children { display: none; }
	.dq-filter-dropdown {
		display: block; width: 100%; margin: 0;
		border: 1px solid var(--wp--preset--color--slate-200); border-radius: 10px;
		padding: .75rem 2.5rem .75rem 1rem; font-size: 1rem; font-family: inherit; background: #fff;
		color: var(--wp--preset--color--slate-900); appearance: none; -webkit-appearance: none;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360b03b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
		background-repeat: no-repeat; background-position: right 1rem center; background-size: 20px;
	}
	.dq-filter-dropdown:focus { outline: none; border-color: var(--wp--preset--color--slate-500); }
}
.dq-pill { border: 1px solid var(--wp--preset--color--slate-200); background: #fff; color: var(--wp--preset--color--slate-500); border-radius: 999px; padding: .5rem 1.1rem; font-size: .875rem; font-weight: 600; transition: all 200ms ease; }
.dq-pill:hover { border-color: var(--wp--preset--color--brand-300); color: var(--wp--preset--color--brand-700); }
.dq-pill.is-active { background: var(--wp--preset--color--brand-700); border-color: var(--wp--preset--color--brand-700); color: #fff; }

.dq-filter-select-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.dq-filter-select-wrapper { display: flex; flex-direction: column; gap: .4rem; flex: 1; min-width: 240px; }
.dq-filter-select-label { font-size: .8125rem; font-weight: 700; color: var(--wp--preset--color--slate-500); text-transform: uppercase; letter-spacing: .05em; }
.dq-filter-select {
	width: 100%;
	border: 1px solid var(--wp--preset--color--slate-200);
	border-radius: var(--dq-radius-sm);
	padding: .65rem 1rem;
	font-size: .9375rem;
	font-family: inherit;
	background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right .75rem center/1.25rem;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 200ms ease, box-shadow 200ms ease;
	padding-right: 2.25rem;
}
.dq-filter-select:focus {
	outline: none;
	border-color: var(--wp--preset--color--brand-600);
	box-shadow: 0 0 0 3px var(--wp--preset--color--brand-100);
}
.dq-filter-empty, .dq-empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--wp--preset--color--slate-500); background: var(--wp--preset--color--slate-50); border-radius: var(--dq-radius); }

/* ---------- Course grid / cards ---------- */
.dq-course-grid__list { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.75rem; }
@media (min-width: 640px) { .dq-course-grid__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dq-course-grid__list { grid-template-columns: repeat(var(--dq-cols, 3), 1fr); } }

/* Card khóa học: kiểu giống card blog (không viền, ảnh bo góc, pill + nút phụ dưới) */
.dq-course-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--wp--preset--color--slate-50); border: 0; border-radius: 18px; padding: 12px; }
.dq-course-card__media { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--wp--preset--color--brand-50); position: relative; }
.dq-course-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; } /* không zoom khi hover */
.dq-course-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--wp--preset--color--brand-700); }
.dq-course-card__body { display: flex; flex-direction: column; flex: 1; }
.dq-course-card__title { margin: 1.1rem 0 0; padding: 0 .4rem; }
.dq-course-card__title a { color: var(--wp--preset--color--slate-900); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px; transition: background-size .4s ease; padding-bottom: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dq-course-card:hover .dq-course-card__title a { background-size: 100% 1.5px; }
.dq-course-card__footer { margin-top: auto; padding: 1.1rem .4rem .4rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.dq-course-card__cat { flex: 0 0 auto; background: var(--wp--preset--color--brand-700); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .01em; padding: .1rem .6rem; border-radius: 999px; }
.dq-course-card__more { flex: 0 0 auto; }

/* ---------- Badges ---------- */
.dq-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .3rem .75rem; font-size: .78rem; font-weight: 700; }
.dq-badge--brand { background: var(--wp--preset--color--brand-50); color: var(--wp--preset--color--brand-700); }
.dq-badge--amber { background: #FEF3C7; color: #92400E; }
.dq-badge--gray { background: var(--wp--preset--color--slate-50); color: var(--wp--preset--color--slate-500); }
.dq-badge--red { background: var(--wp--preset--color--accent-50); color: var(--wp--preset--color--accent-600); }

/* ---------- Process steps ---------- */
.dq-steps { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.75rem; counter-reset: step; }
@media (min-width: 768px) { .dq-steps { grid-template-columns: repeat(4, 1fr); } }
.dq-step { text-align: center; padding: 1rem; }
.dq-step__num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wp--preset--color--brand-700); color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 800; margin-bottom: 1rem; }
.dq-step h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.dq-step p { color: var(--wp--preset--color--slate-500); font-size: .9rem; margin: 0; }

/* ---------- Testimonials ---------- */
.dq-testimonial-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .dq-testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.dq-testimonial { background: var(--wp--preset--color--slate-50); border-radius: var(--dq-radius); padding: 1.75rem; margin: 0; }
.dq-testimonial blockquote { margin: 0 0 1.25rem; font-size: .9375rem; color: var(--wp--preset--color--slate-900); line-height: 1.65; }
.dq-testimonial figcaption { display: flex; align-items: center; gap: .75rem; }
.dq-testimonial__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--dq-shadow-sm); }
.dq-testimonial__meta { display: flex; flex-direction: column; }
.dq-testimonial__meta strong { font-size: .9375rem; color: var(--wp--preset--color--slate-900); font-weight: 700; line-height: 1.25; }
.dq-testimonial__meta span { font-size: .8125rem; color: var(--wp--preset--color--slate-500); margin-top: .15rem; }

/* ---------- CTA band ---------- */
.dq-cta-band { padding-block: 3.5rem; }
.dq-cta-band__inner { text-align: center; max-width: 640px; margin-inline: auto; }
.dq-cta-band__inner .wp-block-buttons { justify-content: center; margin-bottom: 0; }
.dq-cta-band__inner > *:last-child { margin-bottom: 0; }
.dq-cta-band__title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.dq-cta-band__desc { margin-bottom: 1.75rem; }

/* ---------- News cards ---------- */
.dq-news-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.75rem; }
@media (min-width: 640px) { .dq-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dq-news-grid { grid-template-columns: repeat(var(--dq-cols, 3), 1fr); } }
.dq-news-card { background: #fff; border: 1px solid #D1D5DB; border-radius: var(--dq-radius); overflow: hidden; transition: box-shadow 260ms cubic-bezier(.2,.7,.3,1), transform 260ms cubic-bezier(.2,.7,.3,1), border-color 260ms ease; }
.dq-news-card:hover { border-color: var(--wp--preset--color--brand-600); box-shadow: 0 10px 24px -14px rgba(96, 176, 59,.30); }
.dq-news-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--wp--preset--color--brand-50); }
.dq-news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dq-news-card__cat a { font-size: .75rem; font-weight: 700; color: var(--wp--preset--color--brand-700); text-transform: uppercase; padding-inline: 1.25rem; display: inline-block; margin-top: .9rem; text-decoration: none; }
.dq-news-card__title { padding-inline: 1.25rem; font-size: 1.05rem; margin: .5rem 0 .4rem; }
.dq-news-card__title a { color: var(--wp--preset--color--slate-900); text-decoration: none; }
.dq-news-card__title a:hover { color: var(--wp--preset--color--brand-700); }
.dq-news-card__excerpt { padding-inline: 1.25rem; color: var(--wp--preset--color--slate-500); font-size: .875rem; }
.dq-news-card__date { padding: 0 1.25rem 1.25rem; display: block; font-size: .8125rem; color: var(--wp--preset--color--slate-500); }
.dq-pagination { justify-content: center; margin-top: 2.5rem; gap: .5rem; }
.dq-pagination a, .dq-pagination span { border-radius: var(--dq-radius-sm); padding: .5rem .9rem; }

/* ---------- News carousel ---------- */
.dq-news-carousel-wrapper { position: relative; overflow: hidden; }
.dq-news-carousel {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	scroll-behavior: smooth;
	padding-bottom: 1.5rem;
}
.dq-news-carousel::-webkit-scrollbar { display: none; }
.dq-news-carousel .dq-news-carousel-item {
	flex: 0 0 100%;
	scroll-snap-align: start;
}
@media (min-width: 640px) {
	.dq-news-carousel .dq-news-carousel-item {
		flex: 0 0 calc(50% - 0.75rem);
	}
}
@media (min-width: 1024px) {
	.dq-news-carousel .dq-news-carousel-item {
		flex: 0 0 calc(33.333% - 1rem);
	}
}

/* ---------- Sidebar list (blog) ---------- */
.dq-sidebar-cta { margin-bottom: 2rem; }
.dq-sidebar-cta .wp-block-button__link { width: 100%; }
.dq-sidebar-list-query .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.dq-sidebar-list-query li { padding-block: .85rem; border-bottom: 1px solid var(--wp--preset--color--slate-200); }
.dq-sidebar-list__title { font-size: .9375rem; margin: 0 0 .25rem; }
.dq-sidebar-list__title a { color: var(--wp--preset--color--slate-900); text-decoration: none; }
.dq-sidebar-list__title a:hover { color: var(--wp--preset--color--brand-700); }
.dq-sidebar-list__date { font-size: .78rem; color: var(--wp--preset--color--slate-500); }
.dq-article__title { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.dq-article__meta { gap: 1rem; color: var(--wp--preset--color--slate-500); font-size: .875rem; margin-bottom: 1.5rem; }
.dq-article__image { border-radius: var(--dq-radius); overflow: hidden; margin-bottom: 1.75rem; }
.dq-article__image img { width: 100%; object-fit: cover; }
.dq-prose { max-width: 72ch; line-height: 1.75; }
.dq-prose h2, .dq-prose h3 { margin-top: 2rem; }
.dq-prose ul, .dq-prose ol { padding-left: 1.5rem; }
.dq-prose img { border-radius: var(--dq-radius); }

/* ---------- Page hero (inner pages) ---------- */
.dq-page-hero { padding-block: 3rem; }
@media (min-width: 782px) { .dq-page-hero { min-height: 40vh; display: flex; flex-direction: column; justify-content: center; } }
.dq-page-hero--sm { padding-block: 1.5rem; }
@media (min-width: 782px) { .dq-page-hero--sm { min-height: 0; padding-block: 2rem; } }
.dq-page-hero__desc { max-width: 62ch; color: var(--wp--preset--color--slate-500); margin-top: .5rem; margin-inline: 0 !important; }

/* Thanh tiêu đề có ảnh nền (dùng chung cho .dq-page-hero--bg và .dq-archive__bar-wrap--bg) */
.dq-page-hero--bg, .dq-archive__bar-wrap--bg { position: relative; overflow: hidden; isolation: isolate; }
.dq-page-hero--bg { padding-block: clamp(3rem, 7vw, 5.5rem); }
.dq-page-hero__bg, .dq-archive__bar-wrap--bg::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--dq-hero-bg); background-size: cover; background-position: center; }
.dq-page-hero__overlay, .dq-archive__bar-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.46) 100%); }
.dq-page-hero--bg .dq-eyebrow, .dq-archive__bar-wrap--bg .dq-eyebrow { color: var(--dq-lime); }
.dq-page-hero--bg h1, .dq-page-hero--bg .dq-page-hero__desc,
.dq-archive__bar-wrap--bg .dq-archive__heading, .dq-archive__bar-wrap--bg .dq-archive__desc { color: #fff; }
.dq-archive__bar-wrap--bg { border-bottom: 0; }

/* Thanh tiêu đề trang kèm ảnh đại diện.
   Dùng flex thay vì grid 2 cột cố định: khi trang chưa đặt ảnh, block dq/page-hero-media
   không in ra gì và phần chữ tự chiếm trọn chiều ngang, giữ nguyên giao diện cũ. */
.dq-page-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem clamp(2rem, 4vw, 3.5rem); }
.dq-page-hero__content { flex: 1 1 min(100%, 460px); min-width: 0; }
.dq-page-hero__media { flex: 0 1 clamp(240px, 32%, 380px); min-width: 0; }
.dq-page-hero__img {
	width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
	border-radius: var(--dq-radius); box-shadow: var(--dq-shadow-lg);
}
@media (max-width: 767.98px) {
	/* Mobile: ảnh xuống dưới phần chữ và thu thấp lại để không đẩy nội dung chính xuống quá sâu. */
	.dq-page-hero__media { flex-basis: 100%; }
	.dq-page-hero__img { aspect-ratio: 16 / 7; }
}
.dq-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--wp--preset--color--slate-500); margin-bottom: .75rem; }
.dq-breadcrumb a { color: var(--wp--preset--color--slate-500); text-decoration: none; }
.dq-breadcrumb a:hover { color: var(--wp--preset--color--brand-700); }
.dq-page { max-width: 900px; margin-inline: auto; }
.dq-page__title { margin-bottom: 1.5rem; }

/* ---------- Course detail ---------- */
.dq-course-hero-image { border-radius: var(--dq-radius); overflow: hidden; margin-bottom: 1.75rem; }
.dq-course-hero-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.dq-course-meta { position: sticky; top: 96px; background: #fff; border: 1px solid var(--wp--preset--color--slate-200); border-radius: var(--dq-radius); padding: 1.5rem; box-shadow: var(--dq-shadow-sm); display: flex; flex-direction: column; }
.dq-course-meta__price-label { font-size: .8125rem; color: var(--wp--preset--color--slate-500); margin: 0; }
.dq-course-meta__price { font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; font-weight: 800; color: var(--wp--preset--color--brand-700); margin: 0 0 1.25rem; }
.dq-course-meta__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.dq-course-meta__list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--wp--preset--color--slate-900); }
.dq-course-meta__block { align-items: flex-start; }
.dq-course-meta__sublist { list-style: disc; margin: .35rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.dq-course-meta__sublist li { display: list-item; font-size: .875rem; color: var(--wp--preset--color--slate-500); line-height: 1.5; }
.dq-course-meta__call { margin-top: .75rem; padding: .65rem 1rem; font-size: .9rem; }
/* Sidebar trang chương trình đào tạo dính khi cuộn: cột phải kéo dài bằng cột nội dung (mặc định cột căn trên
   nên chỉ cao bằng sidebar -> sticky không có chỗ trượt). top = chiều cao header dính (68px; từ 1024px có thêm
   topbar = 104px) + 20px. Sidebar cao hơn màn hình thì cuộn bên trong để không bị cắt đáy. */
@media (min-width: 782px) {
	.wp-block-column:has(> .dq-course-meta) { align-self: stretch; }
	.dq-course-meta { top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-width: 1024px) {
	.dq-course-meta { top: 124px; max-height: calc(100vh - 140px); }
}

/* ---------- Schedule table ---------- */
.dq-schedule__title { margin-bottom: 1rem; }
.dq-schedule__table { display: flex; flex-direction: column; border: 1px solid var(--wp--preset--color--slate-200); border-radius: var(--dq-radius); overflow: hidden; }
.dq-schedule__head { display: none; }
@media (min-width: 900px) {
	/* Cột: Khai giảng | Hình thức | Học phí | (nút) */
	.dq-schedule__head, .dq-schedule__row { display: grid; grid-template-columns: 1fr 1.3fr 1fr .9fr; gap: 1rem; align-items: center; padding: 1.25rem 1.5rem; }
	/* Thêm cột Chương trình đào tạo ở đầu khi hiển thị nhiều chương trình (trang Lịch khai giảng). */
	.dq-schedule__table--with-course .dq-schedule__head, .dq-schedule__table--with-course .dq-schedule__row { grid-template-columns: 2fr 1fr 1.2fr 1fr .9fr; }
	.dq-schedule__head { background: var(--wp--preset--color--slate-50); font-size: .8125rem; font-weight: 700; color: var(--wp--preset--color--slate-500); text-transform: uppercase; letter-spacing: .03em; }
	.dq-schedule__row + .dq-schedule__row { border-top: 1px solid var(--wp--preset--color--slate-200); }
	.dq-schedule__row [data-label] { font-size: .9rem; }
}
@media (max-width: 899.98px) {
	.dq-schedule__row { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.25rem; }
	.dq-schedule__row + .dq-schedule__row { border-top: 1px solid var(--wp--preset--color--slate-200); }
	.dq-schedule__row [data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--wp--preset--color--slate-500); }
	.dq-schedule__action { margin-top: .4rem; }
}
/* Hàng bấm được -> trỏ tới trang khoá học */
.dq-schedule__row--link { cursor: pointer; transition: background-color .15s ease; }
.dq-schedule__row--link:hover { background: var(--wp--preset--color--slate-50); }
.dq-schedule__course-name a { color: var(--wp--preset--color--slate-900); text-decoration: none; font-weight: 600; line-height: 1.4; }
.dq-schedule__row--link:hover .dq-schedule__course-name a { color: var(--wp--preset--color--brand-700); text-decoration: underline; }

/* ---------- FAQ theo chương trình đào tạo ---------- */
.dq-faq { margin-top: 2.5rem; }
.dq-faq__title { margin-bottom: 1rem; }
.dq-faq__list { display: flex; flex-direction: column; gap: .75rem; }
.dq-faq__item {
	background: #fff;
	border: 1px solid var(--wp--preset--color--slate-200);
	border-radius: var(--dq-radius);
	overflow: hidden;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}
.dq-faq__item[open] { border-color: var(--wp--preset--color--brand-300); box-shadow: var(--dq-shadow-sm); }
.dq-faq__question {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
	padding: 1rem 1.25rem; cursor: pointer; list-style: none;
	font-weight: 600; font-size: .9875rem; line-height: 1.5;
	color: var(--wp--preset--color--slate-900);
}
.dq-faq__question::-webkit-details-marker { display: none; }
.dq-faq__question:hover { color: var(--wp--preset--color--brand-700); }
.dq-faq__caret { flex-shrink: 0; margin-top: .15rem; color: var(--wp--preset--color--brand-700); transition: transform 200ms ease; }
.dq-faq__item[open] .dq-faq__caret { transform: rotate(180deg); }
.dq-faq__answer { padding: 0 1.25rem 1.1rem; color: var(--wp--preset--color--slate-500); font-size: .9375rem; line-height: 1.7; }
.dq-faq__answer p { margin: 0 0 .6rem; }
.dq-faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Cảm nhận học viên trong trang chương trình đào tạo ---------- */
.dq-course-testimonials { margin-top: 2.5rem; }
.dq-course-testimonials h2 { margin-bottom: 1rem; }
.dq-course-testimonials .dq-testimonial-grid { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .dq-course-testimonials .dq-testimonial-grid { grid-template-columns: repeat(2, 1fr); } }

.dq-dangky-cols { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .dq-dangky-cols { grid-template-columns: 55fr 45fr; gap: 2.75rem; } }
.dq-dangky-cols__aside { min-width: 0; }
.dq-info-box { background: var(--wp--preset--color--slate-50); border-radius: var(--dq-radius); padding: 1.5rem; }
.dq-info-box h3 { margin-top: 0; }
.dq-info-box__list { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.dq-info-box__note { font-size: .825rem; color: var(--wp--preset--color--slate-500); margin: 0; }

/* ---------- Forms ---------- */
.dq-form__row { margin-bottom: 1.1rem; }
.dq-form__row label { display: block; font-size: .875rem; font-weight: 600; color: var(--wp--preset--color--slate-900); margin-bottom: .4rem; }
.dq-form__row input, .dq-form__row select, .dq-form__row textarea {
	width: 100%;
	border: 1px solid var(--wp--preset--color--slate-200);
	border-radius: var(--dq-radius-sm);
	padding: .8rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}
.dq-form__row input:focus, .dq-form__row select:focus, .dq-form__row textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--brand-600);
	box-shadow: 0 0 0 3px var(--wp--preset--color--brand-100);
}
.dq-form__grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 560px) { .dq-form__grid-2 { grid-template-columns: 1fr 1fr; } }
.dq-form__hint { font-size: .8125rem; color: var(--wp--preset--color--slate-500); margin: .4rem 0 0; }
.dq-form__error { color: var(--wp--preset--color--accent-600); font-size: .875rem; margin: 0 0 1rem; }
.dq-form__fineprint { font-size: .78rem; color: var(--wp--preset--color--slate-500); text-align: center; margin-top: .9rem; }
.dq-required { color: var(--wp--preset--color--accent-600); }
.dq-form__honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Floating-label form ---------- */
.dq-form--float .dq-field { position: relative; margin-bottom: 1.1rem; }
.dq-form--float .dq-field label {
	position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); transform-origin: left center;
	margin: 0; padding: 0 .35rem; background: #fff; color: var(--wp--preset--color--slate-500);
	font-weight: 400; font-size: 1rem; line-height: 1; pointer-events: none;
	transition: top .15s ease, transform .15s ease, color .15s ease;
	max-width: calc(100% - 1.4rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dq-form--float .dq-field input::placeholder,
.dq-form--float .dq-field textarea::placeholder { color: transparent; }
.dq-form--float .dq-field input:focus::placeholder,
.dq-form--float .dq-field textarea:focus::placeholder { color: var(--wp--preset--color--slate-400, #9aa2ad); }
.dq-form--float .dq-field input:focus ~ label,
.dq-form--float .dq-field input:not(:placeholder-shown) ~ label,
.dq-form--float .dq-field textarea:focus ~ label,
.dq-form--float .dq-field textarea:not(:placeholder-shown) ~ label,
.dq-form--float .dq-field--select label,
.dq-form--float .dq-field--phone label {
	top: 0; transform: translateY(-50%) scale(.8);
	color: var(--wp--preset--color--slate-500); font-weight: 500;
}
/* focus: chỉ đậm màu border (cùng màu chữ holder), bỏ viền xanh + glow */
.dq-form--float .dq-field input:focus,
.dq-form--float .dq-field select:focus,
.dq-form--float .dq-field textarea:focus {
	border-color: var(--wp--preset--color--slate-500);
	box-shadow: none;
}
.dq-form--float .dq-field--textarea label { top: 1.1rem; transform: none; }
.dq-form--float .dq-field--textarea textarea:focus ~ label,
.dq-form--float .dq-field--textarea textarea:not(:placeholder-shown) ~ label { top: 0; transform: translateY(-50%) scale(.8); }
.dq-form--float .dq-field .dq-required { color: var(--wp--preset--color--accent-600); }

/* ---------- Intl phone field ---------- */
.dq-phone { display: flex; align-items: stretch; width: 100%; position: relative; background: #fff;
	border: 1px solid var(--wp--preset--color--slate-200); border-radius: var(--dq-radius-sm);
	transition: border-color 200ms ease; }
.dq-field--phone:focus-within .dq-phone { border-color: var(--wp--preset--color--slate-500); }
.dq-phone.is-invalid { border-color: var(--wp--preset--color--accent-600); }
.dq-phone__country { display: flex; align-items: center; gap: .35rem; padding: 0 .7rem; font: inherit;
	background: transparent; border: 0; border-right: 1px solid var(--wp--preset--color--slate-200);
	border-radius: var(--dq-radius-sm) 0 0 var(--dq-radius-sm); cursor: pointer; color: inherit; white-space: nowrap; }
.dq-phone__flag { display: inline-flex; align-items: center; line-height: 1; }
.dq-phone__flag svg { width: 1.5rem; height: auto; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.dq-phone__dial { font-size: 1rem; color: var(--wp--preset--color--slate-900); }
.dq-phone__caret { font-size: .6rem; color: var(--wp--preset--color--slate-500); transition: transform .15s ease; }
.dq-phone__country[aria-expanded="true"] .dq-phone__caret { transform: rotate(180deg); }
.dq-phone input[type="tel"] { flex: 1 1 auto; min-width: 0; border: 0 !important; box-shadow: none !important;
	border-radius: 0 var(--dq-radius-sm) var(--dq-radius-sm) 0 !important; padding: .8rem 1rem; }
.dq-field--phone input[type="tel"]::placeholder { color: var(--wp--preset--color--slate-400, #9aa2ad) !important; }
.dq-phone__list { position: absolute; top: calc(100% + 5px); left: 0; z-index: 40; margin: 0; padding: .35rem;
	list-style: none; min-width: 250px; max-height: 264px; overflow-y: auto; background: #fff;
	border: 1px solid var(--wp--preset--color--slate-200); border-radius: 10px; box-shadow: var(--dq-shadow, 0 16px 40px rgba(0,0,0,.14)); }
.dq-phone__list li { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 6px;
	cursor: pointer; font-size: .95rem; }
.dq-phone__list li:hover, .dq-phone__list li.is-active { background: var(--wp--preset--color--brand-50); }
.dq-phone__list .dq-phone__flag svg { width: 1.35rem; }
.dq-phone__ln { flex: 1 1 auto; color: var(--wp--preset--color--slate-900); }
.dq-phone__ld { color: var(--wp--preset--color--slate-500); }
/* Phone (float form): label ẩn khi nghỉ (dùng placeholder), nổi lên viền khi focus/đã nhập */
.dq-form--float .dq-field--phone label { opacity: 0; transition: opacity .15s ease, color .15s ease, transform .15s ease; }
.dq-form--float .dq-field--phone:focus-within label,
.dq-form--float .dq-field--phone.has-val label { opacity: 1; }
.dq-form--float .dq-field--phone:focus-within input[type="tel"]::placeholder { color: transparent !important; }
.dq-inline-register-form { background: #fff; border: 1px solid var(--wp--preset--color--slate-200); border-radius: var(--dq-radius); padding: 1.75rem; box-shadow: var(--dq-shadow-sm); }

/* ---------- Footer ---------- */
.dq-footer { background: #FFF6EF; color: var(--wp--preset--color--slate-500); }
/* Dòng 1: brand + đăng ký nhận tin */
.dq-footer__main { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3rem; }
@media (min-width: 900px) { .dq-footer__main { grid-template-columns: 0.9fr 1.7fr; gap: 3.5rem; } }
.dq-footer__left { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.dq-footer__signup { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.dq-footer__signup-title { margin: 0; font-weight: 700; font-size: 1.1rem; color: var(--wp--preset--color--slate-900); }
/* Dòng 2: 4 cột (divider phía trên) */
.dq-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem 2.5rem; }
@media (min-width: 640px) { .dq-footer__grid { grid-template-columns: 1fr 1fr; } }
.dq-footer__credit a { color: var(--wp--preset--color--brand-700); text-decoration: none; }
.dq-footer__credit a:hover { text-decoration: underline; }
/* Logo footer to hơn logo header: cột thương hiệu rộng hơn và đây là điểm neo cuối trang. */
.dq-footer__brand .dq-logo-img, .dq-footer__brand .dq-logo-svg, .dq-footer__brand .custom-logo { height: 52px; width: auto; max-width: 100%; }
@media (min-width: 640px) { .dq-footer__brand .dq-logo-img, .dq-footer__brand .dq-logo-svg, .dq-footer__brand .custom-logo { height: 60px; } }
.dq-footer__desc { font-size: .875rem; color: var(--wp--preset--color--slate-500); margin: 1rem 0 1.25rem; max-width: 34ch; }
.dq-footer__social { display: flex; gap: .6rem; }
.dq-social-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--wp--preset--color--slate-900); border: 1px solid #F1DAC8; display: flex; align-items: center; justify-content: center; transition: background-color 200ms ease, color 200ms ease; }
.dq-social-btn:hover { background: var(--wp--preset--color--brand-700); color: #fff; }
.dq-footer__col h3 { color: var(--wp--preset--color--slate-900); font-size: 1rem; margin: 0 0 1rem; }
.dq-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.dq-footer__col a, .dq-footer__contact a { color: var(--wp--preset--color--slate-500); text-decoration: none; font-size: .9rem;
	background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
	transition: background-size .4s ease; padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dq-footer__col a:hover, .dq-footer__contact a:hover { background-size: 100% 1px; }
.dq-footer__contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--wp--preset--color--slate-500); }
.dq-footer__bottom { border-top: 1px solid #F1DAC8; }
.dq-footer__bottom-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1.25rem; font-size: .78rem; color: var(--wp--preset--color--slate-500); }
@media (min-width: 640px) { .dq-footer__bottom-inner { flex-direction: row; } }
.dq-footer__legal { display: flex; gap: 1.25rem; }
.dq-footer__legal a { color: var(--wp--preset--color--slate-500); text-decoration: none; }
.dq-footer__legal a:hover { color: var(--wp--preset--color--brand-700); }

/* ---------- Floating contact widget ---------- */
.dq-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.dq-widget { position: fixed; bottom: 20px; right: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }

/* Nút gọi nổi góc dưới bên trái (2 tư vấn viên) */
.dq-callfab { position: fixed; left: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: .6rem; }
.dq-callfab__btn { display: flex; align-items: center; gap: .6rem; background: var(--wp--preset--color--brand-700); color: #fff; padding: .5rem .95rem .5rem .5rem; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 20px rgb(15 23 42 / .22); transition: transform .2s ease, background-color .2s ease; }
.dq-callfab__btn:hover { transform: translateY(-2px); background: var(--wp--preset--color--brand-600); color: #fff; }
.dq-callfab__icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.dq-callfab__icon .dq-icon { width: 20px; height: 20px; }
.dq-callfab__label { display: flex; flex-direction: column; line-height: 1.15; }
.dq-callfab__label strong { font-size: .82rem; font-weight: 600; }
.dq-callfab__label small { font-size: .8rem; opacity: .95; }
@media (max-width: 560px) {
	.dq-callfab { left: 14px; bottom: 14px; gap: .5rem; }
	.dq-callfab__btn { padding: .4rem .55rem; }
	.dq-callfab__label { display: none; }
	.dq-callfab__icon { width: 44px; height: 44px; }
}

/* Nút ảnh "Bạn cần tư vấn?" — ảnh đã có nền trong suốt nên không bọc thêm khung. */
.dq-widget__cta { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; filter: drop-shadow(0 10px 20px rgb(15 23 42 / .22)); transition: transform 200ms ease; }
.dq-widget__cta img { width: 315px; height: auto; display: block; }
.dq-widget__cta:hover { }
.dq-widget__cta:focus-visible { outline: 3px solid var(--wp--preset--color--brand-700); outline-offset: 4px; border-radius: var(--dq-radius-md); }
/* Khi bảng tư vấn mở thì ẩn ảnh đi để bảng không bị đẩy quá cao trên màn hình nhỏ. */
.dq-widget.is-open .dq-widget__cta { display: none; }

.dq-widget__top { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--wp--preset--color--slate-200); color: var(--wp--preset--color--slate-500); display: flex; align-items: center; justify-content: center; box-shadow: var(--dq-shadow-md); transition: color 200ms ease, border-color 200ms ease; }
.dq-widget__top:hover { color: var(--wp--preset--color--brand-700); border-color: var(--wp--preset--color--brand-300); }

/* ---------- Bảng tư vấn ở góc màn hình ---------- */
.dq-consult { width: min(360px, calc(100vw - 2.5rem)); max-height: min(78vh, 640px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--wp--preset--color--slate-200); border-radius: 8px; box-shadow: 0 24px 48px rgb(15 23 42 / .22); text-align: left; }
.dq-consult[hidden] { display: none; }
.dq-consult__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.15rem; background: var(--wp--preset--color--brand-700); color: #fff; border-radius: 8px 8px 0 0; position: sticky; top: 0; z-index: 1; }
/* Luôn một dòng: co chữ theo bề rộng màn hình thay vì để xuống dòng.
   !important để thắng luật chung "h2 { font-size: ... !important }" bên trên. */
.dq-consult__title { margin: 0; font-size: clamp(1.2rem, 5.4vw, 1.4rem) !important; line-height: 1.25; color: #fff; white-space: nowrap; }
.dq-consult__close { background: rgb(255 255 255 / .16); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: background-color 200ms ease; }
.dq-consult__close:hover { background: rgb(255 255 255 / .3); }

.dq-consult__channels { display: flex; flex-direction: column; padding: 1rem 1.15rem; gap: .7rem; border-bottom: 1px solid var(--wp--preset--color--slate-100, #f1f5f9); }
.dq-consult__intro { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--wp--preset--color--slate-500, #64748b); }
.dq-consult__group-label { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--wp--preset--color--slate-500, #64748b); margin-top: .1rem; }
.dq-consult__hotline { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.dq-consult__tel { width: 100%; justify-content: flex-start; }
.dq-consult__social2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .15rem; }
.dq-consult__channel { display: flex; align-items: center; gap: .7rem; padding: .45rem .7rem; border-radius: var(--dq-radius-md, 12px); text-decoration: none; color: var(--wp--preset--color--slate-900, #0f172a); transition: background-color 200ms ease; }
.dq-consult__channel--half { gap: .55rem; padding: .55rem .65rem; border: 1px solid var(--wp--preset--color--slate-200); border-radius: 8px; }
.dq-consult__channel--half .dq-consult__channel-icon { width: 30px; height: 30px; }
.dq-consult__channel--half .dq-consult__channel-text strong { font-size: .85rem; }
.dq-consult__channel--half .dq-consult__channel-text span { font-size: .74rem; }
.dq-consult__channel:hover { background: var(--wp--preset--color--slate-50, #f8fafc); }
.dq-consult__channel-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.dq-consult__channel-icon--phone { background: var(--wp--preset--color--brand-700); }
.dq-consult__channel-icon--zalo { background: transparent; }
.dq-social-btn--zalo, .dq-social-btn--zalo:hover { background: #fff; }
.dq-social-btn .dq-zalo-logo { width: 18px; height: 18px; }

/* Google Map nhúng */
.dq-map { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--wp--preset--color--slate-100, #f1f5f9); }
.dq-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.dq-footer__map { margin-top: 1.75rem; max-width: 420px; aspect-ratio: 16 / 9; }
.dq-map--wide { margin-top: 1.25rem; aspect-ratio: 16 / 9; }
.dq-zalo-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 22%; }
.dq-consult__channel-icon--fb { background: #1877F2; }
.dq-consult__channel-text { display: flex; flex-direction: column; min-width: 0; }
.dq-consult__channel-text strong { font-size: .9rem; }
.dq-consult__channel-text span { font-size: .8rem; color: var(--wp--preset--color--slate-500, #64748b); }

.dq-consult__body { padding: .9rem 1.15rem 1.15rem; }
.dq-consult__lead { margin: 0 0 .7rem; font-size: .85rem; color: var(--wp--preset--color--slate-500, #64748b); }
.dq-consult__body .dq-form__row { margin-bottom: .6rem; }
/* Nút gửi dính đáy: bảng cuộn được nên nút phải luôn nhìn thấy, không phụ thuộc chiều cao màn hình. */
.dq-consult__submit { position: sticky; bottom: 0; background: #fff; padding-top: .5rem; }
.dq-consult__success { text-align: center; padding: .5rem 0; }
.dq-consult__success h3 { margin: .75rem 0 .35rem; font-size: 1.05rem; }
.dq-consult__success p { margin: 0; font-size: .88rem; color: var(--wp--preset--color--slate-500, #64748b); }

@media (max-width: 480px) {
	.dq-widget__cta img { width: 252px; }
	.dq-consult { max-height: 74vh; }
}

@media (prefers-reduced-motion: reduce) {
	.dq-widget__cta { transition: none; }
	.dq-widget__cta:hover { transform: none; }
}

/* ---------- Modal ---------- */
.dq-modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 1rem; }
.dq-modal.is-open { display: flex; }
.dq-modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); cursor: pointer; }
.dq-modal__panel { position: relative; background: #fff; border-radius: 18px; box-shadow: var(--dq-shadow-lg); max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 1.75rem; }
@media (min-width: 640px) { .dq-modal__panel { padding: 2.25rem; } }
.dq-modal__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--wp--preset--color--slate-500); padding: .35rem; }
.dq-modal__close:hover { color: var(--wp--preset--color--slate-900); }
.dq-modal__title { margin: 0 0 .4rem; font-size: 1.35rem; }
.dq-modal__subtitle { color: var(--wp--preset--color--slate-500); font-size: .9rem; margin: 0 0 1.5rem; }
.dq-modal__success { text-align: center; padding: 1.5rem 0; }
.dq-modal__success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--wp--preset--color--brand-50); color: var(--wp--preset--color--brand-700); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.dq-modal__success h3 { margin: 0 0 .5rem; }
.dq-modal__success p { color: var(--wp--preset--color--slate-500); margin: 0 0 1.25rem; }
body.dq-modal-open { overflow: hidden; }

/* ---------- 404 ---------- */
.dq-404 { text-align: center; padding-block: 5rem; }
.dq-404__code { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(3.5rem, 10vw, 6rem); color: var(--wp--preset--color--brand-100); margin: 0; line-height: 1; }



/* ---------- Testimonial Carousel & Navigation controls ---------- */
.dq-carousel-controls { display: flex; align-items: center; gap: 1.25rem; }
.dq-dual-btns { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dq-dual-btns .dq-btn-divider, .dq-hero__actions .dq-btn-divider { color: #D8D8D8; font-weight: 300; font-size: 1.5rem; line-height: 1; user-select: none; }
.dq-carousel-nav { display: flex; gap: .5rem; }
.dq-carousel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--slate-200);
	background: #fff;
	color: var(--wp--preset--color--slate-600);
	cursor: pointer;
	transition: all 200ms ease;
	padding: 0;
}
.dq-carousel-btn:hover {
	border-color: var(--wp--preset--color--brand-700);
	color: var(--wp--preset--color--brand-700);
	background: var(--wp--preset--color--brand-50);
}
.dq-carousel-btn svg { width: 20px; height: 20px; }

.dq-testimonial-carousel-wrapper { position: relative; overflow: hidden; }
.dq-testimonial-carousel {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.dq-testimonial-carousel::-webkit-scrollbar { display: none; }

.dq-testimonial-carousel .dq-testimonial {
	flex: 0 0 100%;
	scroll-snap-align: start;
}
@media (min-width: 640px) {
	.dq-testimonial-carousel .dq-testimonial {
		flex: 0 0 calc(50% - 0.75rem);
	}
}
@media (min-width: 1024px) {
	.dq-testimonial-carousel .dq-testimonial {
		flex: 0 0 calc(33.333% - 1rem);
	}
}

/* ---------- About page: Hero ---------- */
/* Trang Giới thiệu dùng chung bộ .dq-hero ở trên, không cần CSS riêng nữa. */

.dq-vm-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 768px) { .dq-vm-grid { grid-template-columns: 1fr 1fr; } }

.dq-vm-card {
	position: relative; overflow: hidden;
	border-radius: var(--dq-radius);
	min-height: 320px; height: 60vh; display: flex; align-items: flex-end;
	background-size: cover; background-position: center; color: #fff;
	transition: box-shadow 250ms ease, transform 250ms ease;
}
.dq-vm-card:hover { box-shadow: var(--dq-shadow-lg); }
/* Nền dự phòng khi chưa có ảnh */
.dq-vm-card--vision:not(.has-bg) { background: linear-gradient(155deg, var(--wp--preset--color--brand-700) 0%, var(--wp--preset--color--brand-900) 100%); }
.dq-vm-card--mission:not(.has-bg) { background: linear-gradient(155deg, var(--wp--preset--color--accent-600) 0%, #6d1c14 100%); }
/* Lớp phủ tối cho chữ dễ đọc + đậm dần khi hover (giống chương trình đào tạo) */
.dq-vm-card__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.32) 48%, rgba(0,0,0,.08) 80%); transition: background .3s ease; }
.dq-vm-card:hover .dq-vm-card__shade { background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.28) 100%); }
.dq-vm-card__body { position: relative; z-index: 1; padding: 2rem 1.75rem; }
.dq-vm-card h3 { font-size: 1.4rem; margin: 0 0 .75rem; font-weight: 700; color: #fff; }
.dq-vm-card p { color: rgb(255 255 255 / .92); font-size: .9375rem; line-height: 1.7; margin: 0; }
.dq-vm-card p strong { color: #fff; }

/* ---------- About page: Company info ---------- */
.dq-company-info { max-width: 720px; margin-inline: auto; }
.dq-company-info__card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--slate-200);
	border-radius: var(--dq-radius);
	padding: 2rem 2.25rem;
	box-shadow: var(--dq-shadow-sm);
}
.dq-company-info__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.dq-company-info__list li {
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--slate-200);
}
.dq-company-info__list li:last-child { border-bottom: none; }
.dq-company-info__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--wp--preset--color--brand-50);
	color: var(--wp--preset--color--brand-700);
	margin-top: 2px;
}
.dq-company-info__label {
	display: block;
	font-size: .78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--wp--preset--color--slate-500);
	margin-bottom: .2rem;
}
.dq-company-info__list strong {
	font-size: .9375rem;
	color: var(--wp--preset--color--slate-900);
	font-weight: 600;
}
.dq-company-info__list a {
	color: var(--wp--preset--color--brand-700);
	text-decoration: none;
	font-weight: 600;
}
.dq-company-info__list a:hover { text-decoration: underline; }


/* ============================================================
 * Trang Kiến thức / Tài liệu — layout archive (block dq/news-grid)
 * ============================================================ */
.dq-archive__featured { padding-top: 2.5rem; }

/* Khối nổi bật: 1 bài lớn + 4 bài nhỏ */
.dq-feat { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.dq-feat__item {
	position: relative; overflow: hidden; border-radius: var(--dq-radius);
	background: var(--wp--preset--color--brand-100) center / cover no-repeat;
	text-decoration: none; display: flex; align-items: flex-end; aspect-ratio: 16 / 10;
}
@media (min-width: 900px) {
	.dq-feat { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 460px; }
	.dq-feat__item { aspect-ratio: auto; }
	.dq-feat__item--lead { grid-column: 1 / 2; grid-row: 1 / span 2; }
}
.dq-feat__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.20) 48%, rgba(0,0,0,0) 72%); }
.dq-feat__meta { position: relative; z-index: 1; width: 100%; padding: 1rem 1.15rem; }
.dq-feat__badge { display: inline-block; margin-bottom: .5rem; background: var(--wp--preset--color--brand-700); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .25rem .55rem; border-radius: 6px; }
.dq-feat__title { position: relative; display: block; width: fit-content; max-width: 100%; color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 800; line-height: 1.28; font-size: clamp(.95rem, 1.3vw, 1.05rem); }
.dq-feat__item--lead .dq-feat__title { font-size: clamp(1.3rem, 2.4vw, 1.95rem); }
/* Gạch chân mảnh, reveal từ trái từng dòng khi hover (dùng inner inline span) */
.dq-feat__title-inner { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px; transition: background-size .4s ease; padding-bottom: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dq-feat__item:hover .dq-feat__title-inner { background-size: 100% 1.5px; }
/* Mũi tên chéo góc trên phải, hiện khi hover */
.dq-feat__arrow { position: absolute; top: 16px; right: 16px; z-index: 2; color: #fff; opacity: 0; transform: translate(-8px, 8px) scale(.85); transition: opacity .4s ease, transform .45s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.dq-feat__arrow .dq-icon { width: 30px; height: 30px; stroke-width: 1.7; }
.dq-feat__item:hover .dq-feat__arrow { opacity: 1; transform: translate(0, 0) scale(1); }

/* Thanh tiêu đề + tìm kiếm */
.dq-archive__bar-wrap { background: var(--wp--preset--color--brand-50); border-bottom: 1px solid var(--wp--preset--color--slate-200); }
@media (min-width: 782px) { .dq-archive__bar-wrap { min-height: 40vh; display: flex; flex-direction: column; justify-content: center; } }
.dq-archive__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 2.25rem; }
.dq-archive__bar-head { flex: 1 1 min(100%, 480px); min-width: 0; }
.dq-archive__heading { margin: .15rem 0 0; font-size: var(--wp--preset--font-size--4xl); font-weight: 700; line-height: 1.25; }
.dq-archive__desc { margin: .5rem 0 0; color: var(--wp--preset--color--slate-500); max-width: 62ch; }
.dq-archive__search { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #D1D5DB; border-radius: 999px; padding: .3rem .3rem .3rem 1.1rem; flex: 0 1 340px; transition: border-color .2s ease, box-shadow .2s ease; }
.dq-archive__search:focus-within { border-color: var(--wp--preset--color--brand-600); box-shadow: 0 0 0 4px rgba(96, 176, 59, .12); }
.dq-archive__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .95rem; padding: .45rem 0; }
.dq-archive__search button { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--wp--preset--color--brand-700); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* Thân trang: danh sách + sidebar */
.dq-archive__body { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 1024px) { .dq-archive__body { grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; } }
.dq-archive__list { display: flex; flex-direction: column; gap: 1.5rem; }

/* Card bài viết dạng hàng ngang — viền + hover giống card giá trị */
.dq-post-row { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--wp--preset--color--slate-50); border: 0; border-radius: 18px; padding: 12px; overflow: hidden; transition: box-shadow 260ms cubic-bezier(.2,.7,.3,1), transform 260ms cubic-bezier(.2,.7,.3,1); }
@media (min-width: 560px) { .dq-post-row { grid-template-columns: 340px 1fr; align-items: stretch; } }
.dq-post-row__media { display: block; overflow: hidden; border-radius: 14px; background: var(--wp--preset--color--brand-50); aspect-ratio: 16 / 9; }
@media (min-width: 560px) { .dq-post-row__media { aspect-ratio: auto; width: 100%; height: 100%; } }
.dq-post-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }
.dq-post-row__ph { width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; color: var(--wp--preset--color--brand-700); }
.dq-post-row__body { padding: .9rem 1rem 1rem 1.2rem; display: flex; flex-direction: column; }
@media (max-width: 559px) { .dq-post-row__body { padding: .9rem .5rem .4rem; } }
/* Hàng trên: pill category + ngày cạnh nhau */
.dq-post-row__top { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .8rem; }
.dq-post-row__cat { flex: 0 0 auto; background: var(--wp--preset--color--brand-700); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .01em; text-transform: none; border: 0; padding: .1rem .6rem; border-radius: 999px; }
.dq-post-row__date { display: inline-flex; align-items: center; color: var(--wp--preset--color--slate-500); font-size: .9rem; }
.dq-post-row__title { margin: .7rem 0 .4rem; font-size: 1.15rem; line-height: 1.3; }
.dq-post-row__title a { color: var(--wp--preset--color--slate-900); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px; transition: background-size .4s ease; padding-bottom: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dq-post-row:hover .dq-post-row__title a { background-size: 100% 1.5px; }
.dq-post-row__more { align-self: flex-start; margin-top: 1rem; }

/* Sidebar */
.dq-archive__aside { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .dq-archive__aside { position: sticky; top: 96px; align-self: start; } }
.dq-swidget { background: #fff; border: 1px solid #D1D5DB; border-radius: var(--dq-radius); padding: 1.25rem; }
.dq-swidget__title { margin: 0 0 1rem; font-size: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--wp--preset--color--brand-100); }
.dq-swidget__search { display: flex; gap: .5rem; }
.dq-swidget__search input { flex: 1; min-width: 0; border: 1px solid #D1D5DB; border-radius: var(--dq-radius-sm); padding: .55rem .7rem; outline: 0; font-size: .9rem; }
.dq-swidget__search input:focus { border-color: var(--wp--preset--color--brand-700); }
.dq-swidget__search button { flex: 0 0 auto; width: 42px; border: 0; border-radius: var(--dq-radius-sm); background: var(--wp--preset--color--brand-700); color: #fff; cursor: pointer; display: grid; place-items: center; }
.dq-swidget__posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.dq-swidget__posts a { display: flex; gap: .75rem; align-items: center; text-decoration: none; }
.dq-swidget__thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--wp--preset--color--brand-50); display: grid; place-items: center; color: var(--wp--preset--color--brand-700); }
.dq-swidget__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dq-swidget__post-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.dq-swidget__post-title { font-size: .9rem; font-weight: 600; color: var(--wp--preset--color--slate-900); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dq-swidget__posts a:hover .dq-swidget__post-title { color: var(--wp--preset--color--brand-700); }
.dq-swidget__post-date { font-size: .75rem; color: var(--wp--preset--color--slate-500); }

/* ---------- Trang kết quả tìm kiếm (block dq/search-results) ---------- */
.dq-searchtabs { padding-block: 2.5rem; }
.dq-searchtabs__nav { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--wp--preset--color--slate-200); margin-bottom: 2rem; }
.dq-searchtabs__tab { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: transparent; cursor: pointer; padding: .8rem 1.15rem; font-size: 1rem; font-weight: 600; color: var(--wp--preset--color--slate-500); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s ease, border-color .2s ease; }
.dq-searchtabs__tab:hover { color: var(--wp--preset--color--brand-700); }
.dq-searchtabs__tab.is-active { color: var(--wp--preset--color--brand-700); border-bottom-color: var(--wp--preset--color--brand-700); }
.dq-searchtabs__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 999px; background: #EAECEF; color: var(--wp--preset--color--slate-500); font-size: .75rem; font-weight: 700; }
.dq-searchtabs__tab.is-active .dq-searchtabs__count { background: var(--wp--preset--color--brand-700); color: #fff; }
.dq-searchtabs__panel .dq-archive__list { max-width: 920px; }

/* ---------- Slider ảnh feedback học viên (fix chiều cao, rộng tự động) ---------- */
.dq-feedback-section { padding-top: 0; }
/* Trang Cảm nhận: slider ngay dưới page-hero -> tăng padding-top, giảm padding-bottom */
.dq-page-hero + .dq-feedback-section { padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(.75rem, 1.5vw, 1.25rem); }
.dq-feedback-wrapper { position: relative; overflow: hidden; }
.dq-feedback {
	display: flex; align-items: flex-start; gap: 16px;
	overflow-x: auto; scroll-snap-type: none;
}
.dq-feedback__item {
	flex: 0 0 auto; margin: 0;
	border-radius: var(--dq-radius); overflow: hidden;
	border: 1px solid #D1D5DB; background: #fff; box-shadow: var(--dq-shadow-sm);
}
.dq-feedback__img { display: block; width: auto; height: clamp(340px, 52vh, 500px); }

/* ---------- Slider chứng chỉ ---------- */
.dq-certs-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.dq-certs-section--inline { padding-block: 0; margin: 2rem 0; }
.dq-certs-wrapper { position: relative; overflow: hidden; }
.dq-certs { display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; }
.dq-certs-section--inline .dq-certs { padding: 0; }
.dq-certs__item { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.dq-certs__media { display: block; border-radius: var(--dq-radius); overflow: hidden; border: 1px solid var(--wp--preset--color--slate-200); background: #fff; box-shadow: var(--dq-shadow-sm); }
.dq-certs__img { display: block; width: auto; max-width: none; height: 60vh; }
.dq-certs__caption { text-align: center; font-weight: 500; font-size: .92rem; color: var(--wp--preset--color--slate-900); max-width: 22rem; margin-inline: auto; line-height: 1.35; }

/* ---------- Thanh scrollbar tuỳ biến (swiper: vuốt / kéo thanh) ---------- */
[data-scrollbar] { scrollbar-width: none; -ms-overflow-style: none; }
[data-scrollbar]::-webkit-scrollbar { display: none; }
.dq-scrollbar {
	position: relative; height: 2px; border-radius: 999px;
	background: var(--wp--preset--color--slate-200);
	margin: 1.75rem 0 0; cursor: pointer; touch-action: none;
}
.dq-scrollbar__thumb {
	position: absolute; top: 0; left: 0; height: 100%; width: 60px; min-width: 36px;
	border-radius: 999px; background: var(--wp--preset--color--brand-700);
	cursor: grab; touch-action: none;
}
.dq-scrollbar__thumb::before { content: ""; position: absolute; inset: -9px 0; }
.dq-scrollbar__thumb:active { cursor: grabbing; }

/* Dot điều hướng carousel (feedback...) */
.dq-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 1.35rem; }
.dq-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--wp--preset--color--slate-200); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.dq-dot:hover { background: var(--wp--preset--color--slate-500); }
.dq-dot.is-active { background: var(--wp--preset--color--brand-700); transform: scale(1.3); }

/* ---------- Carousel tràn viền (full-bleed) tới mép màn hình ---------- */
.dq-progroups-wrapper, .dq-feedback-wrapper, .dq-news-carousel-wrapper, .dq-testimonial-carousel-wrapper, .dq-certs-section:not(.dq-certs-section--inline) .dq-certs-wrapper {
	margin-inline: calc(50% - 50vw);
}
/* Thẻ đầu canh theo mép nội dung (1400px), các thẻ sau tràn về phải */
.dq-progroups, .dq-feedback, .dq-news-carousel, .dq-testimonial-carousel, .dq-certs-section:not(.dq-certs-section--inline) .dq-certs {
	padding-inline-start: max(clamp(1.25rem, 4vw, 2.5rem), calc(50vw - 700px));
	padding-inline-end: 1.25rem;
}
/* Thanh scrollbar canh trong khung nội dung */
.dq-scrollbar { margin-inline: max(clamp(1.25rem, 4vw, 2.5rem), calc(50vw - 700px)); }

/* ---------- Card blog trang chủ (không viền, ảnh bo góc, pill category, hover nút mũi tên) ---------- */
.dq-blog-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--wp--preset--color--slate-50); border: 0; border-radius: 18px; padding: 12px; }
.dq-blog-card__media { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--wp--preset--color--brand-50); }
.dq-blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.dq-blog-card:hover .dq-blog-card__media img { transform: scale(1.04); }
.dq-blog-card__title { margin: 1.1rem 0 0; padding: 0 .4rem; }
.dq-blog-card__title a { color: var(--wp--preset--color--slate-900); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px; transition: background-size .4s ease; padding-bottom: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dq-blog-card:hover .dq-blog-card__title a { background-size: 100% 1.5px; }
.dq-blog-card__meta { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding: 1.2rem .4rem .4rem; padding-right: 3.6rem; }
.dq-blog-card__cat { flex: 0 0 auto; background: var(--wp--preset--color--brand-700); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .01em; padding: .1rem .6rem; border-radius: 999px; }
.dq-blog-card__date { color: var(--wp--preset--color--slate-500); font-size: .9rem; }
.dq-blog-card__go {
	position: absolute; right: 14px; bottom: 14px;
	width: 46px; height: 46px; border-radius: 6px;
	background: var(--dq-lime); color: #14210c; display: grid; place-items: center;
	opacity: 0; transform: translateY(8px) scale(.9);
	transition: opacity .3s ease, transform .3s ease;
}
.dq-blog-card:hover .dq-blog-card__go { opacity: 1; transform: none; }
.dq-blog-card__go .dq-icon { width: 20px; height: 20px; stroke-width: 1.6; }

/* Trang chi tiết khóa học: khối gọi tư vấn */
.dq-course-meta__or { text-align: center; margin: 1.1rem 0 .35rem; color: var(--wp--preset--color--slate-500); font-size: .9rem; }
.dq-course-meta__call-label { text-align: center; margin: 0 0 .8rem; font-weight: 600; color: var(--wp--preset--color--slate-900); }
.dq-course-meta__calls { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.dq-course-meta__calls .dq-btn { padding-left: 3.1em; padding-right: .6rem; justify-content: flex-start; }

/* ---------- Lộ trình học và cấp chứng chỉ (roadmap) ---------- */
.dq-roadmap { display: flex; gap: 1rem; position: relative; margin-top: 2.75rem; }
.dq-roadmap__step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.dq-roadmap__step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 50%; width: 100%; height: 2px; background: var(--wp--preset--color--brand-100); z-index: 0; }
.dq-roadmap__num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: var(--wp--preset--color--brand-700); color: #fff; display: grid; place-items: center; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.5rem; margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--wp--preset--color--brand-50); }
.dq-roadmap__label { margin: 0; font-weight: 600; color: var(--wp--preset--color--slate-900); font-size: .95rem; max-width: 16ch; }
.dq-roadmap__cta { text-align: center; margin-top: 2.75rem; }
@media (max-width: 767px) {
	.dq-roadmap { flex-direction: column; gap: 1.5rem; }
	.dq-roadmap__step { flex-direction: row; gap: 1rem; text-align: left; }
	.dq-roadmap__step:not(:last-child)::after { display: none; }
	.dq-roadmap__num { margin-bottom: 0; }
	.dq-roadmap__label { max-width: none; }
}

/* ---------- CTA đăng ký (ảnh nền + form) ---------- */
.dq-ctaform-section { position: relative; overflow: hidden; isolation: isolate; }
.dq-ctaform-section .dq-ctaform-bg { position: absolute; inset: -30px; max-width: none; margin: 0; z-index: -2; background-image: var(--dq-ctaform-bg); background-size: cover; background-position: center; filter: blur(4px); transform: scale(1.06); }
.dq-ctaform-section .dq-ctaform-overlay { position: absolute; inset: -30px; max-width: none; margin: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,40,10,.82) 0%, rgba(20,50,14,.66) 50%, rgba(20,50,14,.5) 100%); }
.dq-ctaform { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .dq-ctaform { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } .dq-ctaform__intro { padding-right: 3rem; } }
.dq-ctaform__intro .dq-eyebrow { color: var(--dq-lime); }
.dq-ctaform__title { margin: .3rem 0 .8rem; color: #fff; }
.dq-ctaform__desc { color: rgba(255,255,255,.85); margin: 0; font-size: 1.05rem; line-height: 1.7; }
.dq-ctaform__form .dq-inline-register-form { border: 1px solid rgba(255,255,255,.5); border-radius: 10px; padding: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.dq-ctaform__form .dq-btn--block { display: inline-flex; width: auto; }
@media (max-width: 560px) { .dq-ctaform__form .dq-inline-register-form { padding: 1.15rem; } }
