/* Trang công khai khu Học miễn phí vẽ lại 30/11/2026 cùng ngôn ngữ hình trang đăng nhập anh đã duyệt ("Duyệt, làm tiếp").
   CHỈ áp cho trang có body.ck-free (/free/, /bat-dau, /tang-suat, /vao-khoa); 159 trang thư viện từ vựng/ngữ pháp
   dùng chung free-learning.css không có lớp này nên không đổi. Dựng trên brand.css + cong-khai.css. */

/* ---------- Dải Xanh SJE có chiều sâu (dùng chung) ---------- */
body.ck-free { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--ck-bg); font-family: var(--ck-font); }
body.ck-free > main, body.ck-free > #app { flex: 1 0 auto; }
body.ck-free:is(.free-small, .free-start)::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--ckf-band, 19rem); z-index: -1;
  background: var(--brand-motif) right 1rem top 4.25rem / 9rem auto no-repeat,
    radial-gradient(1.5px 1.5px at 14% 30%, rgb(255 255 255 / 80%), transparent), radial-gradient(1.5px 1.5px at 72% 22%, rgb(255 255 255 / 70%), transparent),
    radial-gradient(2px 2px at 58% 64%, rgb(255 226 138 / 90%), transparent),
    radial-gradient(38rem 22rem at 0% 115%, rgb(43 123 216 / 55%), transparent 70%),
    linear-gradient(170deg, #023E85 0%, #034EA2 55%, #1767C6 100%);
}
body.ck-free:is(.free-small, .free-start) .brand-top { position: relative; z-index: 2; width: min(100%, 72rem); padding-inline: 1rem; }
body.ck-free:is(.free-small, .free-start) .brand-top .brand-pill { background: #12579F; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 40%); }
body.ck-free .brand-logo { height: 2.5rem; }
body.ck-free .brand-foot { flex: 0 0 auto; margin-top: 1.5rem; font-size: .8125rem; }
body.ck-free .brand-button { border-radius: 1.125rem; transition: transform .18s var(--ck-ease), box-shadow .18s; }
body.ck-free .brand-button--yellow { box-shadow: 0 .25rem 0 #D99B00, 0 .75rem 1.25rem rgb(217 155 0 / 24%); }
body.ck-free .brand-button--yellow:hover:not(:disabled) { filter: none; transform: translateY(-1px); }
body.ck-free .brand-button--yellow:active:not(:disabled) { transform: translateY(.1875rem); box-shadow: 0 .0625rem 0 #D99B00; }

/* ---------- Vào khoá, Tặng suất: thẻ giữa màn đè mép dải ---------- */
body.ck-free.free-small { --ckf-band: 17rem; }
body.ck-free.free-small > main.brand-card {
  position: relative; z-index: 1; width: min(calc(100% - 2rem), 32rem); margin: 1.5rem auto 0; padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--ck-radius); box-shadow: var(--ck-shadow-lift), inset 0 0 0 1px var(--ck-edge); overflow: hidden; animation: ck-vao .6s .05s var(--ck-ease) both;
}
body.ck-free.free-small > main.brand-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .3125rem; background: linear-gradient(90deg, #034EA2, #1767C6 55%, #FFC20F); }
body.ck-free.free-small .free-small-pet { animation: ckf-nhun 3s ease-in-out infinite; }
@keyframes ckf-nhun { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.3rem; } }
body.ck-free.free-small h1 { color: var(--ck-ink); letter-spacing: -.02em; }
body.ck-free.free-small :is(input[type="email"], input[type="password"], input[type="text"], input[type="tel"]) {
  min-height: 3.25rem; border: 0; border-radius: 1rem; background: #F6F9FE; box-shadow: inset 0 0 0 1.5px #C9D7EA; font-size: 1rem; padding-inline: 1rem;
}
body.ck-free.free-small :is(input[type="email"], input[type="password"], input[type="text"], input[type="tel"]):focus {
  outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--ck-flow), 0 0 0 .25rem rgb(11 95 255 / 14%);
}

/* ---------- Tìm điểm bắt đầu: nội dung trong một khung trắng đè mép dải ---------- */
body.ck-free.free-start { --ckf-band: 15rem; }
body.ck-free.free-start #app { position: relative; z-index: 1; width: min(calc(100% - 2rem), 48rem); margin: 1.25rem auto 0; padding: 1.5rem 1.25rem;
  border-radius: var(--ck-radius); background: #fff; box-shadow: var(--ck-shadow-lift), inset 0 0 0 1px var(--ck-edge); animation: ck-vao .6s .05s var(--ck-ease) both; }

/* ---------- Học miễn phí (trang chính khu tự học) ---------- */
body.ck-free.free-home #main-content { width: min(100%, 72rem); }
body.ck-free.free-home .free-home-hero {
  overflow: hidden; isolation: isolate; padding: 1.75rem 1.25rem 1.5rem; border-radius: 1.75rem;
  background: var(--brand-motif) right 1rem top .75rem / 9rem auto no-repeat,
    radial-gradient(1.5px 1.5px at 14% 30%, rgb(255 255 255 / 80%), transparent), radial-gradient(2px 2px at 58% 74%, rgb(255 226 138 / 90%), transparent),
    radial-gradient(30rem 18rem at 0% 120%, rgb(43 123 216 / 60%), transparent 70%),
    linear-gradient(160deg, #023E85 0%, #034EA2 55%, #1767C6 100%);
  box-shadow: 0 2rem 4rem -2rem rgb(2 20 60 / 55%);
}
body.ck-free.free-home .free-home-hero h1 { font-size: clamp(1.75rem, 6.4vw, 2.25rem); letter-spacing: -.025em; font-weight: 800; }
body.ck-free.free-home .free-home-hero p { font-size: 1rem; }
body.ck-free.free-home .free-home-hero img { filter: drop-shadow(0 .5rem .75rem rgb(2 20 60 / 40%)); animation: ckf-nhun 3s ease-in-out infinite; }
body.ck-free.free-home .free-home-hero .free-home-quick { background: #12579F; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 35%); font-size: .8125rem; font-weight: 700; }
body.ck-free.free-home .level-grid { gap: .875rem; margin: 1.25rem 0 1rem; }
body.ck-free.free-home .level-card { padding: 1.25rem; border-radius: var(--ck-radius); box-shadow: var(--ck-shadow), inset 0 0 0 1px var(--ck-edge); transition: transform .2s var(--ck-ease), box-shadow .2s; animation: ck-vao .6s var(--ck-ease) both; }
body.ck-free.free-home .level-card + .level-card { animation-delay: .08s; }
body.ck-free.free-home .level-card:hover { transform: translateY(-3px); box-shadow: var(--ck-shadow-lift), inset 0 0 0 1px #BFD4FF; }
body.ck-free.free-home .level-card h2 { font-size: 1.25rem; font-weight: 800; color: var(--ck-ink); }
body.ck-free.free-home .level-card p { font-size: .9375rem; color: var(--ck-muted); margin-top: .375rem; }
body.ck-free.free-home .level-card > div > span:last-child { display: inline-flex; margin-top: .625rem; color: var(--ck-blue); font-weight: 800; font-size: .9375rem; }
body.ck-free.free-home .level-card .brand-icon, body.ck-free.free-home .free-home-placement .brand-icon { width: 3.5rem; height: 3.5rem; flex-basis: 3.5rem; border-radius: 1.125rem; }
body.ck-free.free-home .level-card .brand-icon svg, body.ck-free.free-home .free-home-placement .brand-icon svg { width: 2.25rem; height: 2.25rem; }
body.ck-free.free-home .free-home-placement { position: relative; padding: 1.25rem 1.25rem 1.25rem 1.5rem; border-radius: var(--ck-radius); overflow: hidden; transition: transform .2s var(--ck-ease); }
body.ck-free.free-home .free-home-placement::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .3125rem; background: var(--ck-yellow); }
body.ck-free.free-home .free-home-placement:hover { transform: translateY(-2px); }
body.ck-free.free-home .free-home-placement h2 { font-size: 1.125rem; font-weight: 800; color: var(--ck-ink); }
body.ck-free.free-home .free-home-placement p { font-size: .9375rem; color: var(--ck-navy); }

@media (min-width: 900px) {
  body.ck-free:is(.free-small, .free-start)::before { background-size: 16rem auto, auto, auto, auto, auto, auto; background-position: right 3rem top 5rem, 0 0, 0 0, 0 0, 0 0, 0 0; }
  body.ck-free.free-small { --ckf-band: 22rem; }
  body.ck-free.free-small > main.brand-card { margin-top: 3rem; padding: 2.25rem 2.25rem 2rem; width: min(calc(100% - 2rem), 34rem); }
  body.ck-free.free-start { --ckf-band: 20rem; }
  body.ck-free.free-start #app { margin-top: 2.5rem; padding: 2.25rem 2.5rem; width: min(calc(100% - 3rem), 56rem); }
  body.ck-free.free-home .free-home-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "intro art" "btn art" "quick art"; column-gap: 2rem; align-items: center;
    padding: 3rem 3.5rem; min-height: 20rem; background-size: 18rem auto, auto, auto, auto, auto; }
  body.ck-free.free-home .free-home-intro { grid-area: intro; width: auto; }
  body.ck-free.free-home .free-home-hero h1 { font-size: clamp(2.5rem, 2.4vw + .6rem, 3.75rem); }
  body.ck-free.free-home .free-home-hero p { font-size: 1.1875rem; }
  body.ck-free.free-home .free-home-hero img { grid-area: art; position: relative; top: auto; right: auto; width: 12rem; }
  body.ck-free.free-home .free-home-hero .brand-button { grid-area: btn; justify-self: start; width: auto; min-width: 16rem; margin-top: 1.5rem; }
  body.ck-free.free-home .free-home-hero .free-home-quick { grid-area: quick; justify-self: start; margin-top: .875rem; padding-inline: .875rem; }
  body.ck-free.free-home .level-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
  body.ck-free.free-home .level-card { padding: 1.75rem; min-height: 9.5rem; }
  body.ck-free.free-home .free-home-placement { padding: 1.5rem 1.75rem 1.5rem 2rem; }
}
