/* Flatsome Tin Học 119 – giao diện. Biến màu khớp plugin (front.css). */
:root {
	--th-blue: #0057d9;
	--th-blue-d: #003f9e;
	--th-red: #e31e24;
	--th-navy: #0d1b2a;
	--th-gray: #f5f7fa;
	--th-line: #e3e8ef;
	--th-text: #1f2937;
	--th-muted: #5b6676;
	--th-radius: 12px;
	--th-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body.th119,
body.th119 .nav > li > a,
body.th119 h1, body.th119 h2, body.th119 h3, body.th119 h4, body.th119 h5, body.th119 h6,
body.th119 button, body.th119 input, body.th119 select, body.th119 textarea, body.th119 .button {
	font-family: var(--th-font);
}
body.th119 { color: var(--th-text); }
body.th119 h1, body.th119 h2, body.th119 h3 { color: var(--th-navy); letter-spacing: -0.01em; }
body.th119 :focus-visible { outline: 3px solid rgba(0, 87, 217, .45); outline-offset: 2px; }

/* ---------- Thanh trên cùng ---------- */
.th-tb { display: flex; align-items: center; gap: 18px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.th-tb--right { justify-content: flex-end; }
.th-tb__slogan { color: #fff; letter-spacing: .06em; font-weight: 700; }
.th-tb__item { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85) !important; }
.th-tb__item:hover { color: #fff !important; }
.th-tb .th-ic, .th-tb svg { width: 14px; height: 14px; }

/* ---------- Cụm hành động header ---------- */
.th-hact { display: flex; align-items: center; gap: 14px; }
.th-hact__search .th-search { width: 260px; margin: 0; }
.th-hact__search .th-search input { height: 40px; font-size: 14px; }
.th-hact__call { display: flex; align-items: center; gap: 10px; color: var(--th-navy) !important; line-height: 1.15; }
.th-hact__call > svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--th-red); color: #fff; flex: none; }
.th-hact__call small { display: block; font-size: 12px; color: var(--th-muted); }
.th-hact__call strong { font-size: 18px; color: var(--th-red); }
.th-hact__zalo svg { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: #0068ff; color: #fff; }
.th-hact__req { white-space: nowrap; }
@media (max-width: 849px) {
	.th-hact__call small { display: none; }
	.th-hact__call strong { font-size: 15px; }
	.th-hact__call > svg { width: 34px; height: 34px; padding: 8px; }
}

/* Thanh menu */
body.th119 .header-bottom .nav > li > a { font-weight: 600; font-size: 15px; }
body.th119 .header-bottom .nav > li.active > a,
body.th119 .header-bottom .nav > li > a:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Khung chung ---------- */
.th-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.th-narrow { max-width: 860px; }
.th-sec--tight { padding-top: 24px !important; padding-bottom: 8px !important; }
.th-sec--navy { background: var(--th-navy); color: #fff; }
.th-sec--navy .th-form { color: var(--th-text); }
.th-section-title--sm { font-size: 20px; }
.th-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.th-head__more { font-weight: 600; }
.th-block { margin: 40px 0; }

/* Dải tiêu đề trang */
.th-pagehead { background: linear-gradient(135deg, #f5f8ff 0%, #eaf1ff 100%); border-bottom: 1px solid var(--th-line); padding: 22px 0 26px; margin-bottom: 32px; }
.th-pagehead .th-breadcrumb { margin-bottom: 10px; }
.th-pagehead__title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; margin: 0 0 10px; }
.th-pagehead__desc { color: var(--th-muted); max-width: 820px; }
.th-pagehead__desc p:last-child { margin-bottom: 0; }
.th-pagehead__cat { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; background: var(--th-blue); color: #fff !important; font-size: 13px; font-weight: 600; }
.th-pagehead__search { max-width: 620px; margin-top: 14px; }
.th-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--th-muted); font-size: 14px; margin: 6px 0 0; }
.th-meta svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--th-blue); }
.th-meta__sep { opacity: .5; }

/* Bố cục 2 cột */
.th-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.th-sticky { position: sticky; top: 90px; display: grid; gap: 18px; }
.th-side-card, .th-side-toc { background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 18px; }
.th-side-card__title { font-weight: 700; color: var(--th-navy); margin: 0 0 10px; }
.th-side-card .th-cta { flex-direction: column; }
.th-side-card .th-btn { width: 100%; justify-content: center; }
.th-side-toc ol, .th-side-list { margin: 0; padding-left: 18px; font-size: 14px; }
.th-side-toc li, .th-side-list li { margin: 6px 0; }
.th-side-toc a.is-active { color: var(--th-red); font-weight: 600; }
@media (max-width: 1023px) {
	.th-layout { grid-template-columns: 1fr; }
	.th-sidebar { display: none; }
}

/* ---------- Bài viết ---------- */
.th-article { min-width: 0; }
.th-article__img { margin: 0 0 24px; }
.th-article__img img { width: 100%; height: auto; border-radius: var(--th-radius); }
.th-summary { background: #eef4ff; border-left: 4px solid var(--th-blue); border-radius: 0 var(--th-radius) var(--th-radius) 0; padding: 16px 20px; margin-bottom: 24px; }
.th-summary__label { font-weight: 700; color: var(--th-blue); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.th-summary__label svg { width: 18px; height: 18px; }
.th-summary p:last-child { margin-bottom: 0; }
.th-toc { border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 14px 20px; margin: 0 0 28px; background: var(--th-gray); }
.th-toc summary { font-weight: 700; cursor: pointer; color: var(--th-navy); }
.th-toc ol { margin: 10px 0 0; padding-left: 20px; }
.th-toc li { margin: 5px 0; }
.th-toc__l3 { margin-left: 18px !important; list-style: circle; font-size: 95%; }
.th-content { font-size: 17px; line-height: 1.75; }
.th-content h2 { font-size: 26px; margin: 36px 0 14px; padding-top: 4px; scroll-margin-top: 90px; }
.th-content h3 { font-size: 20px; margin: 26px 0 10px; scroll-margin-top: 90px; }
.th-content img { border-radius: 10px; height: auto; }
.th-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.th-content th, .th-content td { border: 1px solid var(--th-line); padding: 8px 12px; }
.th-content th { background: var(--th-gray); }
.th-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 999px; background: var(--th-gray); font-size: 13px; }

/* FAQ */
.th-faq { margin: 40px 0; scroll-margin-top: 90px; }
.th-faq__item { border: 1px solid var(--th-line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.th-faq__item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--th-navy); list-style: none; position: relative; padding-right: 44px; }
.th-faq__item summary::-webkit-details-marker { display: none; }
.th-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--th-blue); }
.th-faq__item[open] summary::after { content: "–"; }
.th-faq__a { padding: 0 18px 14px; color: var(--th-text); }

/* Dịch vụ liên quan */
.th-related-services { margin: 40px 0; }
.th-svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.th-svc { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--th-line); border-radius: var(--th-radius); background: #fff; color: var(--th-text) !important; transition: border-color .2s, box-shadow .2s; }
.th-svc:hover { border-color: var(--th-blue); box-shadow: 0 6px 20px rgba(0, 87, 217, .08); }
.th-svc__icon svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: #eaf1ff; color: var(--th-blue); }
.th-svc__body strong { display: block; color: var(--th-navy); }
.th-svc__body small { display: block; color: var(--th-muted); font-size: 13px; }
.th-svc__body em { display: block; font-style: normal; color: var(--th-red); font-weight: 600; font-size: 14px; margin-top: 4px; }

/* Hộp hỗ trợ */
.th-helpbox { margin: 40px 0; padding: 26px; border-radius: var(--th-radius); background: linear-gradient(135deg, var(--th-navy), #13325c); color: #fff; }
.th-helpbox__title { color: #fff !important; font-size: 22px; margin: 0 0 8px; }
.th-helpbox p { color: rgba(255, 255, 255, .85); }

/* Tác giả */
.th-author { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--th-line); border-radius: var(--th-radius); margin: 32px 0; background: #fff; }
.th-author--head { margin: 14px 0 0; background: transparent; border: 0; padding: 0; }
.th-author__avatar img { border-radius: 50%; }
.th-author__label { margin: 0; font-size: 13px; color: var(--th-muted); text-transform: uppercase; letter-spacing: .05em; }
.th-author__name { margin: 2px 0 6px; font-weight: 700; }
.th-author__name span { font-weight: 400; color: var(--th-muted); }
.th-author__bio { margin: 0 0 6px; color: var(--th-muted); font-size: 15px; }
.th-author__review { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.th-author__review svg { width: 16px; height: 16px; color: #16a34a; }

/* ---------- Chuyên mục ---------- */
.th-cat-intro { background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 20px 24px; margin-bottom: 32px; }
.th-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 40px; }
.th-subcat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--th-line); border-radius: var(--th-radius); background: #fff; color: var(--th-text) !important; }
.th-subcat:hover { border-color: var(--th-blue); }
.th-subcat__icon svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #eaf1ff; color: var(--th-blue); }
.th-subcat strong { display: block; color: var(--th-navy); }
.th-subcat small { color: var(--th-muted); }
.th-empty-state { text-align: center; padding: 20px 0 30px; }
.th-pagination { margin: 30px 0; }
.th-pagination ul { display: flex; gap: 6px; justify-content: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.th-pagination a, .th-pagination span { display: inline-block; min-width: 40px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--th-line); text-align: center; }
.th-pagination .current { background: var(--th-blue); border-color: var(--th-blue); color: #fff; }

/* ---------- Trang chủ ---------- */
.th-hero--split { background: radial-gradient(1200px 500px at 85% 20%, #1b4fa8 0%, transparent 60%), linear-gradient(135deg, var(--th-navy) 0%, #0b2f66 100%); color: #fff; }
.th-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.th-hero--split h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; }
.th-hero--split h1 span { display: block; font-size: .55em; font-weight: 500; color: #bcd3ff; margin-top: 8px; }
.th-hero__lead { color: rgba(255, 255, 255, .86); font-size: 17px; max-width: 620px; }
.th-hero__art img { width: 100%; height: auto; }
.th-hero--split .th-search { max-width: 560px; }
@media (max-width: 849px) {
	.th-hero__grid { grid-template-columns: 1fr; }
	.th-hero__art { display: none; }
}
.th-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.th-chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--th-line); background: #fff; color: var(--th-navy) !important; font-weight: 500; font-size: 14px; }
.th-chip:hover { border-color: var(--th-blue); color: var(--th-blue) !important; }
.th-checklist { list-style: none; margin: 0; padding: 0; }
.th-checklist li { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.th-checklist svg { width: 20px; height: 20px; color: #16a34a; flex: none; margin-top: 3px; }

/* Dịch vụ */
.th-svc-summary { border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 18px 20px; margin-bottom: 24px; background: #fff; }
.th-svc-summary dl, .th-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 14px; }
.th-svc-summary dt, .th-facts dt { font-size: 13px; color: var(--th-muted); display: flex; align-items: center; gap: 6px; }
.th-svc-summary dt svg { width: 16px; height: 16px; color: var(--th-blue); }
.th-svc-summary dd, .th-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--th-navy); }
.th-facts { padding: 16px 20px; border: 1px solid var(--th-line); border-radius: var(--th-radius); background: var(--th-gray); }

/* ---------- Footer ---------- */
.th-foot { background: var(--th-navy); color: rgba(255, 255, 255, .78); padding: 48px 0 0; font-size: 15px; }
.th-foot__grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr 1fr; gap: 28px; }
.th-foot h3 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.th-foot ul { list-style: none; margin: 0; padding: 0; }
.th-foot li { margin: 0 0 8px; }
.th-foot a { color: rgba(255, 255, 255, .78); }
.th-foot a:hover { color: #fff; }
.th-foot__slogan { color: #fff; font-weight: 700; letter-spacing: .06em; margin: 12px 0 6px; }
.th-foot .th-contact { color: inherit; }
.th-foot .th-contact a, .th-foot .th-contact strong { color: #fff; }
.th-foot__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0; margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.th-foot__social a { margin-left: 16px; }
@media (max-width: 1023px) { .th-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .th-foot__grid { grid-template-columns: 1fr; } }
body.th119 .absolute-footer { display: none; }

/* ---------- Nút nổi & thanh dưới ---------- */
.th-float { position: fixed; right: 18px; bottom: 24px; z-index: 990; display: grid; gap: 12px; }
.th-float__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; box-shadow: 0 8px 22px rgba(13, 27, 42, .25); }
.th-float__btn svg { width: 26px; height: 26px; }
.th-float__btn--call { background: var(--th-red); animation: th-pulse 2.4s infinite; }
.th-float__btn--zalo { background: #0068ff; }
@keyframes th-pulse { 0% { box-shadow: 0 0 0 0 rgba(227, 30, 36, .45); } 70% { box-shadow: 0 0 0 14px rgba(227, 30, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); } }
.th-dock { display: none; }
@media (max-width: 849px) {
	.th-float { display: none; }
	.th-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--th-line); box-shadow: 0 -4px 16px rgba(13, 27, 42, .08); padding-bottom: env(safe-area-inset-bottom); }
	.th-dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: 12px; font-weight: 600; color: var(--th-navy) !important; }
	.th-dock svg { width: 22px; height: 22px; }
	.th-dock__call { color: var(--th-red) !important; }
	.th-dock__main { background: var(--th-blue); color: #fff !important; }
	body.th119 { padding-bottom: 62px; }
	body.th119 #top-link { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
	.th-float__btn--call { animation: none; }
	html { scroll-behavior: auto !important; }
}
@media print {
	.th-float, .th-dock, .th-sidebar, .th-helpbox, #header, #footer { display: none !important; }
	.th-layout { display: block; }
}
