/* Kiểu chữ, màu dùng chung cho các trang Bài viết (cùng hệ với trang chủ) */
:root{
  --primary:#533AFD; --primary-hover:#4834DB;
  --text:#061B31; --text-2:#50617A; --muted:#64748D;
  --border:#E5EDF5; --border-accent:#D6D9FC; --dark:#0D1738;
  --r-sm:4px; --r-md:6px; --gutter:16px;
  --dots:radial-gradient(circle, rgba(120,132,150,.22) 0.9px, transparent 1.2px) 0 0 / 20px 20px;
  --font:"Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
}
@media (min-width:768px){ :root{ --gutter:24px; } }
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; font-family:var(--font); font-size:16px; line-height:1.6; color:var(--text); background:var(--dots), #fff; overflow-x:hidden; }
a{ color:var(--primary); text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset:3px; }
a:focus-visible, button:focus-visible{ outline:2px solid var(--primary); outline-offset:3px; border-radius:var(--r-sm); }
h1,h2{ margin:0; font-weight:300; }
.wrap{ max-width:1200px; margin:0 auto; padding:0 var(--gutter); }

/* Thanh trên cùng */
.top{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.9); backdrop-filter:saturate(1.6) blur(10px); border-bottom:1px solid var(--border); }
.top-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; }
.brand{ font-size:17px; font-weight:500; color:var(--text); letter-spacing:-0.01em; white-space:nowrap; }
.brand span{ color:inherit; }
.brand{ display:inline-flex; align-items:center; } .brand-logo{ width:36px; height:36px; border-radius:50%; flex:none; margin-right:10px; }
.brand:hover{ text-decoration:none; }
.top-links{ display:flex; gap:2px; }
.top-links a{ color:var(--text); padding:10px 10px; font-size:15px; border-radius:var(--r-sm); white-space:nowrap; }
@media (max-width:479px){ .top-links a{ padding:10px 6px; font-size:14px; } .brand{ font-size:15px; } }
@media (max-width:379px){ .top-links a:not(:last-child){ display:none; } }

.eyebrow{ font-size:14px; font-weight:500; color:var(--primary); letter-spacing:.02em; margin:0 0 14px; }

/* Trang danh sách */
.list{ padding-top:56px; padding-bottom:96px; }
.list h1{ font-size:clamp(32px, 6vw, 52px); line-height:1.1; letter-spacing:-0.02em; max-width:820px; }
.list h1 span{ display:block; color:var(--muted); font-size:clamp(16px, 2vw, 19px); line-height:1.4; margin-top:12px; letter-spacing:0; }
.filter{ display:flex; flex-wrap:wrap; gap:8px; margin:32px 0 28px; }
.filter button{
  font:500 15px/1 var(--font); min-height:40px; padding:10px 16px; border-radius:999px; cursor:pointer;
  border:1px solid var(--border-accent); background:#F5F6FF; color:var(--primary);
}
.filter button[aria-pressed="true"]{ background:var(--primary); border-color:var(--primary); color:#fff; }

/* Thẻ bài viết dạng ô màu */
.post-grid{ display:grid; gap:16px; }
@media (min-width:700px){ .post-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (min-width:1050px){ .list .post-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
.post-card{
  display:flex; flex-direction:column; gap:10px; padding:24px 22px; border-radius:var(--r-md); color:#fff; min-height:230px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), rgba(13,23,56,.30) 0 24px 48px -18px;
  transition:transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.post-card[hidden]{ display:none; }
.post-card:hover{ text-decoration:none; transform:translateY(-4px); box-shadow:inset 0 1px 0 rgba(255,255,255,.18), rgba(13,23,56,.42) 0 34px 64px -20px; }
.post-card.c-violet{ background:linear-gradient(155deg, #5B45F0 0%, #3A2CB8 55%, #241C7C 100%); }
.post-card.c-blue  { background:linear-gradient(155deg, #2A62C9 0%, #1B4596 55%, #122C66 100%); }
.post-card.c-teal  { background:linear-gradient(155deg, #12909A 0%, #0B6A78 55%, #08454F 100%); }
.post-cat{ align-self:flex-start; font-size:13px; font-weight:500; line-height:1; padding:7px 10px; border-radius:var(--r-sm); background:rgba(255,255,255,.16); }
.post-title{ font-size:22px; font-weight:500; line-height:1.25; letter-spacing:-0.01em; }
.post-sum{ color:rgba(255,255,255,.78); font-size:15px; line-height:1.5; }
.post-more{ margin-top:auto; padding-top:8px; font-size:15px; font-weight:500; color:#E3E5FD; }

/* Trang một bài */
.article{ max-width:760px; padding-top:32px; padding-bottom:96px; }
.back{ display:inline-flex; min-height:44px; align-items:center; font-size:15px; margin-bottom:16px; }
.article h1{ font-size:clamp(32px, 6vw, 48px); line-height:1.12; letter-spacing:-0.02em; }
.lede{ font-size:19px; line-height:1.55; color:var(--text-2); margin:18px 0 0; padding-bottom:28px; border-bottom:1px solid var(--border); }
.prose{ padding-top:28px; font-size:18px; line-height:1.75; color:#1E2F45; }
.prose p{ margin:0 0 1.05em; }
.prose ul{ margin:0 0 1.2em; padding:16px 20px 16px 38px; background:#F5F6FF; border-left:3px solid var(--primary); border-radius:0 var(--r-md) var(--r-md) 0; }
.prose li{ margin:4px 0; }
.sign{ margin:28px 0 0; font-weight:600; color:var(--text); }
.cta{ margin:40px 0 56px; padding:24px; border-radius:var(--r-md); background:var(--dark); color:#fff; }
.cta p{ margin:0 0 16px; font-size:17px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 22px; border-radius:var(--r-sm); background:#fff; color:var(--text); font-weight:500; margin:0 8px 8px 0; }
.btn:hover{ text-decoration:none; background:#EEF0FF; }
.btn-ghost{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.5); }
.btn-ghost:hover{ background:rgba(255,255,255,.1); }
.more-h{ font-size:26px; letter-spacing:-0.01em; margin-bottom:20px; }

.foot{ border-top:1px solid var(--border); padding:28px 0 96px; font-size:14px; color:var(--muted); }

.zalo-float{
  position:fixed; right:16px; bottom:16px; z-index:60;
  display:inline-flex; align-items:center; gap:8px; min-height:52px; padding:12px 18px;
  background:var(--primary); color:#fff; border-radius:var(--r-md);
  box-shadow:rgba(50,50,93,.25) 0 13px 27px -5px, rgba(0,0,0,.3) 0 8px 16px -8px; font-size:16px; font-weight:500;
}
.zalo-float:hover{ background:var(--primary-hover); text-decoration:none; }
.zalo-dot{ width:8px; height:8px; border-radius:100%; background:#00D66F; box-shadow:0 0 0 3px rgba(0,214,111,.25); }
@media (min-width:900px){ .zalo-float{ right:24px; bottom:24px; } }
@media (max-width:479px){ .brand{ font-size:0; } .brand-logo{ width:40px; height:40px; margin-right:0; } .top-links a{ font-size:15px; padding:10px 8px; } }

/* Mọi nút bo tròn kiểu viên nhộng */
.btn, .zalo-float, .post-cat{ border-radius:999px; }
.post-cat{ padding-left:12px; padding-right:12px; }

/* Nghe bài viết (đọc to bằng giọng có sẵn trong máy) */
.listen{ display:inline-flex; align-items:center; gap:10px; margin:22px 0 0; min-height:46px; padding:10px 20px 10px 12px; border-radius:999px; cursor:pointer;
  border:1px solid var(--border-accent); background:#F5F6FF; color:var(--primary); font:500 16px/1 var(--font); }
.listen[hidden]{ display:none; }
.listen:hover{ border-color:var(--primary); }
.listen small{ font-size:14px; font-weight:400; color:var(--text-2); }
.l-ico{ position:relative; width:28px; height:28px; border-radius:50%; background:var(--primary); flex:none; }
.l-ico::before{ content:""; position:absolute; left:11px; top:8px; border-style:solid; border-width:6px 0 6px 9px; border-color:transparent transparent transparent #fff; }
.prose .reading{ background:#FFF6D8; box-shadow:0 0 0 8px #FFF6D8; border-radius:4px; transition:background .3s; }
.is-listening .prose p, .is-listening .prose li{ cursor:pointer; }
.player{ position:fixed; z-index:70; left:50%; bottom:16px; transform:translateX(-50%); width:min(560px, calc(100% - 24px));
  display:flex; align-items:center; gap:6px; padding:8px 10px; border-radius:999px; background:var(--dark); color:#fff;
  box-shadow:rgba(13,23,56,.35) 0 18px 40px -10px; }
.player[hidden]{ display:none; }
.p-btn{ flex:none; min-width:40px; height:40px; padding:0 10px; border:0; border-radius:999px; background:transparent; color:#fff; font:500 15px/1 var(--font); cursor:pointer; }
.p-btn:hover{ background:rgba(255,255,255,.12); }
.p-main{ background:#fff; color:var(--dark); min-width:44px; height:44px; }
.p-main:hover{ background:#EEF0FF; }
.p-info{ flex:1; min-width:0; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:rgba(255,255,255,.8); padding-left:4px; }
.p-info b{ color:#fff; font-weight:500; }
.p-speed{ border:1px solid rgba(255,255,255,.35); height:34px; font-size:14px; }
.is-listening .zalo-float{ display:none; }
@media (max-width:420px){ .p-info b{ display:none; } }

/* Nút Zalo tròn */
.zalo-float{ width:58px; height:58px; min-height:0; padding:0; justify-content:center; border-radius:50% !important; background:#0068FF; }
.zalo-float:hover{ background:#0057D9; }
.zalo-mark{ font:700 15px/1 var(--font); letter-spacing:-0.02em; color:#fff; }

/* Thẻ bài viết gọn: tóm tắt tối đa 2 dòng, không ghi số phút */
.post-sum{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.post-card{ min-height:0; }
/* Nút lên đầu trang */
.to-top{ position:fixed; z-index:60; right:16px; bottom:86px; width:58px; height:58px; border-radius:50%; display:grid; place-items:center;
  background:transparent; border:2px solid #9AA6B8; color:#64748D; opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .25s, transform .25s, visibility .25s; }
.to-top.show{ opacity:1; visibility:visible; transform:none; }
.to-top:hover{ background:rgba(255,255,255,.6); border-color:#64748D; color:var(--text); text-decoration:none; }
.to-top svg{ width:22px; height:22px; }
@media (min-width:900px){ .to-top{ right:24px; bottom:94px; } }
.is-listening .to-top{ display:none; }
.post-card.c-plum  { background:linear-gradient(155deg, #A23A8E 0%, #7A2873 55%, #4C1A4E 100%); }
.post-card.c-slate { background:linear-gradient(155deg, #46557A 0%, #232D48 55%, #121827 100%); }

/* Nút quay lại: hình tròn trong veo, viền ghi, mũi tên kiểu hoàn tác (giống nút lên đầu trang) */
.back{ display:inline-flex; align-items:center; gap:10px; font-weight:500; }
.back-ico{ display:grid; place-items:center; width:42px; height:42px; border-radius:50%; flex:none; border:2px solid #9AA6B8; color:#64748D; background:transparent; transition:border-color .2s, color .2s, transform .2s; }
.back-ico svg{ width:20px; height:20px; }
.back:hover{ text-decoration:none; }
.back:hover .back-ico{ border-color:var(--primary); color:var(--primary); transform:translateX(-2px); }
.hero .back-ico{ border-color:rgba(255,255,255,.7); color:#fff; }
.hero .back:hover .back-ico{ border-color:#fff; color:#fff; }
/* Nút về trang chủ: tròn trong veo viền ghi, góc dưới bên trái, cùng kiểu nút lên đầu trang */
.to-home{ position:fixed; z-index:60; left:16px; bottom:16px; width:58px; height:58px; border-radius:50%; display:grid; place-items:center;
  background:transparent; border:2px solid #9AA6B8; color:#64748D; transition:border-color .2s, color .2s, background .2s; }
.to-home:hover{ background:rgba(255,255,255,.6); border-color:#64748D; color:var(--text); text-decoration:none; }
.to-home svg{ width:22px; height:22px; }
@media (min-width:900px){ .to-home{ left:24px; bottom:24px; } }
.is-listening .to-home{ display:none; }

/* Trang con không có nút Zalo: nút lên đầu trang hạ xuống đúng chỗ của Zalo */
.no-zalo .to-top{ bottom:16px; }
@media (min-width:900px){ .no-zalo .to-top{ bottom:24px; } }
.to-top, .to-home{ background:rgba(255,255,255,.72) !important; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }

/* Trình nghe: thêm nút giọng + độ cao */
.player{ width:min(640px, calc(100% - 24px)); }
.p-voice{ max-width:96px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.p-speed{ padding:0 10px; }
.p-voice[hidden]{ display:none; }
@media (max-width:479px){ .p-info{ display:none; } .player{ justify-content:space-between; gap:4px; padding:8px; } .p-btn{ min-width:36px; } .p-speed{ font-size:13px; padding:0 8px; } }

/* Trang bài viết gom theo chủ đề */
.topics{ display:grid; gap:12px; margin:28px 0 8px; }
@media (min-width:640px){ .topics{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (min-width:1050px){ .topics{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
.topic{ position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:6px; text-align:left; cursor:pointer; padding:18px 18px 16px; border-radius:var(--r-md);
  border:1px solid rgba(255,255,255,.14); color:#fff; font:inherit; box-shadow:rgba(13,23,56,.22) 0 14px 28px -16px; transition:transform .2s, box-shadow .2s, opacity .2s; }
.topic.c-violet{ background:linear-gradient(155deg, #5B45F0 0%, #3A2CB8 55%, #241C7C 100%); }
.topic.c-blue  { background:linear-gradient(155deg, #2A62C9 0%, #1B4596 55%, #122C66 100%); }
.topic.c-teal  { background:linear-gradient(155deg, #12909A 0%, #0B6A78 55%, #08454F 100%); }
.topic.c-plum  { background:linear-gradient(155deg, #A23A8E 0%, #7A2873 55%, #4C1A4E 100%); }
.topic:hover{ transform:translateY(-2px); }
.topics:has(.topic[aria-expanded="true"]) .topic[aria-expanded="false"]{ opacity:.55; }
.topic[aria-expanded="true"]{ box-shadow:0 0 0 3px #fff, 0 0 0 5px var(--primary), rgba(13,23,56,.3) 0 18px 32px -16px; }
.tp-name{ font-size:19px; font-weight:600; line-height:1.25; }
.tp-desc{ font-size:14px; line-height:1.45; color:rgba(255,255,255,.8); }
.tp-count{ margin-top:6px; font-size:13px; font-weight:600; padding:5px 10px; border-radius:999px; background:rgba(255,255,255,.18); }
.topic-list{ margin-top:28px; scroll-margin-top:80px; animation:more-in .25s ease-out; }
.topic-list h2{ font-size:clamp(22px, 4vw, 28px); font-weight:500; margin-bottom:8px; }
.topic-list ul{ list-style:none; margin:0; padding:0; border-top:1px solid var(--border); }
.topic-list li a{ position:relative; display:block; padding:16px 36px 16px 2px; border-bottom:1px solid var(--border); color:var(--text); background:transparent; transition:background .15s; }
.topic-list li a::after{ content:"›"; position:absolute; right:8px; top:50%; transform:translateY(-50%); font-size:22px; color:var(--muted); transition:transform .2s, color .2s; }
.topic-list li a:hover{ text-decoration:none; background:rgba(245,246,255,.7); }
.topic-list li a:hover::after{ color:var(--primary); transform:translate(3px,-50%); }
.topic-list b{ display:block; font-size:17px; font-weight:600; line-height:1.35; }
.topic-list li a:hover b{ color:var(--primary); }
.topic-list li span{ display:block; margin-top:4px; font-size:15px; color:var(--text-2); line-height:1.5; }
@keyframes more-in{ from{ opacity:0; transform:translateY(-4px); } to{ opacity:1; transform:none; } }
@media (max-width:639px){
  .topics{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
  .topic{ padding:14px 14px 12px; min-height:96px; }
  .tp-name{ font-size:16px; }
  .tp-desc{ display:none; }
  .tp-count{ margin-top:auto; }
}
/* Danh sách chỉ còn tên bài, 1 dòng, dài thì "…" */
.topic-list{ margin-top:20px; }
.topic-list li a{ padding:14px 32px 14px 2px; }
.topic-list b{ font-size:16.5px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Câu nhấn trong bài */
.prose strong{ font-weight:650; color:var(--text); }
.prose .nhan{ margin:1.4em 0; padding:6px 0 6px 18px; border-left:3px solid var(--primary); font-size:21px; line-height:1.45; }
.prose .nhan strong{ font-weight:700; }
/* Nghe bài viết kèm ảnh tác giả */
.listen-row{ display:flex; align-items:center; gap:12px; margin-top:22px; }
.listen-row .listen{ margin:0; }
.author{ width:46px; height:46px; border-radius:50%; object-fit:cover; object-position:50% 18%; flex:none; box-shadow:0 0 0 2px #fff, 0 0 0 3px var(--border-accent); }
/* Ô mời xem sách & khoá học: nhẹ hơn */
.cta{ background:linear-gradient(135deg, rgba(83,58,253,.08), rgba(139,92,246,.05)) !important; color:var(--text) !important; border:1px solid var(--border-accent); }
.btn-soft{ background:#fff; color:var(--primary); border:1px solid var(--border-accent); }
.btn-soft:hover{ background:var(--primary); color:#fff; border-color:var(--primary); }
/* Đọc tiếp: danh sách gọn */
.read-next{ list-style:none; margin:0; padding:0; border-top:1px solid var(--border); }
.read-next a{ position:relative; display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:14px 30px 14px 2px; border-bottom:1px solid var(--border); color:var(--text); }
.read-next a::after{ content:"›"; position:absolute; right:6px; top:50%; transform:translateY(-50%); font-size:22px; color:var(--muted); transition:transform .2s, color .2s; }
.read-next a:hover{ text-decoration:none; background:rgba(245,246,255,.7); }
.read-next a:hover::after{ color:var(--primary); transform:translate(3px,-50%); }
.read-next b{ font-weight:500; font-size:16.5px; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.read-next a:hover b{ color:var(--primary); }
.read-next span{ flex:none; font-size:13px; color:var(--muted); }
@media (max-width:479px){ .read-next span{ display:none; } }
/* Câu tóm tắt đầu bài như một câu trích của Nam: nghiêng, có ngoặc kép */
.article .lede{ position:relative; font-style:italic; padding-left:34px; }
.article .lede::before{ content:"\201C"; position:absolute; left:0; top:-8px; font-size:52px; line-height:1; font-style:normal; font-weight:600; color:var(--primary); font-family:Georgia, 'Times New Roman', serif; }
.article h1{ margin-top:8px; }

/* Câu tóm tắt đầu bài: chữ thường, vạch đứng tím → hồng chỉ ở dòng đầu */
.article .lede{ font-style:normal !important; padding-left:18px !important; position:relative; }
.article .lede::before{ content:"" !important; position:absolute; left:0; top:7px !important; width:4px; height:22px; border-radius:4px; background:linear-gradient(180deg, #533AFD, #E0569B); font-size:0 !important; }
/* Danh sách gạch đầu dòng: ô nền chuyển màu nhạt, chấm màu nổi */
.prose ul{ list-style:none !important; border-left:0 !important; border-radius:var(--r-md) !important; padding:16px 20px !important;
  background:linear-gradient(135deg, rgba(83,58,253,.08), rgba(224,86,155,.05)) !important; border:1px solid var(--border-accent) !important; }
.prose ul li{ position:relative; padding-left:20px; margin:6px 0; }
.prose ul li::before{ content:""; position:absolute; left:2px; top:.72em; width:8px; height:8px; border-radius:50%; background:linear-gradient(135deg, #533AFD, #E0569B); }
/* Mục đánh số: số tròn nhỏ, cỡ chữ đều như đoạn thường */
.prose .so{ display:flex; gap:12px; align-items:flex-start; }
.prose .so-n{ flex:none; display:grid; place-items:center; width:28px; height:28px; margin-top:2px; border-radius:50%; font-size:14px; font-weight:600; color:#fff; background:linear-gradient(135deg, #533AFD, #8B5CF6); }
.prose .so strong{ font-weight:700; }
/* Vạch đứng tím → hồng cao bằng chữ in hoa, dùng cho câu tóm tắt và câu nhấn */
.article .lede::before{ font-size:inherit !important; height:.7em !important; top:calc((1.55em - .7em) / 2 + .02em) !important; }
.prose .nhan{ position:relative; border-left:0 !important; padding:0 0 0 18px !important; line-height:1.45; }
.prose .nhan::before{ content:""; position:absolute; left:0; top:calc((1.45em - .72em) / 2 + .02em); width:4px; height:.72em; border-radius:4px; background:linear-gradient(180deg, #533AFD, #E0569B); }
/* Chữ ký dẫn sang Facebook */
.sign a{ display:inline-flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; color:var(--text); }
.sign a:hover{ text-decoration:none; }
.sign-fb{ font-size:14px; font-weight:500; color:#1877F2; }
.sign a:hover .sign-fb{ text-decoration:underline; text-underline-offset:3px; }
/* Đọc tiếp đậm như tiêu đề trang chủ */
.more-h{ font-weight:500 !important; font-size:clamp(26px, 4vw, 32px) !important; letter-spacing:-0.015em; }

/* Chân trang: logo, tên web, tên Nam xếp giữa (không bị nút tròn hai bên che) */
.foot{ text-align:center; padding:28px 0 104px; }
.foot-in{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.foot-logo{ width:36px; height:36px; border-radius:50%; margin-bottom:6px; }
.foot-site{ font-size:14px; color:var(--text-2); font-weight:500; }
.foot-name{ font-size:13px; color:var(--muted); }

/* Chữ ký: một dòng, bấm sang Facebook */
.sign a{ display:inline-flex !important; flex-wrap:nowrap !important; align-items:center !important; gap:10px !important; color:var(--text) !important; }
.sign-fb{ display:inline-block; width:26px; height:26px; flex:none; }
.sign-fb svg{ display:block; width:100%; height:100%; }
.sign-go{ color:var(--muted); font-weight:500; transition:transform .2s; }
.sign a:hover .sign-go{ color:var(--primary); transform:translateX(3px); }
.sign a:hover .sign-fb{ text-decoration:none; }

/* Menu trên đầu trang con: đủ 4 mục kể cả màn hình nhỏ */
@media (max-width:379px){ .top-links a:not(:last-child){ display:inline-block; } .top-links a{ font-size:13.5px !important; padding:10px 5px !important; } }
.top-links a[aria-current="page"]{ color:var(--primary); font-weight:600; }

/* Dải màu chạy chung: các vòng tròn số trong một dãy nối nhau từ tím sang hồng, như 2 nút Khoá học → Mua sách */
.flow-dot, .so-n, .prose .so-n, .tp-dot, .bv-rows .tp-dot, .timeline li::before, .book-steps li::before{
  background:linear-gradient(180deg, #533AFD 0%, #8B4FD8 45%, #D8558F 100%) !important;
  background-size:100% calc(var(--n, 4) * 100%) !important;
  background-position:0 calc(var(--i, 0) / (var(--n, 4) - 1) * 100%) !important; }
.timeline li:nth-child(1), .book-steps li:nth-child(1), .bv-rows li:nth-child(1){ --i:0; }
.timeline li:nth-child(2), .book-steps li:nth-child(2), .bv-rows li:nth-child(2){ --i:1; }
.timeline li:nth-child(3), .book-steps li:nth-child(3), .bv-rows li:nth-child(3){ --i:2; }
.timeline li:nth-child(4), .book-steps li:nth-child(4), .bv-rows li:nth-child(4){ --i:3; }
.timeline li:nth-child(5), .book-steps li:nth-child(5){ --i:4; }
.timeline li:nth-child(6), .book-steps li:nth-child(6){ --i:5; }
.timeline, .bv-rows{ --n:4; }
.timeline:has(li:nth-child(6)), .book-steps{ --n:6; }

/* Chân trang: 3 biểu tượng liên hệ thay logo */
.foot-social{ list-style:none; margin:0 0 12px; padding:0; display:flex; justify-content:center; gap:18px; }
.foot-social a{ display:block; width:40px; height:40px; border-radius:50%; transition:transform .2s; }
.foot-social a:hover{ transform:translateY(-3px); }
.foot-social svg{ display:block; width:100%; height:100%; }
.foot-logo{ display:none !important; }

/* Bỏ nút quay lại trên đầu các trang con (bấm logo để về trang chủ; nút tròn góc dưới trái vẫn giữ) */
.back{ display:none !important; }
/* Tên 4 bước đăng ký to hơn ~22% */
.how-tl .tl-item > summary{ font-size:19.5px !important; font-weight:600; }
@media (max-width:379px){ .how-tl .tl-item > summary{ font-size:18px !important; } }

/* Trang danh sách bài: khoảng cách đầu trang và dòng phụ giống trang Khoá học */
.list{ padding-top:28px !important; }
.list-hint{ margin:8px 0 0; font-size:16px; color:var(--muted); }
/* 4 chủ đề: thẻ dài xếp dọc, một dải màu chạy liền (tím → hồng → cam → xanh tím than) */
.topics{ grid-template-columns:1fr !important; gap:12px !important; margin-top:24px !important; }
@media (min-width:760px){ .topics{ grid-template-columns:1fr 1fr !important; } }
.topic{ position:relative; padding:18px 44px 18px 20px !important; border:0 !important; color:#fff; box-shadow:0 16px 32px -20px rgba(60,30,140,.55); }
.topic .tp-name{ font-size:19px; font-weight:700; }
.topic .tp-desc{ font-size:14.5px; color:rgba(255,255,255,.88); }
.topic .tp-count{ margin-top:6px; }
.tp-go{ position:absolute; right:18px; top:20px; font-size:24px; line-height:1; color:rgba(255,255,255,.8); }
.topics > .topic:nth-child(1){ background:radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), linear-gradient(170deg, #4A36D8, #8A48DC) !important; }
.topics > .topic:nth-child(2){ background:radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), linear-gradient(170deg, #8A48DC, #D0539A) !important; }
.topics > .topic:nth-child(3){ background:radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), linear-gradient(170deg, #D0539A, #F47A55) !important; }
.topics > .topic:nth-child(4){ background:radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), linear-gradient(170deg, #4C78E0, #23336E) !important; }
.topics:has(.topic[aria-expanded="true"]) .topic[aria-expanded="false"]{ opacity:1 !important; }
.topic[aria-expanded="true"]{ box-shadow:0 0 0 3px #fff, 0 0 0 5px #533AFD, 0 16px 32px -20px rgba(60,30,140,.55) !important; }

/* Icon nét tím trong ô vuông bo góc */
.ico{ display:inline-grid; place-items:center; flex:none; width:40px; height:40px; border-radius:10px; border:1.5px solid #DCD6FB; background:#fff; color:#533AFD; vertical-align:middle; }
.ico svg{ width:21px; height:21px; display:block; }
h2 .ico, .store-h .ico{ margin-right:12px; position:relative; top:-2px; }

/* Tiêu đề trang danh sách giống trang Khoá học */
.list h1{ font-size:28px !important; font-weight:500 !important; letter-spacing:-0.02em !important; line-height:1.12 !important; }
@media (min-width:900px){ .list h1{ font-size:40px !important; } }
.list-hint{ margin-top:8px !important; font-size:16px !important; }
/* Thẻ chủ đề: icon + tên + mũi tên, dòng mô tả bên dưới */
a.topic{ display:flex; flex-direction:column; align-items:stretch; gap:8px; text-decoration:none !important; color:#fff !important; padding:18px 18px 18px !important; }
.tp-head{ display:flex; align-items:center; gap:12px; }
.tp-head .ico{ width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.45); color:#fff; }
.tp-head .tp-name{ flex:1; }
.tp-go{ position:static !important; display:grid; place-items:center; color:rgba(255,255,255,.85) !important; }
.tp-go svg{ width:20px; height:20px; }
.topic .tp-desc{ display:block !important; padding-left:50px; line-height:1.45; }
.topic .tp-count{ display:none !important; }
/* Trang chủ đề */
.cd-head{ display:flex; align-items:center; gap:12px; }
.cd-head .ico{ flex:none; }
.list .topic-list{ margin-top:20px; }
.list .more-h{ margin:40px 0 4px; font-size:20px; font-weight:600; }
.cd-khac b{ font-weight:500 !important; }
.list .more-h{ font-size:20px !important; font-weight:600 !important; }
/* Màu chủ đề theo số thứ tự (dùng cả ở trang chủ đề) */
.topic.tp1{ background:radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), linear-gradient(170deg, #4A36D8, #8A48DC) !important; }
.topic.tp2{ background:radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), linear-gradient(170deg, #8A48DC, #D0539A) !important; }
.topic.tp3{ background:radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), linear-gradient(170deg, #D0539A, #F47A55) !important; }
.topic.tp4{ background:radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), linear-gradient(170deg, #4C78E0, #23336E) !important; }
.topic{ display:flex; flex-direction:column; gap:8px; color:#fff; border-radius:var(--r-md); padding:18px !important; }
.cd-hero{ cursor:default; }
.cd-hero:hover{ transform:none; }
.cd-hero h1.tp-name{ font-size:24px !important; font-weight:700 !important; margin:0; color:#fff; line-height:1.25 !important; }
.cd-khac{ margin-top:12px !important; }
.cd-khac .topic{ padding:16px 18px !important; }
.cd-khac .topic{ gap:0 !important; min-height:0 !important; }
