/* v4.11 — Học liệu ngoài phiếu: truyện đọc cùng con, thẻ học in, lịch học tuần in. */
.hl{--hl-g:#13a86b;--hl-ink:#173b32;--hl-mut:#5f766d;--hl-ln:#dcebe4;--hl-soft:#f3faf6}
.hl-wrap{max-width:1120px;margin:0 auto;padding:0 18px}
.hl-hero{padding:26px 0 8px}
.hl-hero h1{margin:6px 0 6px;font-size:clamp(26px,4vw,38px);line-height:1.15;color:var(--hl-ink)}
.hl-hero p{margin:0;color:var(--hl-mut);font-size:17px;max-width:760px}
.hl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;margin:20px 0 34px}
.hl-card{display:flex;flex-direction:column;gap:8px;background:#fff;border:1.5px solid var(--hl-ln);border-radius:20px;padding:18px;text-decoration:none;color:var(--hl-ink);transition:.15s}
.hl-card:hover{border-color:#9fd8bf;box-shadow:0 8px 22px rgba(19,168,107,.12);transform:translateY(-2px)}
.hl-card img{width:56px;height:56px}
.hl-card h3{margin:2px 0 0;font-size:19px}
.hl-card p{margin:0;color:var(--hl-mut);font-size:15px;line-height:1.5}
.hl-card small{color:var(--hl-g);font-weight:800}
.hl-card .hl-more{margin-top:auto;font-weight:800;color:var(--hl-g)}
.hl-h2{font-size:22px;margin:8px 0 0;color:var(--hl-ink)}
.hl-note{background:var(--hl-soft);border:1.5px solid var(--hl-ln);border-radius:16px;padding:14px 16px;color:var(--hl-mut);font-size:15px;margin:0 0 30px}
.hl-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;background:var(--hl-g);color:#fff;font:inherit;font-weight:800;font-size:16px;padding:11px 20px;cursor:pointer;text-decoration:none}
.hl-btn.ghost{background:#fff;color:#2f6655;border:1.5px solid var(--hl-ln)}
.hl-btn:disabled{opacity:.45;cursor:default}
.hl-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}

/* ---- truyện ---- */
.hl-story{background:#fff;border:1.5px solid var(--hl-ln);border-radius:24px;padding:20px;margin:16px 0 26px}
.hl-page{display:none;flex-direction:column;align-items:center;gap:16px;min-height:340px;justify-content:center;text-align:center}
.hl-page.on{display:flex}
.hl-pics{display:flex;gap:18px;justify-content:center;flex-wrap:wrap}
.hl-pics img{width:clamp(96px,18vw,150px);height:clamp(96px,18vw,150px)}
.hl-text{font-size:clamp(20px,2.6vw,27px);line-height:1.55;font-weight:700;color:var(--hl-ink);max-width:760px;margin:0}
.hl-pno{color:var(--hl-mut);font-weight:800;font-size:14px}
.hl-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;flex-wrap:wrap}
.hl-dots{display:flex;gap:6px}
.hl-dots i{width:10px;height:10px;border-radius:50%;background:#d6e6df}
.hl-dots i.on{background:var(--hl-g)}
.hl-quiz{display:none}
.hl-quiz.on{display:block}
.hl-q{border:1.5px solid var(--hl-ln);border-radius:18px;padding:14px 16px;margin:0 0 12px}
.hl-q p{margin:0 0 10px;font-weight:800;font-size:19px;color:var(--hl-ink)}
.hl-q .hl-opts{display:flex;flex-wrap:wrap;gap:10px}
.hl-q button{border:1.5px solid #b9d6c9;background:#fff;border-radius:999px;padding:9px 16px;font:inherit;font-weight:800;font-size:17px;cursor:pointer;color:var(--hl-ink)}
.hl-q button.ok{background:#dff5ea;border-color:var(--hl-g);color:#0b6b43}
.hl-q button.no{background:#ffe8e8;border-color:#e5393f;color:#a51d22}
.hl-lesson{background:#fff7e0;border-radius:16px;padding:12px 16px;font-weight:700;color:#7a5a00;margin:6px 0 0}
.hl-list .hl-card img{width:72px;height:72px}

/* ---- thẻ học & lịch tuần: khung xem trước dạng A4 ---- */
.hl-form{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;background:#fff;border:1.5px solid var(--hl-ln);border-radius:20px;padding:16px;margin:16px 0}
.hl-form label{display:flex;flex-direction:column;gap:5px;font-weight:800;font-size:14px;color:var(--hl-mut)}
.hl-form select,.hl-form input{border:1.5px solid #d5e2dc;border-radius:12px;padding:9px 12px;font:inherit;font-size:16px;color:var(--hl-ink);background:#fff;min-width:150px}
.hl-sheetwrap{overflow-x:auto;padding:10px 0 30px}
.hl-a4{width:210mm;min-height:297mm;background:#fff;margin:0 auto 16px;box-shadow:0 4px 24px rgba(0,0,0,.08);padding:10mm;box-sizing:border-box;font-family:"BHH Nunito",ui-rounded,system-ui,sans-serif;color:#173b32}
.hl-a4.land{width:297mm;min-height:210mm}
.hl-cards{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:88mm;gap:0;border-top:.3mm dashed #9aa9a3;border-left:.3mm dashed #9aa9a3}
.hl-fc{border-right:.3mm dashed #9aa9a3;border-bottom:.3mm dashed #9aa9a3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3mm;padding:4mm;text-align:center;position:relative}
.hl-fc .big{font-size:30mm;line-height:1;font-weight:900}
.hl-fc .big.sm{font-size:19mm}
.hl-fc .big.xs{font-size:14mm}
.hl-fc img{width:26mm;height:26mm}
.hl-fc .w{font-size:7mm;font-weight:800}
.hl-fc .dots{display:grid;grid-template-columns:repeat(5,5mm);gap:1.6mm}
.hl-fc .dots i{width:5mm;height:5mm;border-radius:50%;background:#ffc52b;border:.3mm solid #c99a00}
.hl-fc .tag{position:absolute;top:2.5mm;left:3mm;font-size:2.8mm;font-weight:800;color:#8aa79c}
.hl-fc.c0 .big{color:#e5393f}.hl-fc.c1 .big{color:#1e88e5}.hl-fc.c2 .big{color:#13a86b}.hl-fc.c3 .big{color:#8e24aa}.hl-fc.c4 .big{color:#fb8c00}
.hl-a4 h2{margin:0 0 2mm;font-size:7mm}
.hl-a4 .sub{margin:0 0 5mm;color:#5f766d;font-size:3.6mm}
.hl-wk{width:100%;border-collapse:collapse;font-size:4mm}
.hl-wk th,.hl-wk td{border:.3mm solid #cfe0d8;padding:2mm;vertical-align:middle}
.hl-wk tbody td{height:22mm}
.hl-wk th{background:#f3faf6;font-size:3.4mm}
.hl-wk td.d{font-weight:900;width:24mm;background:#fbfdfc}
.hl-wk td.d small{display:block;font-weight:700;color:#5f766d}
.hl-wk .act{display:flex;align-items:center;gap:1.6mm;line-height:1.25}
.hl-wk .act img{width:10mm;height:10mm;flex:none}
.hl-wk .star{font-size:7mm;color:#c99a00;text-align:center;width:24mm;white-space:nowrap}
.hl-foot{display:flex;justify-content:space-between;margin-top:5mm;font-size:3.2mm;color:#5f766d}
.hl-goal{display:grid;grid-template-columns:1fr 1fr;gap:5mm;margin-top:5mm}
.hl-goal div{border:.3mm solid #cfe0d8;border-radius:3mm;padding:3mm;min-height:26mm;font-size:3.8mm}
@media print{
  @page{size:A4;margin:0}
  body *{visibility:hidden}
  .hl-print,.hl-print *{visibility:visible}
  .hl-print{position:absolute;left:0;top:0;width:100%}
  .hl-a4{box-shadow:none;margin:0;page-break-after:always}
  .hl-a4.land{transform:rotate(0)}
  .k-fab2,.k-bnav{display:none!important}
}

/* ---- v4.11.4: trang Học liệu – canh lề theo khung chung của site, lưới cân đối ---- */
.hl-wrap{max-width:var(--k-wrap,1180px);padding:0 20px}
.hl-home{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:24px 0 28px}
.hl-home .hl-card{padding:20px;gap:10px;border-radius:22px;min-height:100%}
.hl-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:4px}
.hl-ic{width:60px;height:60px;border-radius:18px;display:grid;place-items:center}
.hl-home .hl-card img{width:38px;height:38px}
.hl-tag{font-size:12px;font-weight:850;border-radius:999px;padding:4px 10px;white-space:nowrap}
.hl-t-g .hl-ic{background:#e3f6ec}.hl-t-g .hl-tag{background:#e3f6ec;color:#0d6b47}
.hl-t-y .hl-ic{background:#fff3d4}.hl-t-y .hl-tag{background:#fff3d4;color:#8a5a00}
.hl-t-b .hl-ic{background:#e6f2fd}.hl-t-b .hl-tag{background:#e6f2fd;color:#1d5f99}
.hl-t-o .hl-ic{background:#ffece0}.hl-t-o .hl-tag{background:#ffece0;color:#a2470f}
.hl-home .hl-card h3{font-size:18px;line-height:1.3;margin:0}
.hl-home .hl-card p{font-size:14.5px;line-height:1.55}
.hl-home .hl-more{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:12px;border-top:1px solid #eef4f1;font-size:15px}
.hl-home .hl-more i{font-style:normal;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef8f3;transition:.15s}
.hl-home .hl-card:hover .hl-more i{background:var(--hl-g);color:#fff}
.hl-skill{display:flex;align-items:center;justify-content:space-between;gap:14px 20px;flex-wrap:wrap;background:var(--hl-soft);border:1.5px solid var(--hl-ln);border-radius:20px;padding:18px 20px;margin:0 0 34px}
.hl-skill>div{display:flex;flex-direction:column;gap:2px}
.hl-skill b{font-size:17px;color:var(--hl-ink)}.hl-skill span{color:var(--hl-mut);font-size:14.5px}
.hl-skill nav{display:flex;gap:8px;flex-wrap:wrap}
.hl-skill .hl-btn{font-size:14.5px;padding:9px 16px}
.hl-skill .hl-btn em{font-style:normal;font-size:11px;font-weight:900;background:#ff9f18;color:#fff;border-radius:999px;padding:1px 7px;margin-left:2px}
@media (max-width:1020px){.hl-home{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.hl-home{grid-template-columns:1fr;gap:12px}.hl-home .hl-card{padding:16px}.hl-skill nav{width:100%}.hl-skill .hl-btn{flex:1 1 auto;justify-content:center}}
