/* Gaya halaman belajar.html dan kelas.html (warna & huruf sama dengan beranda) */
:root {
  --p-bg: #ffffff; --p-surface: #f2f8f9; --p-ink: #212934; --p-muted: #5a6676;
  --p-accent: #0a8ea3; --p-accent-ink: #ffffff; --p-action: #dc5514; --p-action-ink: #ffffff;
  --p-inv-bg: #043f49; --p-inv-surface: #065d6b; --p-inv-ink: #ffffff; --p-inv-muted: #c4dde1;
  --p-inv-accent: #0bb1cb; --p-inv-accent-ink: #043f49; --p-inv-action: #dc5514; --p-inv-action-ink: #ffffff;
  --ground-bg: #e2f6f9; --ground-surface: #f2f8f9; --ground-ink: #212934; --ground-muted: #5a6676; --ground-accent: #0a8ea3;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-text: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 800; --display-tracking: -0.02em; --display-tracking-xl: -0.025em; --display-stretch: 100%; --ly-scale: 1;
  --line-soft: #e3eef0;
}

/* ---- sama dengan beranda ---- */
h1, h2 { font-weight: 800; }
.card h3 { font-weight: 700; }
.btn { border-radius: 12px; font-weight: 600; }
.card { border-radius: 16px; }
.footer__lede { font-weight: 400; }
.t-label { color: var(--p-accent); font-weight: 600; }
.hl { color: #fff; padding: 0 .07em; background-image: linear-gradient(100deg, #0bb1cb, #12bfd8); background-repeat: no-repeat; background-position: 0 62%; background-size: 0% 74%; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-size .8s cubic-bezier(.6,0,.2,1); transition-delay: var(--hd, 0s); }
.hl.is-marked { background-size: 100% 74%; }
.hl-t { color: #0bb1cb; background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 3px; animation: hlLine 1.2s ease-out .3s forwards; animation-timeline: view(); animation-range: entry 20% cover 40%; }
@keyframes hlLine { to { background-size: 100% 3px; } }
.kw-on .kw { display: inline-block; animation: kwUp .75s cubic-bezier(.2,.9,.3,1.25) both; animation-delay: var(--kd, 0s); }
.kw-wait:not(.kw-on) .kw { opacity: 0; }
@keyframes kwUp { from { opacity: 0; transform: translateY(.55em) rotate(2deg); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #eef5f6; border: 1px solid #d9e8eb; }
.lang button { font: 600 13px/1 var(--font-text); letter-spacing: .02em; color: var(--p-muted); background: none; border: 0; border-radius: 999px; padding: 8px 11px; cursor: pointer; transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: #043f49; color: #fff; }
.lang button:not([aria-pressed="true"]):hover { color: var(--p-ink); }
.lang button:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
@media (max-width: 1023px) { .nav:not(.is-open) .nav__actions > .lang { display: inline-flex; } .lang button { padding: 7px 9px; } }
@media (max-width: 480px) { .nav__bar { gap: 6px; } .nav:not(.is-open) .nav__actions { gap: 6px; } .nav:not(.is-open) .nav__actions .btn { padding-inline: 10px; font-size: 14px; } .lang { padding: 2px; } .lang button { padding: 6px 6px; font-size: 12px; } }
main > .section, footer.closing { height: auto; min-height: 0; padding: var(--s-9) 0; }
@media (max-width: 639px) { main > .section, footer.closing { padding: var(--s-8) 0 calc(var(--s-8) + var(--bar)); } }
@media (prefers-reduced-motion: reduce) { .kw, .hl-t, .bj-head > * { animation: none !important; } .hl { transition: none; background-size: 100% 74%; } }

/* gambar mini (sama dengan kartu katalog) */
.mini { width: min(62%, 230px); border-radius: 10px; font: 400 12px/1.4 var(--font-mono); box-shadow: 0 16px 32px -16px rgb(0 0 0 / .45); }
.mini--sheet { background: #fbfcfd; border: 1px solid rgb(20 20 20 / .1); overflow: hidden; }
.mini-sheet__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.mini-sheet__row i { height: 22px; border-right: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; font-style: normal; display: grid; place-items: center; color: #5b6670; }
.mini-sheet__row--head i { background: #f2f5f7; }
.mini-sheet__row i.is-sum { color: var(--p-accent); outline: 2px solid var(--p-accent); outline-offset: -2px; }
.mini--term { background: #16191b; color: #e7ebee; padding: 12px 14px; display: grid; gap: 4px; }
.mini--term p { margin: 0; white-space: nowrap; overflow: hidden; }
.mini-term__p { color: #8fb8bb; }
.mini-term__ok::before { content: "\2713  "; color: #8fd0a8; }
.mini--list { background: #fbfcfd; border: 1px solid rgb(20 20 20 / .1); padding: 12px 14px; display: grid; gap: 8px; }
.mini--list p { margin: 0; display: flex; align-items: center; gap: 12px; }
.mini--list b { font-weight: 500; color: #5b6670; } .mini--list i { height: 8px; border-radius: 99px; background: #d7e0e6; }

/* ---- sub menu kategori (menempel di bawah menu atas) ---- */
.subnav { position: sticky; top: var(--nav); z-index: 20; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav button, .subnav a { flex: none; font: 600 14px/1 var(--font-text); color: var(--p-muted); background: none; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; text-decoration: none; transition: background .2s, color .2s; }
.subnav button:hover, .subnav a:hover { background: #eef5f6; color: var(--p-ink); }
.subnav [aria-pressed="true"] { background: #043f49; color: #fff; }
.subnav [aria-pressed="true"]:hover { background: #043f49; color: #fff; }

/* ---- kepala halaman belajar ---- */
.bj-head, main > .kd { height: auto !important; min-height: 0 !important; }
.bj-head { padding: var(--s-8) 0 var(--s-6); }
.bj-head > .wrap > * { animation: fadeUp .6s ease-out both; }
.bj-head .t-label { display: inline-flex; align-items: center; gap: 8px; }
.bj-head .t-label::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #0bb1cb, #0a8ea3); }
.bj-head h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -0.03em; max-width: 17ch; margin-top: var(--s-3); }
.bj-head .t-lead { max-width: 58ch; margin-top: var(--s-4); color: var(--p-muted); }
.cari { position: relative; margin-top: var(--s-6); }
.cari input { width: 100%; height: 58px; border-radius: 999px; border: 1px solid #d7e6e9; background: #fff; padding: 0 24px 0 54px; font: 500 16px/1 var(--font-text); color: var(--p-ink); box-shadow: 0 8px 24px -18px rgb(4 63 73 / .35); transition: border-color .2s, box-shadow .2s; }
.cari input:focus { outline: none; border-color: #0bb1cb; box-shadow: 0 0 0 4px rgb(11 177 203 / .15); }
.cari::before { content: ""; position: absolute; left: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--p-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / contain no-repeat; }
.note { display: flex; gap: 12px; align-items: center; margin-top: var(--s-4); padding: 14px 18px; border-radius: 14px; background: #f1fbe1; border: 1px solid #d9efb4; font-size: 15px; color: #2f4a14; }
.note::before { content: "\2713"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #d6fd91; color: #2f4a14; font-weight: 800; font-size: 13px; }
.banner { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; margin-top: var(--s-3); padding: 18px 22px; border-radius: 16px; background: #f8fdee; border: 1px solid #e2f2c6; color: var(--p-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.banner:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgb(4 63 73 / .45); }
.banner__ic { width: 44px; height: 44px; border-radius: 12px; background: #043f49; position: relative; }
.banner__ic::after { content: ""; position: absolute; inset: 12px; border: 2px solid #d6fd91; border-radius: 4px; }
.banner b { display: block; font-weight: 700; } .banner small { color: var(--p-muted); font-size: 14px; }
.banner__go { font-size: 22px; color: var(--p-muted); }

/* ---- urutan belajar & file latihan ---- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 899px) { .duo { grid-template-columns: 1fr; } }
.box { background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; padding: 28px; box-shadow: 0 8px 24px -18px rgb(4 63 73 / .3); }
.box h2 { font-size: clamp(24px, 2.4vw, 30px); }
.box > p { color: var(--p-muted); margin-top: 6px; }
.urutan, .files { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: 10px; }
.urutan__row { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; color: var(--p-ink); text-decoration: none; transition: background .2s; }
.urutan__row:hover { background: #f2f8f9; }
.urutan__n { width: 36px; height: 36px; border-radius: 50%; background: #043f49; color: #fff; display: grid; place-items: center; font-weight: 800; }
.urutan__row b { display: block; font-weight: 700; } .urutan__row small { color: var(--p-muted); font-size: 14px; }
.urutan__go { font-size: 22px; color: var(--p-muted); }
.file__row { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: #f2f8f9; border: 1px solid #e0eef1; }
.file__ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 700 11px/1 var(--font-mono); color: #fff; background: #1f7a4d; }
.file__ic--mp3 { background: #7a3a18; } .file__ic--pdf { background: #b8322a; }
.file__tx b { display: block; font-weight: 700; line-height: 1.3; } .file__tx small { color: var(--p-muted); font-size: 14px; }
.file__btn.is-off { opacity: .6; pointer-events: none; }
@media (max-width: 520px) { .file__row { grid-template-columns: 40px 1fr; } .file__ic { width: 40px; height: 40px; } .file__btn { grid-column: 2; justify-self: start; } }

/* ---- ajakan ke membership ---- */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: var(--s-5); align-items: center; padding: 28px 32px; border-radius: 20px; background: #043f49; color: #fff; }
.cta-band h2 { font-size: clamp(22px, 2.2vw, 28px); color: #fff; }
.cta-band p { color: var(--p-inv-muted); margin-top: 6px; }
@media (max-width: 699px) { .cta-band { grid-template-columns: 1fr; } }

/* ---- halaman satu kelas ---- */
.crumb { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--p-muted); margin-bottom: var(--s-4); }
.crumb a { color: var(--p-accent); font-weight: 600; text-decoration: none; } .crumb a:hover { text-decoration: underline; }
.crumb span:last-child { color: var(--p-ink); font-weight: 600; }
.kd-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-7); align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line-soft); box-shadow: 0 10px 30px -22px rgb(4 63 73 / .4); animation: fadeUp .6s ease-out both; }
.kls__pic--big { height: 100%; min-height: 320px; border-radius: 14px; }
.kls__pic--big .kls__tag b { font-size: 40px; }
.kls__pic--big .mini { width: min(58%, 280px); }
.kd-hero__tx { display: grid; gap: var(--s-3); justify-items: start; padding: 12px 18px 12px 0; }
.kd-hero__tx h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -0.025em; }
.kd-hero__tx .t-lead { color: var(--p-muted); }
.pill-free { font: 600 13px/1 var(--font-text); color: #2f4a14; background: #f1fbe1; border: 1px solid #d9efb4; border-radius: 999px; padding: 8px 12px; }
@media (max-width: 899px) { .kd-hero { grid-template-columns: 1fr; gap: var(--s-4); } .kls__pic--big { min-height: 220px; } .kd-hero__tx { padding: 0 6px 6px; } }
.kd-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-6); margin-top: var(--s-7); align-items: start; }
@media (max-width: 1023px) { .kd-body { grid-template-columns: 1fr; } }
.kd-mods { display: grid; gap: var(--s-6); }
.mod { scroll-margin-top: calc(var(--nav) + 24px); }
.mod__head { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; margin-bottom: var(--s-3); }
.mod__ic { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #0bb1cb, #0a8ea3); position: relative; }
.mod__ic::after { content: ""; position: absolute; inset: 11px; border: 2px solid #fff; border-radius: 3px; border-top-width: 5px; }
.mod__head h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.mod__desc { color: var(--p-muted); margin-top: 4px; }
.les-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.les { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line-soft); color: var(--p-ink); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
a.les:hover { transform: translateY(-2px); border-color: #0bb1cb; box-shadow: 0 12px 28px -20px rgb(4 63 73 / .45); }
.les__n { width: 32px; height: 32px; border-radius: 50%; background: #eef5f6; color: var(--p-muted); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.les__tx b { display: block; font-weight: 600; line-height: 1.35; } .les__tx small { color: var(--p-muted); font-size: 13px; }
.les__tag { font: 700 11px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: #7a3a18; background: #fdeee6; border-radius: 6px; padding: 5px 8px; }
.les__soon { font-size: 13px; color: var(--p-muted); white-space: nowrap; }
.les__go { font-size: 22px; color: var(--p-accent); }
@media (max-width: 560px) { .les { grid-template-columns: 32px 1fr; } .les__tag, .les__soon, .les__go { grid-column: 2; justify-self: start; } }
.kd-side { position: sticky; top: calc(var(--nav) + 24px); }
.kd-side__card { display: grid; gap: var(--s-3); justify-items: start; padding: 28px; border-radius: 20px; background: #043f49; color: #fff; position: relative; overflow: hidden; }
.kd-side__card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgb(11 177 203 / .45), transparent 70%); }
.kd-side__card .t-label { color: #d6fd91; }
.kd-side__card h3 { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.2; }
.kd-side__card p { color: var(--p-inv-muted); }
.kd-side__link { color: #fff; font-weight: 600; text-decoration: none; opacity: .85; } .kd-side__link:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 1023px) { .kd-side { position: static; } }
.les__n.is-done { background: var(--p-accent); color: #fff; }
.mod__badge { display: inline-block; margin-left: 6px; font: 700 10.5px/1 var(--font-text); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: #f1fbe1; color: #2f4a14; vertical-align: 1px; }
.mod__badge--member { background: #043f49; color: #d6fd91; }
.mod--member .les.is-off { opacity: .75; }
.kd-side { display: grid; gap: 16px; align-content: start; }
.kd-file { border: 1px solid var(--line-soft); border-radius: 20px; padding: 20px; background: #fff; display: grid; gap: 10px; }
.kd-file > p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--p-muted); }
.kd-file .file__row { grid-template-columns: 44px 1fr; }
.kd-file .file__ic { width: 44px; height: 44px; font-size: 10px; }
.kd-file .file__btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
.kd-file--syarat { background: #fff4ee; border-color: #f6cdb6; }
.kd-file--syarat > p:last-child { color: var(--p-ink); }
