/* ===== Quyền lợi học viên (bảng tin gỗ + phong bì kính) & Hệ sinh thái học tập (4 thẻ kính, nền hoàng hôn) – trang Giới thiệu, 1/11/2026 =====
   Bật mặc định (html.ql-moi). ?moi=0 xem bản cũ, ?moi=sach xem cuốn sách. Ảnh nền không chữ: assets/quyen-loi/ql-nen, hst-nen, hst-1..4 (Codex vẽ). */
html:not(.ql-moi) :is(#ql2, #hst2) { display: none !important; }
html.ql-moi main :is(#quyen-loi, .eco.es, #sach-ql) { display: none !important; }

.ql2, .hst2 { --q-muc: #1C2A1E; --q-chu: #2E3328; --q-rung: #3A4A32; --q-cam: #B25D2A; position: relative; margin: 28px auto 0; font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--q-chu); }
html body main :is(.ql2, .hst2):not(#k) :is(h2, h3, h4, p, b, small, span, li, blockquote, mark, a) { text-shadow: none !important; -webkit-text-stroke: 0 !important; }
:is(.ql2, .hst2) mark { background: linear-gradient(transparent 58%, rgba(232, 184, 74, .5) 58%); color: inherit; padding: 0 1px; }
.ql2-nho { display: inline-block; margin-bottom: 10px; font: 700 12px/1 "Be Vietnam Pro", sans-serif; letter-spacing: .24em; color: var(--q-rung) !important; }

/* ---------- Quyền lợi: khung ảnh 16:9, chữ bên trái, bảng tin bên phải ---------- */
.ql2-khung { position: relative; display: grid; grid-template-columns: 37% 1fr; align-items: center; min-height: min(56.25vw, 860px); border-radius: 28px; overflow: hidden;
  background: #cfdde6 url(assets/quyen-loi/ql-nen.webp) 62% 30% / cover no-repeat; box-shadow: 0 30px 60px -30px rgba(20, 30, 20, .45); }
.ql2-chu { align-self: start; padding: clamp(28px, 5vw, 72px) 0 32px clamp(24px, 4.5vw, 64px); }
html body main .ql2:not(#k) h2 { margin: 0 0 12px; font: 700 clamp(34px, 4.4vw, 62px)/1.05 Lora, Georgia, serif; letter-spacing: -.01em; color: var(--q-muc) !important; }
html body main .ql2:not(#k) .ql2-phu { margin: 0 0 16px; font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; color: #263022 !important; }
html body main .ql2:not(#k) blockquote { margin: 0 0 22px; padding: 12px 16px; max-width: 420px; border-left: 3px solid var(--q-cam); border-radius: 0 12px 12px 0; background: rgba(255, 253, 246, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: italic 600 15px/1.55 Lora, Georgia, serif; color: var(--q-muc) !important; }
.ql2-nut { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; background: var(--q-cam); color: #FFF8EE !important; font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 22px -10px rgba(120, 50, 10, .7); transition: transform .2s, background .2s; }
.ql2-nut:hover { background: #9A4D20; transform: translateY(-2px); }

/* bảng tin: 4 phong bì kính 2×2 + thanh mốc kính */
.ql2-bang { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); padding: 13% 15% 6% 20%; } /* căn theo tấm bảng gỗ trong ảnh (bảng ở khoảng 51–89% bề ngang) */
.ql2-thu { position: relative; padding: 26px 22px 18px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(255, 252, 244, .58)); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 14px 28px -16px rgba(40, 25, 5, .55), inset 0 1px 0 #fff; transform: rotate(var(--r, -1deg)); transition: transform .25s; }
.ql2-thu:nth-child(2) { --r: 1.2deg; } .ql2-thu:nth-child(3) { --r: .8deg; } .ql2-thu:nth-child(4) { --r: -1.4deg; }
.ql2-thu:hover { transform: rotate(0) translateY(-3px); }
/* nắp phong bì: chữ V mảnh ở trên */
.ql2-thu::before { content: ""; position: absolute; inset: 0 0 auto; height: 46%; pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(130, 115, 85, .28) 50%, transparent calc(50% + 1px)) left / 50% 100% no-repeat,
              linear-gradient(to bottom left, transparent calc(50% - 1px), rgba(130, 115, 85, .28) 50%, transparent calc(50% + 1px)) right / 50% 100% no-repeat; }
.ql2-ghim { position: absolute; z-index: 2; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F4D58A, #A97A2A 70%); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); }
.ql2-tem { position: absolute; z-index: 1; top: 14px; right: 14px; width: clamp(54px, 5.2vw, 76px); aspect-ratio: 4 / 5; object-fit: cover; border: 4px solid #FFFDF6; outline: 1px dashed rgba(150, 130, 90, .5); outline-offset: -2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18); transform: rotate(3deg); }
.ql2-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; color: var(--q-cam); }
.ql2-ico svg { width: 32px; height: 32px; }
html body main .ql2:not(#k) .ql2-thu h4 { position: relative; z-index: 1; margin: 0 0 6px; padding-right: 70px; font: 700 clamp(17px, 1.5vw, 21px)/1.25 Lora, Georgia, serif; color: var(--q-muc) !important; }
.ql2-thu h4::after { content: ""; display: block; width: 26px; height: 2px; margin-top: 8px; border-radius: 2px; background: var(--q-cam); }
html body main .ql2:not(#k) .ql2-thu p { position: relative; z-index: 1; margin: 0; font-size: 13.5px; line-height: 1.55; font-weight: 500; color: var(--q-chu) !important; }

.ql2-moc { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 4px 0 0; padding: 16px 20px 14px; list-style: none; border-radius: 18px;
  background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 22px -14px rgba(40, 25, 5, .5); }
.ql2-moc::before { content: ""; position: absolute; left: 34px; right: 34px; top: 22px; height: 1.5px; background: linear-gradient(90deg, rgba(178, 93, 42, .2), rgba(178, 93, 42, .7), rgba(178, 93, 42, .2)); }
.ql2-moc li { position: relative; padding-top: 18px; }
.ql2-moc li::before { content: ""; position: absolute; top: 1px; left: 6px; width: 11px; height: 11px; border-radius: 50%; background: #FFF6E6; border: 2px solid var(--q-cam); box-shadow: 0 0 0 4px rgba(255, 220, 170, .45); }
html body main .ql2:not(#k) .ql2-moc b { display: block; margin-bottom: 4px; font: 700 15px/1.3 Lora, Georgia, serif; color: var(--q-muc) !important; }
html body main .ql2:not(#k) .ql2-moc p { margin: 0; font-size: 12.5px; line-height: 1.5; font-weight: 500; color: var(--q-chu) !important; }

/* ---------- Hệ sinh thái: nền hoàng hôn, 4 thẻ kính ---------- */
.hst2 { padding: clamp(40px, 5vw, 72px) clamp(18px, 3vw, 44px) clamp(34px, 4vw, 56px); border-radius: 28px; overflow: hidden; text-align: center;
  background: #e8b896 url(assets/quyen-loi/hst-nen.webp) center / cover no-repeat; box-shadow: 0 30px 60px -30px rgba(40, 20, 10, .45); }
html body main .hst2:not(#k) h2 { margin: 0 0 10px; font: 700 clamp(34px, 4.6vw, 64px)/1.05 Lora, Georgia, serif; color: #14200F !important; }
html body main .hst2:not(#k) .hst2-dau p { margin: 0 auto; font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; color: #241E14 !important; }
.hst2 .ql2-nho { color: #3F2A12 !important; }
.hst2-luoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 26px); margin-top: clamp(26px, 3.6vw, 48px); text-align: left; }
.hst2-the { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, .28); border: 1.5px solid rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 22px 40px -22px rgba(50, 25, 10, .6), inset 0 1px 0 rgba(255, 255, 255, .9); transition: transform .25s, box-shadow .25s; }
.hst2-the:nth-child(odd) { transform: translateY(14px); }
.hst2-the:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -22px rgba(50, 25, 10, .7), inset 0 1px 0 #fff; }
.hst2-anh { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.hst2-anh img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hst2-the:hover .hst2-anh img { transform: scale(1.05); }
.hst2-kinh { position: relative; flex: 1; margin: -26px 10px 10px; padding: 16px 52px 16px 18px; border-radius: 20px;
  background: rgba(255, 252, 246, .78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .9); }
.hst2-ico { display: block; width: 22px; height: 22px; margin-bottom: 6px; color: var(--q-muc); }
.hst2-ico svg { width: 22px; height: 22px; }
html body main .hst2:not(#k) .hst2-kinh b { display: block; margin-bottom: 6px; font: 700 clamp(18px, 1.6vw, 22px)/1.2 Lora, Georgia, serif; color: var(--q-muc) !important; }
html body main .hst2:not(#k) .hst2-kinh small { display: block; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--q-chu) !important; }
.hst2-mui { position: absolute; right: 14px; bottom: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(28, 42, 30, .25); background: rgba(255, 255, 255, .7);
  font-style: normal; font-size: 16px; color: var(--q-muc); transition: background .2s, color .2s; }
.hst2-the:hover .hst2-mui { background: var(--q-cam); color: #fff; border-color: var(--q-cam); }
html body main .hst2:not(#k) .hst2-cuoi { margin: clamp(28px, 3vw, 40px) auto 0; display: inline-block; padding: 10px 20px; border-radius: 999px; background: rgba(255, 252, 246, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: italic 600 15px/1.5 Lora, Georgia, serif; color: var(--q-rung) !important; }
:is(.ql2-nut, .hst2-the):focus-visible { outline: 3px solid var(--q-cam); outline-offset: 3px; }

/* ---------- máy tính bảng / điện thoại ---------- */
@media (max-width: 1100px) {
  .ql2-khung { grid-template-columns: 1fr; background-position: 70% center; }
  .ql2-chu { padding: 32px 24px 8px; }
  /* 04/11: ảnh gỗ nằm ngay sau tiêu đề → chữ tối khó đọc; thêm kính mờ sáng sau phần chữ */
  html body main .ql2:not(#k) .ql2-chu { margin: 14px 14px 0; padding: 22px 20px 18px; border-radius: 16px; background: rgba(250, 246, 236, .84);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 26px -14px rgba(20, 30, 20, .45); }
  .ql2-bang { padding: 12px 20px 26px; }
  .hst2-luoi { grid-template-columns: 1fr 1fr; }
  .hst2-the:nth-child(odd) { transform: none; }
}
@media (max-width: 640px) {
  .ql2-khung, .hst2 { border-radius: 20px; }
  .ql2-bang { grid-template-columns: 1fr; padding: 8px 14px 20px; }
  .ql2-moc { grid-template-columns: 1fr; gap: 12px; }
  .ql2-moc::before { left: 11px; right: auto; top: 22px; bottom: 22px; width: 1.5px; height: auto; }
  .ql2-moc li { padding: 0 0 0 26px; } .ql2-moc li::before { top: 4px; left: 0; }
  html body main .ql2:not(#k) .ql2-thu p, html body main .ql2:not(#k) .ql2-moc p { font-size: 15px; }
  .hst2-luoi { grid-template-columns: 1fr; }
  html body main .hst2:not(#k) .hst2-kinh small { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .ql2-thu, .hst2-the, .hst2-anh img { transition: none; } }
/* chỉnh sau khi xem: thẻ rộng hơn, tiêu đề gọn, tem nhỏ */
@media (min-width: 1101px) {
  .ql2-khung { grid-template-columns: 33% 1fr; }
  .ql2-bang { padding: 9% 5% 4% 7%; }
  html body main .ql2:not(#k) h2 { font-size: clamp(32px, 3.5vw, 52px); }
}
.ql2-tem { width: clamp(46px, 4vw, 60px); top: 12px; right: 12px; }
html body main .ql2:not(#k) .ql2-thu h4 { padding-right: 58px; }
html body main .ql2:not(#k) .ql2-thu p { font-size: 13px; }
.ql2-thu { padding: 24px 18px 16px; }
/* 1/11: about-moi.css ép #quyen-loi hiện (độ ưu tiên cao) → ẩn mạnh hơn để không còn 2 khối Quyền lợi học viên */
html.ql-moi body main #quyen-loi.letter.pv.pv.pv, html.ql-moi body main .eco.es.es.es { display: none !important; }

/* 1/11: cáo cạnh "Học Thật, Điểm Thật" – cả con ngồi đứng yên, không khung tròn, đầu quay nhìn theo chuột (cao-nhin.js); bỏ đuôi cam của bong bóng chữ */
html body .sun .fox-badge.fox-badge { position: absolute !important; inset: -46% 10% -4% -36% !important; background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; border-radius: 0 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
html body .sun .fox-badge.fox-badge > img:not(.cn-hinh) { display: none !important; }
html body .sun .fox-badge .cn-hinh { filter: drop-shadow(0 6px 8px rgba(10, 30, 60, .35)); }
html body .chat-cloud::before { display: none !important; }
/* 2/11: bảng bài học xếp chồng – mỗi bảng có nền kính ĐẶC + nhoè mạnh để bảng sau trượt lên đè KHÔNG còn nhìn xuyên thấy bảng trước (lỗi chồng hình) */
html body .a-lessons .lcard .lb.lb.lb { -webkit-backdrop-filter: blur(26px) saturate(1.2) !important; backdrop-filter: blur(26px) saturate(1.2) !important; border: 1px solid rgba(255, 255, 255, .45) !important; border-radius: 20px !important; box-shadow: 0 18px 40px rgba(8, 20, 30, .42), inset 1px 1px 0 rgba(255, 255, 255, .35) !important; }
html body .a-lessons .lcard:nth-child(1) .lb.lb.lb { background: linear-gradient(160deg, rgba(34, 70, 104, .96), rgba(24, 48, 74, .96)) !important; }
html body .a-lessons .lcard:nth-child(2) .lb.lb.lb { background: linear-gradient(160deg, rgba(58, 84, 40, .96), rgba(38, 58, 28, .96)) !important; }
html body .a-lessons .lcard:nth-child(3) .lb.lb.lb { background: linear-gradient(160deg, rgba(30, 84, 90, .96), rgba(20, 58, 64, .96)) !important; }
html body .a-lessons .lcard:nth-child(4) .lb.lb.lb { background: linear-gradient(160deg, rgba(66, 66, 108, .96), rgba(44, 44, 78, .96)) !important; }
