/* ===== Chữa bài Writing ===== */
.cb { --nv: #14285a; --rd: #c8102e; }
.cb-bc { font-size: .85rem; color: var(--ink-soft); margin: 4px 0 12px; overflow-wrap: anywhere; }
.cb-bc a { color: var(--brand); text-decoration: none; }
.cb-hero { background: linear-gradient(125deg, #14285a 0%, #23397a 60%, #c8102e 135%); color: #fff; border-radius: 22px; padding: 26px 28px; margin-bottom: 16px; box-shadow: 0 14px 34px rgba(20,40,90,.18); }
.cb-hero .tag { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 4px 12px; font-size: .8rem; }
.cb-hero h1 { color: #fff; font-family: var(--f-head); font-size: clamp(1.4rem, 4vw, 2rem); margin: 10px 0 8px; line-height: 1.25; }
.cb-hero p { margin: 0 0 14px; opacity: .93; max-width: 760px; line-height: 1.6; }
.cb-search { display: flex; gap: 8px; max-width: 560px; }
.cb-search .input { flex: 1; min-width: 0; }
.cb-search .btn { width: auto; }
.cb-filter { display: grid; gap: 8px; margin: 0 0 16px; }
.cb-filter > div { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--brand); font-weight: 600; font-size: .85rem; text-decoration: none; }
.cb-chip small { color: var(--ink-soft); font-weight: 500; }
.cb-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cb-chip.on small { color: #dbe3ff; }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.cb-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 16px; text-decoration: none; color: var(--ink); box-shadow: 0 8px 22px rgba(20,40,90,.06); transition: transform .15s, box-shadow .15s; min-width: 0; }
.cb-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200,16,46,.12); }
.cb-card b { color: var(--brand); font-size: 1.02rem; line-height: 1.35; }
.cb-card small { color: var(--ink-soft); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cb-thumb { display: grid; place-items: center; height: 150px; border-radius: 12px; overflow: hidden; background: #f4f6fb; font-size: 2.6rem; }
.cb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cb-thumb.cb-t2 { background: linear-gradient(135deg, #fff1f3, #eef2ff); }
.cb-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.cb-meta i { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eef2ff; color: var(--brand); }
.cb-meta i.cb-tag.t1 { background: #e0f2fe; color: #075985; }
.cb-meta i.cb-tag.t2 { background: #fde8ec; color: #9f1239; }
.cb-band { background: #fef3c7 !important; color: #92400e !important; font-style: normal; font-size: .8em; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.cb-empty { text-align: center; color: var(--ink-soft); padding: 30px 10px; }
.cb-pages { display: flex; gap: 6px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.cb-pages a, .cb-pages b { min-width: 36px; text-align: center; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--brand); background: #fff; }
.cb-pages b { background: var(--brand); color: #fff; }
.cb-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: #fff7ed; border: 1.5px solid #fed7aa; border-radius: 18px; padding: 16px 20px; margin: 22px 0; }
.cb-cta > div:first-child { display: grid; gap: 4px; flex: 1 1 320px; }
.cb-cta b { color: var(--brand); font-size: 1.05rem; }
.cb-cta span { color: var(--ink-soft); font-size: .92rem; }
.cb-cta-b { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-cta-b .btn { width: auto; }
/* bài viết */
.cb-art { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px clamp(16px, 4vw, 40px); box-shadow: 0 10px 28px rgba(20,40,90,.06); max-width: 900px; margin: 0 auto; }
.cb-ah h1 { font-family: var(--f-head); color: var(--brand); font-size: clamp(1.35rem, 3.6vw, 1.9rem); line-height: 1.3; margin: 10px 0 6px; overflow-wrap: anywhere; }
.cb-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: #f8fafc; border-radius: 12px; padding: 10px 14px; margin: 16px 0 4px; font-size: .9rem; }
.cb-toc a { color: var(--brand); }
.cb-sec { margin-top: 24px; }
.cb-sec h2 { font-family: var(--f-head); font-size: 1.25rem; color: var(--brand); border-left: 5px solid var(--rd); padding-left: 10px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cb-sec h2:after { display: none; }
.cb-sec h3 { color: var(--brand); font-size: 1.08rem; margin: 16px 0 6px; }
.cb-sec h4 { color: var(--rd); font-size: 1rem; margin: 14px 0 4px; }
.cb-sec p, .cb-sec li { line-height: 1.75; font-size: 1.02rem; }
.cb-sec blockquote { margin: 10px 0; padding: 10px 14px; border-left: 4px solid #93c5fd; background: #f0f7ff; border-radius: 8px; }
.cb-sec figure { margin: 14px 0 0; }
.cb-sec figure img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; margin: 0 auto; }
.cb-prompt { background: #f8fafc; border: 1px dashed #c7d2fe; border-radius: 16px; padding: 16px 18px; }
.cb-prompt p { font-style: italic; }
.cb-essay p { font-family: Lora, Georgia, serif; font-size: 1.08rem; text-align: justify; }
.cb-vocab li strong { color: var(--rd); }
.cb-sec mark { background: #fef08a; padding: 0 2px; border-radius: 3px; }
.cb-wrong { color: #b91c1c; text-decoration: line-through; text-decoration-thickness: 2px; }
.cb-right { color: #15803d; text-decoration: none; font-weight: 700; background: #dcfce7; padding: 0 3px; border-radius: 3px; }
.cb-share { margin-top: 22px; }
.cb-share .btn { width: auto; }
.cb-rel h2 { font-family: var(--f-head); color: var(--brand); font-size: 1.25rem; }
@media (max-width: 600px) { .cb-essay p { text-align: left; } .cb-hero { padding: 20px 16px; } .cb-search { flex-direction: column; } .cb-art { border-radius: 16px; } }
