/* 20/11 (đợt 2 – gói 1): trang chủ về chuẩn Giấy kem – chỉ ghi đè, nạp SAU CÙNG. Không đổi bố cục, bìa video, tranh, thẻ kỹ năng. */
:root { --tg-muc: #121212; --tg-giay: #FBF6EC; --tg-bong: rgba(24, 38, 65, .28); }

/* chữ thân: Plus Jakarta Sans (hết Quicksand) – không đụng h1 bìa */
:root { --font-body: "Plus Jakarta Sans", system-ui, sans-serif; }
html body { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; }
html body :is(.hero-eyebrow, .hero-desc) { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; }

/* bo góc 8px cho thẻ còn lệch */
html body main :is(.tri, .el-banner, .duo-card, .skill-card) { border-radius: 8px !important; }
html body main .duo .duo-stats, html body main .duo .duo-note.duo-note, html body main .duo .duo-form { border-radius: 8px !important; }
html body main .duo .duo-yellow .duo-form { border-radius: 8px !important; }
html body main .hero.hero.hero .hero-strip { border-radius: 8px !important; }
html body main .hero.hero.hero .sun-bubble { border-radius: 8px !important; }
html body .hero .hero-eyebrow { border-radius: 4px !important; }
html body main .el-banner .el-main, html body main .el-banner .el-art { border-radius: 8px !important; }
html body main .el-banner .el-main { padding-bottom: 28px; }
html body main .tri.tri-navy .lkg-mini { border-radius: 8px; }
html body .hero .hero-lich, html body .lkg-the { border-radius: 8px; }

/* thanh trên khi cuộn: giấy đặc, gạch mực 2px, không làm mờ */
html body .header.header.header.scrolled { background: var(--tg-giay) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom: 2px solid var(--tg-muc) !important; box-shadow: none !important; }
html body .header.header.header.scrolled .pill, html body .header.header.header.scrolled .pill-user { border-radius: 8px !important; border: 2px solid var(--tg-muc) !important; background: var(--tg-giay) !important; color: #17222D !important; box-shadow: 2px 2px 0 var(--tg-bong) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* nhãn góc thẻ kỹ năng */
html body main .skills .card-row > .skill-card :is(.tag, .part, .skill-tag, .sk-tag) { border: 2px solid var(--tg-muc); border-radius: 4px; }

/* nút nổi "Đăng ký": ô vuông bo 8px */
html body .fab.fab { border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; box-shadow: 3px 3px 0 var(--tg-bong) !important; }

@media (max-width: 760px) {
  html body .fab.fab { width: 48px !important; min-width: 0 !important; height: 48px !important; padding: 0 !important; right: 12px !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important; justify-content: center; }
  html body .fab.fab span { display: none !important; }
  html body .fab.fab svg { width: 22px; height: 22px; }
  html body main .skills .card-row > .skill-card:last-child { margin-bottom: 64px; }
  html body main :is(.tri, .el-banner, .duo-card):last-child { scroll-margin-bottom: 72px; }
}

/* dải lợi ích: bốn ý đứng yên, đủ chữ (hết bản sao chạy ngang bị cắt hai mép + lặp trên điện thoại) */
html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_tg) { display: flex !important; overflow: visible !important; padding: 10px 6px !important; -webkit-mask-image: none !important; mask-image: none !important; }
html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_tg)::before, html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_tg)::after { display: none !important; }
html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_tg) li { flex: 1 1 0 !important; min-width: 0; padding: 6px 14px !important; white-space: normal !important; animation: none !important; }
@media (max-width: 760px) {
  html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_tg) { display: grid !important; }
  html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_tg) li { flex: none !important; padding: 6px 2px !important; }
}

/* ===== 20/11 đợt 4: các khối DƯỚI bìa → giấy đặc viền mực (không kính, không bóng mềm, không viên thuốc) ===== */
:root { --tg-chu: #17222D; --tg-phu: #4A4F5A; --tg-vang: #EFC278; --tg-chang: #4A5F9E; --tg-b4: 4px 4px 0 rgba(24, 38, 65, .28); --tg-b3: 3px 3px 0 rgba(24, 38, 65, .28); --tg-b2: 2px 2px 0 rgba(24, 38, 65, .28); }

/* 1. Ô chữ "kính" trong 5 thẻ kỹ năng */
html body main:not(#_tg):not(#_t2):not(#_t3) .skills .skill-card h3,
html body main:not(#_tg):not(#_t2):not(#_t3) .skills .skill-card p {
  background: var(--tg-giay) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: var(--tg-b3) !important; text-shadow: none !important;
}
html body main:not(#_tg):not(#_t2):not(#_t3) .skills .skill-card p { color: #2A333D !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .skills .skill-card .sk-icon { background: var(--tg-giay) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; box-shadow: var(--tg-b2) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .skills .skill-card .chip { background: var(--tg-vang) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 4px !important; box-shadow: var(--tg-b2) !important; font: 700 12px/1.2 "Space Mono", monospace !important; letter-spacing: .08em; text-transform: uppercase; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .skills .skill-card { border: 2px solid var(--tg-muc) !important; box-shadow: var(--tg-b4) !important; }

/* viền thẻ lớn dưới bìa: viền mực + bóng lệch cứng */
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.el-banner, .tri, .duo-card) { border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; box-shadow: var(--tg-b4) !important; }

/* E-learning */
html body main:not(#_tg):not(#_t2):not(#_t3) .el-banner .el-main,
html body main:not(#_tg):not(#_t2):not(#_t3) .el-banner .el-art {
  background: var(--tg-giay) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: var(--tg-b4) !important;
}
html body main:not(#_tg):not(#_t2):not(#_t3) .el-banner .el-main :is(.el-title, .el-lead) { color: var(--tg-chu) !important; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .el-banner .el-main .el-title { color: var(--tg-chang) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .el-banner .el-main .el-lead { color: #2A333D !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .el-banner .tri-h b { background: var(--tg-chang) !important; color: #fff !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .el-banner .el-tab :is(.el-bia, .el-trong) {
  background: var(--tg-giay) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: var(--tg-b3) !important;
}
html body main:not(#_tg):not(#_t2):not(#_t3) .el-banner .el-tab :is(.el-bia, .el-trong) :is(b, span, small) { color: var(--tg-chu) !important; text-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .el-banner .el-tab small { color: #8A2F26 !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .el-banner .el-tab .ds-top small { color: var(--tg-phu) !important; }

/* 3. nút trong khối */
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.duo-btn, .el-btn, .tri-cta) {
  background: var(--tg-giay) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important;
  box-shadow: var(--tg-b3) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; text-shadow: none !important;
}
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.duo-btn, .el-btn) { background: var(--tg-vang) !important; min-height: 44px !important; overflow: hidden; }
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.duo-btn, .el-btn) > span { background: var(--tg-vang) !important; border-right: 2px solid var(--tg-muc) !important; color: var(--tg-chu) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri-cta { padding: 8px 14px !important; align-self: flex-start; font: 700 12px/1.3 "Space Mono", monospace !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.duo-btn, .el-btn, .tri-cta):hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(24, 38, 65, .28) !important; }

/* 4. nhãn */
html body main:not(#_tg):not(#_t2):not(#_t3) .tri-h { color: var(--tg-chu) !important; text-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri-h b { border: 2px solid var(--tg-muc) !important; border-radius: 4px !important; box-shadow: var(--tg-b2) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.tri-h, .tn-top small, .ds-top small) { font-family: "Space Mono", monospace !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tn-new { border-radius: 4px !important; border: 2px solid var(--tg-muc) !important; box-shadow: var(--tg-b2) !important; background: var(--tg-vang) !important; color: var(--tg-chu) !important; }

/* Adaptive / Lịch khai giảng */
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .ad-chu,
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .lkg-mini {
  background: var(--tg-giay) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: var(--tg-b3) !important; text-shadow: none !important;
}
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .ad-chu :is(strong, span) { color: var(--tg-chu) !important; text-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .ad-chu > span { color: #2A333D !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .ad-chu { padding: 14px 16px !important; }

/* Cộng đồng / Từ tạp chí / TOEX News */
html body main:not(#_tg):not(#_t2):not(#_t3) .tri :is(.tri-comm > strong, .tc-list, .d2-copy, .tri-news, .tn-items, .tn-top) { text-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tri-comm > strong,
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tc-list,
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .d2-copy,
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tri-news {
  background: var(--tg-giay) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; box-shadow: var(--tg-b3) !important;
}
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tri-comm > strong { padding: 10px 14px !important; display: block; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tc-list { padding: 4px 14px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .d2-copy { padding: 12px 14px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tri-news { padding: 12px 14px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri :is(.tc-list span, .tn-item, .d2-copy > span, .d2-copy strong, .tn-top b) { color: var(--tg-chu) !important; text-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tn-top small { color: var(--tg-phu) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tn-item small { color: #8A2F26 !important; }

/* Hành trình + Tư vấn */
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-stats, html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-note.duo-note, html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-stat { background: var(--tg-giay) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; box-shadow: var(--tg-b3) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-stat :is(b, span) { color: var(--tg-chu) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-stat small { color: var(--tg-phu) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-note img { border-radius: 6px !important; }

/* 7. form tư vấn */
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-form .duo-field { background: #fff !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-form .duo-field:focus-within { box-shadow: var(--tg-b3) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-form .duo-field input { color: var(--tg-chu) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-form { background: var(--tg-giay) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; padding: 14px !important; box-shadow: var(--tg-b3) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-form :is(.duo-nhan, .form-note, .form-msg) { color: var(--tg-chu) !important; text-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-send { background: var(--tg-vang) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; box-shadow: var(--tg-b3) !important; overflow: hidden; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-send > span { background: var(--tg-vang) !important; border-right: 2px solid var(--tg-muc) !important; color: var(--tg-chu) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-send:hover { filter: none; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(24, 38, 65, .28) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo :is(.duo-title, .duo-kicker, .duo-lead) { text-shadow: none !important; }

/* 5. thanh trên khi cuộn: nút giấy bo 8px */
html body:not(#_tg):not(#_t2):not(#_t3) .header.header.header.scrolled :is(.pill, .pill-user, button, a.pill) { border-radius: 8px !important; box-shadow: var(--tg-b2) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* bóng mềm còn sót (ảnh sách nhỏ): bóng cứng */
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.el-sach, .el-sach img, .el-tab img) { box-shadow: var(--tg-b2) !important; }

/* --- vòng 2: dọn các lớp kính/bóng mềm còn sót --- */
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .ad-chu > span, html body main:not(#_tg):not(#_t2):not(#_t3) .tri .ad-chu > strong { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .ad-chu { display: flex !important; flex-direction: column; gap: 6px; }
html body main:not(#_tg):not(#_t2):not(#_t3) .el-sach img { background: transparent !important; box-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.k3-mat, .k3-bia, .lkg-shot) { box-shadow: var(--tg-b2) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .lkg-shot { border: 2px solid var(--tg-muc) !important; border-radius: 4px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .k3-cap { background: var(--tg-chang) !important; color: #fff !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; text-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .k3-cap * { color: #fff !important; text-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri :is(.tri-comm, .tn-tui, .tt-note, .tn-top, .tri-news, .d2-copy, .lkg-mini) { background: var(--tg-giay) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; box-shadow: var(--tg-b3) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tn-top { border-bottom: 2px solid var(--tg-muc) !important; padding: 8px 12px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tri-comm { padding: 10px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tri-comm > strong, html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tri-comm .tc-list { box-shadow: none !important; border: 0 !important; background: transparent !important; padding-left: 4px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tri-news > .tn-top { box-shadow: none !important; border: 0 !important; border-bottom: 2px solid var(--tg-muc) !important; background: transparent !important; border-radius: 0 !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tri-news { border: 2px solid var(--tg-muc) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri :is(.tri-comm, .tn-tui, .tt-note, .tn-top, .tri-news, .d2-copy, .lkg-mini, .ad-chu) *:not(img):not(svg):not(svg *) { text-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tri-comm .tc-list span { border-top-color: #D9CFB8 !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo :is(.duo-stats, .duo-note, .duo-stat, .duo-form) * { text-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-stats { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-form { background: var(--tg-giay) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo .duo-note img { box-shadow: none !important; background: var(--tg-chang) !important; border-radius: 6px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.duo-btn, .el-btn, .tri-cta, .tri-h b, .tn-new):not(#_x) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* --- vòng 3: chữ trên ô giấy luôn mực; tiêu đề/mô tả khối Hành trình + Tư vấn thành ô giấy --- */
html body main:not(#_tg):not(#_t2):not(#_t3) .tri :is(.tri-news, .tn-items, .tn-item, .tn-top, .tn-top b, .tri-comm, .d2-copy) :is(span, b, strong, em, p, div) { color: var(--tg-chu) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tn-item small, html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tn-top small { color: #8A2F26 !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tn-top small { color: var(--tg-phu) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tn-items { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo-card :is(.duo-kicker, .duo-title, .duo-lead) {
  background: var(--tg-giay) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 8px !important; box-shadow: var(--tg-b3) !important;
  width: fit-content; max-width: 100%; padding: 8px 14px !important; text-shadow: none !important; -webkit-text-stroke: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html body main:not(#_tg):not(#_t2):not(#_t3) .duo-card .duo-lead { padding: 10px 14px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo-card .duo-lead :is(a, b) { color: var(--tg-chu) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo-card .duo-title em, html body main:not(#_tg):not(#_t2):not(#_t3) .duo-card .duo-kicker i { color: #C2551F !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo-card .duo-title span { color: #C2551F !important; }

/* --- vòng 4: nhãn đầu khối = nhãn Space Mono giấy + ô số vàng --- */
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.tri, .duo-card, .el-banner) .tri-h { width: fit-content; max-width: 100%; gap: 0 !important; background: var(--tg-giay) !important; color: var(--tg-chu) !important; border: 2px solid var(--tg-muc) !important; border-radius: 4px !important; box-shadow: var(--tg-b2) !important; padding: 0 12px 0 0 !important; font: 700 12px/1.2 "Space Mono", monospace !important; letter-spacing: .08em !important; text-shadow: none !important; overflow: hidden; }
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.tri, .duo-card, .el-banner) .tri-h b { background: var(--tg-vang) !important; color: var(--tg-chu) !important; border: 0 !important; border-right: 2px solid var(--tg-muc) !important; border-radius: 0 !important; box-shadow: none !important; margin-right: 12px; height: 32px !important; min-width: 40px !important; font: 700 12px/1 "Space Mono", monospace !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .tri .tn-item small { opacity: 1 !important; color: #8A2F26 !important; }

/* ===== đợt 5 (20/11): bỏ tranh nền thẻ → giấy kem + khung ảnh nhỏ viền mực ===== */
:root { --tg5-hang: #FBF6EC; --tg5-cham: linear-gradient(160deg, #4A5F9E, #3F5590); --tg5-luoi: radial-gradient(circle, rgba(255,255,255,.14) 1.4px, transparent 2px) 0 0 / 18px 18px; --tg5-bong: 4px 4px 0 rgba(24,38,65,.55); }
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.skill-card, a.tri-adapt, .lkg-box, a.tri-yellow, a.tri-docbao, a.tri-orange, .duo-green, .duo-yellow, .el-banner) {
  background-image: none !important; background-color: var(--tg5-hang) !important; color: var(--tg-chu, #17222D) !important;
  border: 2px solid #121212 !important; border-radius: 8px !important; box-shadow: var(--tg5-bong) !important;
}
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.el-banner, .duo-yellow) {
  background: var(--tg5-luoi), #4A5F9E !important; color: #fff !important;
}
/* khung ảnh nhỏ: ::before của thẻ, đứng đầu thẻ */
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.skill-card, a.tri-adapt, .lkg-box, a.tri-yellow, a.tri-docbao, a.tri-orange, .duo-green, .duo-yellow)::before {
  content: "" !important; display: block !important; position: relative !important; inset: auto !important; order: -1; flex: none !important;
  width: 100% !important; height: 140px; margin: 0 0 16px !important; box-sizing: border-box;
  background-color: #DDE6EE; background-repeat: no-repeat !important; background-size: cover !important;
  border: 2px solid #121212 !important; border-radius: 8px !important; box-shadow: 3px 3px 0 rgba(24,38,65,.4) !important;
  opacity: 1 !important; pointer-events: none; z-index: 0;
}
html body main:not(#_tg):not(#_t2):not(#_t3) :is(.duo-green, .duo-yellow)::after { display: none !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) :is(a.tri-adapt, .lkg-box, a.tri-yellow, a.tri-docbao, a.tri-orange, .duo-green, .duo-yellow) { flex-direction: column; }
html body main:not(#_tg):not(#_t2):not(#_t3) .skill-card { flex-direction: column; padding: 14px 14px 18px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .skill-card::before { height: 150px; background-image: var(--sk-img) !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .skill-card.sk-sage { --sk-img: url(assets/toex-study-club/v6/sk-nghe.webp?v=4); }
html body main:not(#_tg):not(#_t2):not(#_t3) .skill-card.sk-cream { --sk-img: url(assets/toex-study-club/v6/sk-doc.webp?v=4); }
html body main:not(#_tg):not(#_t2):not(#_t3) .skill-card.sk-peach { --sk-img: url(assets/toex-study-club/v6/sk-noi.webp?v=4); }
html body main:not(#_tg):not(#_t2):not(#_t3) .skill-card:nth-child(4) { --sk-img: url(assets/toex-study-club/v6/sk-viet.webp?v=1); }
html body main:not(#_tg):not(#_t2):not(#_t3) .skill-card.sk-vg { --sk-img: url(assets/toex-study-club/v6/sk-tuvung.webp?v=4); }
html body main:not(#_tg):not(#_t2):not(#_t3) .skill-card::before { background-position: 50% 88% !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) a.tri-adapt::before { background-image: url(assets/toex-study-club/v6/adaptive.webp?v=1) !important; background-position: 50% 40% !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .lkg-box::before { background-image: url(assets/toex-study-club/v2/nen-tau-dien.webp?v=1) !important; background-position: 50% 30% !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) a.tri-yellow::before { background-image: url(assets/toex-study-club/v2/nen-nha-bay.webp?v=mb7) !important; background-position: 50% 40% !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) a.tri-docbao::before { background-image: url(assets/toex-study-club/v2/nen-cau-meo.webp?v=1) !important; background-position: 50% 62% !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) a.tri-orange::before { background-image: url(assets/toex-study-club/v2/nen-pho-nho.webp?v=mb7) !important; background-position: 50% 50% !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo-green::before { background-image: url(assets/toex-study-club/v2/nen-quay-nuoc.webp?v=mb7) !important; background-position: 50% 62% !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .duo-yellow::before { background-image: url(assets/toex-study-club/v2/nen-nha-vang.webp?v=mb7) !important; background-position: 50% 45% !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .lkg-box { color: var(--tg-chu, #17222D) !important; }

html body main:not(#_tg):not(#_t2):not(#_t3) :is(a.tri-adapt, .lkg-box, a.tri-yellow, a.tri-orange, .duo-green, .duo-yellow)::before { flex: 1 1 140px !important; min-height: 140px; max-height: 260px; height: auto !important; }
html body main:not(#_tg):not(#_t2):not(#_t3) .skill-card :is(h3, p, .sk-icon) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) :is(.el-banner, .duo-yellow) { background-color: #4A5F9E !important; background-image: var(--tg5-luoi), var(--tg5-cham) !important; background-size: 18px 18px, auto !important; color: #fff !important; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) :is(a.tri-yellow, a.tri-orange)::before { max-height: 420px; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) .skill-card :is(h3, p, .sk-icon):not(#_x) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important; }
/* đợt 5: tiêu đề bài báo xuống dòng, nhãn tin đọc rõ */
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) .tri-docbao .k3-ten:not(#_x) { white-space: normal !important; text-overflow: clip !important; overflow: visible !important; height: auto !important; max-height: none !important; -webkit-line-clamp: unset !important; line-height: 1.25 !important; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) .tri-docbao .k3-cap:not(#_x) { height: auto !important; min-height: 0 !important; padding-bottom: 8px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) .tri-orange .tn-dong > span:not(#_x) { display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; max-height: none !important; height: auto !important; overflow: visible !important; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) .tri-orange .tn-dong > small:not(#_x) { color: #8A2F26 !important; background: #FFF1CF !important; border: 1.5px solid #121212 !important; border-radius: 4px !important; padding: 1px 6px !important; font-size: 10px !important; opacity: 1 !important; width: fit-content; }
/* thẻ kỹ năng gọn */
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) .skill-card :is(h3):not(#_x) { min-height: 0 !important; margin: 4px 0 6px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) .skill-card :is(.sk-icon):not(#_x) { margin-top: 2px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) .skill-card:not(#_x) { gap: 4px !important; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) .tri-docbao :is(.k3-ten, .k3-ten > *, .k3-nguon, .k3-nguon > *):not(#_x) { white-space: normal !important; text-overflow: clip !important; overflow: visible !important; height: auto !important; }
/* đợt 5: nút nổi điện thoại nhỏ sát góc, không che chữ thẻ */
@media (max-width: 760px) {
  html body .fab.fab:not(#_x) { width: 38px !important; height: 38px !important; right: 4px !important; bottom: calc(4px + env(safe-area-inset-bottom)) !important; box-shadow: 2px 2px 0 var(--tg-bong) !important; }
  html body .fab.fab:not(#_x) svg { width: 18px; height: 18px; }
}
/* đợt 5: hộp phóng to Lịch khai giảng = giấy đặc viền mực */
html body .lkg-pop:not(#_x) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(18, 24, 40, .62) !important; }
html body .lkg-pop .lkg-card:not(#_x) { background: #FBF6EC !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 2px solid #121212 !important; border-radius: 8px !important; box-shadow: 5px 5px 0 rgba(24,38,65,.55) !important; }
html body .lkg-pop .lkg-x:not(#_x) { background: #FBF6EC !important; border: 2px solid #121212 !important; border-radius: 8px !important; box-shadow: 2px 2px 0 rgba(24,38,65,.4) !important; color: #121212 !important; backdrop-filter: none !important; }
html body .lkg-pop .lkg-cta:not(#_x) { background: #EFC278 !important; color: #121212 !important; border: 2px solid #121212 !important; border-radius: 8px !important; box-shadow: 3px 3px 0 rgba(24,38,65,.45) !important; text-shadow: none !important; backdrop-filter: none !important; }
html body .lkg-pop .lkg-cta:not(#_x) :is(i, b, span, svg) { color: #121212 !important; border-radius: 0 !important; }
html body .lkg-pop .lkg-cta:not(#_x) > :first-child { border-right: 2px solid #121212 !important; background: transparent !important; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4) a.tri-docbao:not(#_x) { overflow: clip; }

/* 20/11 đợt 6: nút nổi "Đăng ký" viền mực + bóng lệch cứng; nút thanh trên sau khi cuộn (VI, chuông, tài khoản) bóng lệch cứng, viền mực */
html body:not(#_x1):not(#_x2):not(#_x3):not(#_x4) .fab.fab.fab { border: 2px solid #121212 !important; border-color: #121212 !important; border-radius: 8px !important; background: #EFC278 !important; color: #17222D !important; box-shadow: 3px 3px 0 rgba(24, 38, 65, .28) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body:not(#_x1):not(#_x2) .header.header.header.scrolled :is(.pill, .pill-user, .pill-icon, .pill-round, .ubar) { border: 2px solid #121212 !important; border-color: #121212 !important; border-radius: 8px !important; box-shadow: 2px 2px 0 rgba(24, 38, 65, .28) !important; }
html body:not(#_x1):not(#_x2) .header.header.header.scrolled .ubar { background: #FBF6EC !important; }
html body:not(#_x1):not(#_x2) .header.header.header.scrolled .ubar :is(.pill, .pill-user, .pill-icon, .pill-round) { box-shadow: none !important; }

/* 20/11 thanh trên: BA Ô giấy kem rời nhau (không khung bao ngoài, không vạch ngăn); áp ở bìa lẫn khi cuộn, khách lẫn đã đăng nhập */
html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header .ubar { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 8px !important; border-radius: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header .ubar .ubar-sep { display: none !important; }
html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header :is(.pill, .pill-user, .pill-icon, .pill-round, .ubar-link) { background: #FBF6EC !important; background-image: none !important; border: 2px solid #121212 !important; border-color: #121212 !important; border-radius: 8px !important; box-shadow: 2px 2px 0 rgba(24, 38, 65, .28) !important; height: 40px !important; color: #121212 !important; text-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; }
html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header :is(.pill, .pill-user, .pill-icon, .pill-round, .ubar-link) :is(*, svg) { color: #121212 !important; text-shadow: none !important; }
html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header .ubar .ubar-link:hover, html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header :is(.pill, .pill-user, .pill-icon, .pill-round):hover { background: #FFFDF8 !important; box-shadow: 3px 3px 0 rgba(24, 38, 65, .28) !important; transform: translate(-1px, -1px); }
html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header .ubar :is(.pill-user, .ubar-link) { padding-top: 0; padding-bottom: 0; }
html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header .ubar .pill-user { padding-left: 4px; padding-right: 12px; }
html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header .ubar .ubar-link { padding: 0 12px; }
@media (max-width: 640px) {
  html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header .ubar { gap: 6px !important; }
  html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header .ubar .ubar-link { width: 40px; padding: 0; justify-content: center; }
  html body:not(#_x1):not(#_x2):not(#_x3) .header.header.header .ubar .pill-user { padding: 0 6px 0 4px; }
}

/* ===== 20/11 (chủ trung tâm): 3 thẻ cao ngắn lại, bỏ tranh/kệ sách; nền chàm chấm bi; dải 4 ý chạy phải → trái ===== */
/* A. bỏ khung tranh + kệ sách/ảnh phụ, thẻ thấp, cao bằng nhau */
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-grid { align-items: stretch !important; gap: 24px !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) :is(a.tri-yellow, a.tri-docbao, a.tri-orange) { min-height: 0 !important; height: auto !important; padding: 18px 20px 18px !important; display: flex !important; flex-direction: column !important; gap: 10px; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) :is(a.tri-yellow, a.tri-docbao, a.tri-orange)::before { display: none !important; content: none !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) :is(.cd-duong, .tn-pic, .tn-new) { display: none !important; } /* 21/11: trả lại cuốn sách lật (kệ sách .vb-khung) ở thẻ Đọc báo theo ý chủ trung tâm */
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) :is(a.tri-yellow, a.tri-docbao, a.tri-orange) :is(.tri-comm, .d2-row, .tri-news, .d2-copy) { margin: 0 !important; flex: 0 1 auto !important; min-height: 0 !important; height: auto !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) :is(a.tri-yellow, a.tri-docbao, a.tri-orange) .tri-h { margin-bottom: 0 !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) :is(a.tri-yellow, a.tri-docbao, a.tri-orange) .tri-cta { margin-top: auto !important; align-self: flex-start; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-docbao .d2-copy strong { font-size: clamp(22px, 1.9vw, 30px) !important; line-height: 1.1 !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-docbao .d2-copy > span { display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.45; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-comm strong { font-size: clamp(18px, 1.5vw, 22px) !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-news .tn-top b { font-size: clamp(22px, 1.9vw, 30px) !important; line-height: 1 !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-news .tn-top b br { display: none; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-news .tn-items { padding: 8px 12px !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-news .tn-item { display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px !important; line-height: 1.35 !important; padding: 5px 0 !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-news .tn-item small { display: block; }
/* B. nền chàm E-LEARNING: lưới chấm bi nhạt chồng trên gradient chàm */
html body main:not(#_b1):not(#_b2):not(#_b3):not(#_b4):not(#_b5) :is(.el-banner, .duo-yellow) { background-color: #4A5F9E !important; background-image: radial-gradient(circle, rgba(255,255,255,.1) 1.2px, transparent 1.8px), linear-gradient(160deg, #4A5F9E, #3F5590) !important; background-size: 22px 22px, auto !important; background-position: 0 0, 0 0 !important; background-repeat: repeat, no-repeat !important; }
/* C. dải 4 ý: chạy vòng phải → trái (vong-bia.js nhân bản li, đặt --hs-len/--hs-time) */
html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_c1):not(#_c2) { display: flex !important; overflow: hidden !important; padding: 10px 0 !important; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%) !important; mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%) !important; }
html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_c1):not(#_c2) li:not(#_c3) { display: flex !important; flex: 0 0 auto !important; padding: 6px 34px !important; white-space: nowrap !important; animation: hs-chay 28s linear infinite !important; }
html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_c1):not(#_c2):hover li:not(#_c3) { animation-play-state: paused !important; }
html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_c1):not(#_c2) li:not(#_c3) :is(span, b, strong) { white-space: nowrap !important; }
@media (prefers-reduced-motion: reduce) {
  html body main .hero.hero.hero .hero-strip.hs-cuon:not(#_c1):not(#_c2) li:not(#_c3) { animation: none !important; }
}
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-news .tn-top { padding-bottom: 6px !important; margin-bottom: 0 !important; align-items: center !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-news .tn-top b { white-space: nowrap; font-size: 22px !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-news { padding: 12px 14px !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-news .tn-item { -webkit-line-clamp: 2 !important; font-size: 13px !important; padding: 4px 0 !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-news .tn-items::before { display: none !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4) .tri-comm strong { font-size: 17px !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5) .tri-news .tn-item { display: block !important; max-height: calc(2 * 1.35em + 4px + 8px) ; overflow: hidden !important; text-overflow: ellipsis; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5) .tri-news .tn-item small { display: inline-block !important; margin: 0 6px 0 0 !important; vertical-align: 1px; font-size: 9px !important; padding: 1px 4px !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5) .tri-news .tn-items { gap: 0 !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5) .tri-news .tn-dong { display: block !important; max-height: calc(2 * 1.3em + 8px) !important; overflow: hidden !important; padding: 4px 0 !important; font-size: 13px !important; line-height: 1.3 !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5) .tri-news .tn-dong > span { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5) .tri-news .tn-dong small { display: none !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5) .tri-news .tn-tui { padding: 8px 12px !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5):not(#_a6) .tri-news .tn-dong { max-height: calc(2 * 1.3em + 12px) !important; padding: 5px 0 6px !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5):not(#_a6) a.tri-orange { justify-content: space-between !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5):not(#_a6):not(#_a7) .tri-news .tn-dong { max-height: none !important; overflow: visible !important; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5):not(#_a6):not(#_a7) .tri-news .tn-dong > span { max-height: 2.6em; }
html body main:not(#_a1):not(#_a2):not(#_a3):not(#_a4):not(#_a5):not(#_a6):not(#_a7):not(#_a8) .tri-news .tn-dong > span { -webkit-line-clamp: 2 !important; line-clamp: 2 !important; max-height: 2.7em !important; overflow: hidden !important; text-overflow: ellipsis; }

/* 20/11 logo "TOEX English" như các trang học (Plus Jakarta Sans 800, một màu); điện thoại ẩn chữ English */
html body .header .logo .logo-text { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }
html body .header .logo .logo-text .logo-en { font: inherit; color: inherit; }
@media (max-width: 640px) { html body .header .logo .logo-text .logo-en { display: none; } }

/* ===== 20/11 chặng A2: hình minh hoạ phẳng mới thay tranh phong cảnh sưu tầm (adaptive, lịch, hành trình, tư vấn) + 3 thẻ cuối có ô hình nhỏ ở đầu thẻ ===== */
/* 1. bốn khung hình lớn: ô giấy kem viền mực, hình nằm trọn giữa khung (contain) */
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) :is(a.tri-adapt, .lkg-box, .duo-green, .duo-yellow)::before {
  background-color: #FBF6EC !important; background-size: auto 112% !important; background-position: 50% 50% !important; background-repeat: no-repeat !important;
  border: 2px solid #121212 !important; border-radius: 8px !important; box-shadow: 3px 3px 0 rgba(24,38,65,.4) !important;
}
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) a.tri-adapt::before { background-image: url("assets/giay-kem/adaptive-600.webp?v=20261120h1") !important; min-height: 150px; max-height: 230px; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) .lkg-box::before { background-size: auto 128% !important; background-image: url("assets/giay-kem/lich-khai-giang-600.webp?v=20261120h1") !important; min-height: 170px; max-height: 200px; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) .duo-green::before { background-image: url("assets/giay-kem/hanh-trinh-600.webp?v=20261120h1") !important; flex: none !important; height: 200px !important; min-height: 0; max-height: none; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) .duo-yellow::before { background-image: url("assets/giay-kem/tu-van-600.webp?v=20261120h1") !important; flex: none !important; height: 200px !important; min-height: 0; max-height: none; }
@media (min-width: 900px) {
  html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) a.tri-adapt::before { background-image: url("assets/giay-kem/adaptive-1200.webp?v=20261120h1") !important; }
  html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) .lkg-box::before { background-image: url("assets/giay-kem/lich-khai-giang-1200.webp?v=20261120h1") !important; }
  html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) .duo-green::before { background-image: url("assets/giay-kem/hanh-trinh-1200.webp?v=20261120h1") !important; }
  html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) .duo-yellow::before { background-image: url("assets/giay-kem/tu-van-1200.webp?v=20261120h1") !important; }
}
/* 2. ba thẻ cuối: ô hình nhỏ bên phải hàng nhãn (cùng một cách cho cả ba), thẻ vẫn thấp và bằng nhau */
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) :is(a.tri-yellow, a.tri-docbao, a.tri-orange) { position: relative !important; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) :is(a.tri-yellow, a.tri-docbao, a.tri-orange)::before {
  content: "" !important; display: block !important; position: absolute !important; inset: 14px 16px auto auto !important;
  width: 100px !important; height: 66px !important; margin: 0 !important; flex: none !important; min-height: 0 !important; max-height: none !important; order: 0;
  background-color: #FBF6EC; background-repeat: no-repeat !important; background-position: 50% 50% !important; background-size: contain !important;
  border: 2px solid #121212 !important; border-radius: 8px !important; box-shadow: 2px 2px 0 rgba(24,38,65,.4) !important; pointer-events: none; z-index: 0;
}
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) a.tri-yellow::before { background-image: url("assets/giay-kem/community-600.webp?v=20261120h1") !important; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) a.tri-docbao::before { background-image: url("assets/giay-kem/doc-bao-600.webp?v=20261120h1") !important; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) a.tri-orange::before { background-image: url("assets/giay-kem/news-600.webp?v=20261120h1") !important; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) :is(a.tri-yellow, a.tri-docbao, a.tri-orange) > .tri-h { align-self: flex-start !important; margin-bottom: 20px !important; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) a.tri-docbao .d2-copy { flex: 1 1 auto !important; display: flex !important; flex-direction: column; justify-content: center; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) :is(a.tri-yellow, a.tri-docbao) > :is(.tri-comm, .d2-row) { flex: 1 1 auto !important; display: flex !important; flex-direction: column; justify-content: center; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) a.tri-docbao .d2-copy > span { -webkit-line-clamp: 5 !important; font-size: 15.5px !important; line-height: 1.5 !important; }
@media (max-width: 760px) {
  html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) :is(a.tri-yellow, a.tri-docbao, a.tri-orange)::before { width: 84px !important; height: 56px !important; inset: 12px 12px auto auto !important; }
  html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) :is(a.tri-yellow, a.tri-docbao, a.tri-orange) > .tri-h { margin-bottom: 22px !important; }
}

/* 20/11 chặng A2 (bổ sung): TOEX NEWS đổi phông; vùng chạm điện thoại ≥ 44px */
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5) .tri-news .tn-top > b { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; font-weight: 800 !important; letter-spacing: -.01em; }
@media (max-width: 760px) {
  html body .fab.fab.fab:not(#_x):not(#_y) { width: 44px !important; height: 44px !important; right: 4px !important; bottom: calc(4px + env(safe-area-inset-bottom)) !important; }
  html body .fab.fab.fab:not(#_x):not(#_y) svg { width: 20px; height: 20px; }
  html body main a.lkg-row.lkg-empty:not(#_x):not(#_y) { min-height: 44px !important; display: flex !important; align-items: center; box-sizing: border-box; }
}
html body main svg text:not(#_x) { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; }

/* 20/11 chặng C (GPT tự trải nghiệm): khả năng tiếp cận + lỗi form + chạm ≥ 44px; không đổi hình thức khối bìa */
.tcux-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body :is(a, button, input, select, textarea, [tabindex], summary):focus-visible:not(#_x):not(#_y) { outline: 3px solid #5E75B8 !important; outline-offset: 3px !important; }
html body :is(.lkg-box, .lkg-x, .btn-hero, .hero-lich, .duo-send):focus-visible:not(#_x):not(#_y) { outline: 3px solid #5E75B8 !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #FBF6EC !important; }
/* tạm dừng dải cam kết khi đang focus / rê vào dải (WCAG 2.2.2) */
html body .hero:focus-within .hero-strip.hs-cuon li, html body .hero-strip.hs-cuon:hover li { animation-play-state: paused !important; }
/* dòng "Xem lịch khai giảng →" khi lịch không tải được: chữ mực trên nền giấy */
html body main :is(a, p).lkg-row.lkg-empty:not(#_x):not(#_y), html body .lkg-pop :is(a, p).lkg-row.lkg-empty:not(#_x):not(#_y) {
  display: flex !important; align-items: center; box-sizing: border-box; min-height: 44px !important; padding: 8px 14px !important;
  background: #FBF6EC !important; color: #121212 !important; border: 2px solid #121212 !important; border-radius: 8px !important;
  font-weight: 800; text-decoration: none; opacity: 1 !important; text-shadow: none !important;
}
/* nút ĐĂNG KÝ nổi: chữ ≥ 11px, mực đậm */
html body .fab.fab.fab:not(#_x):not(#_y) span { font-size: 11px !important; font-weight: 800 !important; color: #121212 !important; opacity: 1 !important; }
/* thanh trên: vùng chạm ≥ 44px */
html body .header .pill-round:not(#_x):not(#_y) { min-width: 44px !important; min-height: 44px !important; }
@media (max-width: 760px) {
  html body .header .pill:not(#_x):not(#_y), html body .header .pill-user:not(#_x):not(#_y) { min-height: 44px !important; }
}
/* lỗi form tư vấn cạnh từng ô */
.duo-o .tcux-loi { display: block; margin: 6px 0 0; font: 700 13px/1.35 "Plus Jakarta Sans", system-ui, sans-serif; color: #A3281E; }
html body .duo-form .duo-field:has(input[aria-invalid="true"]):not(#_x):not(#_y) { box-shadow: inset 0 0 0 2px #A3281E !important; }
/* bảng thông báo cho khách */
.tcux-tb { position: absolute; z-index: 80; width: min(320px, calc(100vw - 24px)); padding: 16px; background: #FBF6EC; color: #121212; border: 2px solid #121212; border-radius: 10px; box-shadow: 4px 4px 0 rgba(24,38,65,.4); font: 500 15px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; }
.tcux-tb[hidden] { display: none; }
.tcux-tb b { display: block; margin-bottom: 4px; font-weight: 800; }
.tcux-tb p { margin: 0 0 12px; }
.tcux-tb a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: #EFC278; color: #121212; border: 2px solid #121212; border-radius: 8px; font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 rgba(24,38,65,.28); }

/* 20/11 chặng C vòng 2 (GPT tự trải nghiệm): tiêu đề lịch đọc được, vùng chạm ≥ 44px, menu điện thoại, trạng thái lịch trống, chống tràn ngang; không đổi khối bìa */
html body main .tri.tri-navy .lkg-mini :is(strong, [data-lkg-head]):not(#_x):not(#_y) { color: #121212 !important; text-shadow: none !important; }
html body :is(.lkg-x, .picker-close):not(#_x):not(#_y) { min-width: 44px !important; min-height: 44px !important; }
html body .newsletter button:not(#_x):not(#_y) { min-width: 44px !important; min-height: 44px !important; }
html body:not(#_x) .fb-input::placeholder { color: #5A6270; opacity: 1; }
html body .lkg-pop .lkg-card:not(#_x):not(#_y) { max-width: calc(100vw - 32px) !important; box-sizing: border-box; }
html body .hero .hero-content :is(.hero-kicker, .hero-desc):not(#_x):not(#_y) { overflow-wrap: anywhere; max-width: 100%; }
html, body { overflow-x: clip; }
/* trạng thái lịch chưa tải được: giải thích + hai việc làm tiếp */
.tcux-lich-trong { display: grid; gap: 12px; padding: 4px 0; color: #121212; font: 500 15.5px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; }
.tcux-lich-trong p { margin: 0; }
.tcux-lich-nut { display: flex; flex-wrap: wrap; gap: 10px; }
.tcux-lich-nut :is(button, a) { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid #121212; border-radius: 8px; background: #EFC278; color: #121212; font: 800 15px "Plus Jakarta Sans", system-ui, sans-serif; box-shadow: 3px 3px 0 rgba(24,38,65,.28); }
.tcux-lich-nut a { background: #FBF6EC; }
.tcux-lich-nut :is(button, a):focus-visible { outline: 3px solid #5E75B8; outline-offset: 3px; }
.tcux-lich-mini { font: 800 15px/1.4 "Plus Jakarta Sans", system-ui, sans-serif; color: #121212; }
/* nhãn "cần đăng nhập" trên thẻ đề thi */
html body main .el-tab .tcux-dn:not(#_x):not(#_y) { color: #121212 !important; text-shadow: none !important; background: #FBF6EC !important; border: 1.5px solid #121212 !important; }
.tcux-dn { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1.5px solid #121212; border-radius: 6px; background: #FBF6EC; color: #121212; font: 800 12px/1.4 "Plus Jakarta Sans", system-ui, sans-serif; font-style: normal; }
html.tcux-in .tcux-dn { display: none; }
.el-bia b { overflow-wrap: anywhere; }
/* menu điện thoại có nhãn */
.tcux-mb { display: none !important; }
@media (max-width: 760px) {
  .tcux-mb { display: inline-flex !important; align-items: center; gap: 6px; }
  .tcux-mb span { font-weight: 800; font-size: 14px; }
}
.tcux-mp { position: fixed; z-index: 90; left: 12px; right: 12px; top: 68px; padding: 8px; background: #FBF6EC; color: #121212; border: 2px solid #121212; border-radius: 12px; box-shadow: 4px 4px 0 rgba(24,38,65,.4); display: grid; gap: 4px; }
.tcux-mp[hidden] { display: none; }
.tcux-mp :is(a, button) { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 8px; color: #121212; font: 800 16px "Plus Jakarta Sans", system-ui, sans-serif; }
.tcux-mp :is(a, button):hover { background: rgba(74, 95, 158,.12); }
.tcux-mp :is(a, button):focus-visible { box-shadow: inset 0 0 0 3px #5E75B8; background: rgba(74, 95, 158,.12); }
@media (min-width: 761px) { .tcux-mp { display: none !important; } }

/* 21/11 vòng 3 (GPT lặp lại ở v2+v3): chữ "Lịch đang được cập nhật." trắng trên kem → mực; nút "Về đầu trang" không đè nút Đăng ký nổi */
html body .tcux-lich-mini:not(#_x):not(#_y), html body .lkg-rows .tcux-lich-mini:not(#_x):not(#_y) { color: #121212 !important; text-shadow: none !important; opacity: 1 !important; }
/* so mù 21/11: nút mũi tên nổi đè chữ thẻ trên điện thoại và trùng với "Về đầu trang" ở chân trang → ẩn ở trang chủ (trước đó nó vốn nằm khuất dưới nút Đăng ký) */
html body .to-top.to-top:not(#_x):not(#_y) { display: none !important; }

/* 21/11: có lại kệ sách nên hàng ba thẻ cao hơn – ô chữ thẻ Community không kéo giãn, nội dung thẻ Đọc báo bám lên trên */
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) a.tri-yellow > .tri-comm { flex: 0 1 auto !important; justify-content: flex-start !important; }
html body main:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) a.tri-docbao > .d2-row { justify-content: flex-start !important; }

/* 22/11 – khối "Học thật, điểm thật": 4 ô số liệu tách nhau (mỗi ô viền + bóng riêng, không dính thành đường đôi); logo ở dòng "Giáo trình tự biên soạn" bỏ ô nền, đứng trơn trên nền kem */
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4):not(#_t5):not(#_t6) .duo .duo-stats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4):not(#_t5):not(#_t6) .duo .duo-stats > .duo-stat { margin: 0 !important; }
@media (max-width: 760px) { html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4):not(#_t5):not(#_t6) .duo .duo-stats { gap: 10px !important; } }
html body main:not(#_tg):not(#_t2):not(#_t3):not(#_t4):not(#_t5):not(#_t6) .duo .duo-note img { background: transparent !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; width: 34px !important; height: auto !important; }
