/* ส่วนหัวแบบโฟกัสของหน้าข้างใน (หาติวเตอร์ วางแผนการเรียน แบบทดสอบ) ให้คลีนแบบจอแรกของหน้าแรก
   จอแรกสูงเต็มจอ มีหัวข้อกับสิ่งที่ให้ลงมือทำอย่างเดียว เนื้อหาส่วนถัดไปเป็นแผ่นมุมมนเลื่อนขึ้นมาทับ
   ใช้คู่กับ assets/js/hero-focus.js · โหลดหลัง common.css (css_after) · ทุกกฎอยู่ใต้ .hfx ที่ .hs ของหน้า
   หน้าแรกมีชุดของตัวเอง (home-focus.css) เพราะมีลูกเล่นมากกว่า ชุดนี้เป็นชุดเบา: ขยับและจางเท่านั้น ไม่เบลอ ไม่บิดแผ่น */

/* ---------- จอแรก ---------- */
.hfx .hfx-hero{position:relative;min-height:calc(100svh + 4px);display:flex;flex-direction:column;justify-content:center;padding-bottom:0}
/* เนื้อหาพอดีจอ (hero-focus.js ใส่ is-pin): ค้างกับจอ ให้ส่วนถัดไปเลื่อนขึ้นมาทับ · เนื้อหาสูงเกินจอ: เลื่อนตามปกติ ไม่ค้าง เพื่อไม่ให้ส่วนล่างถูกตัด */
.hfx .hfx-hero.is-pin{position:sticky;top:0;z-index:0;height:calc(100svh + 4px)}
.hfx .hfx-hero.is-pin .hfx-in{opacity:calc(1 - var(--hp,0) * 1.5);translate:0 calc(var(--hp,0) * -32px)}
.hfx-covered .hfx .hfx-hero.is-pin{visibility:hidden}
.hfx .hfx-in{position:relative;z-index:2;width:100%;max-width:1180px;margin:0 auto;padding:128px 24px 104px;display:flex;flex-direction:column;align-items:center;text-align:center}
.hfx .hfx-in .crumb{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap} /* เส้นทางหน้ายังอยู่ให้โปรแกรมอ่านจอและ Google อ่าน แต่ไม่แสดงในจอแรก */
.hfx .hfx-in h1{margin:0;font-size:clamp(40px,6.2vh,64px);line-height:1.22;font-weight:500;letter-spacing:-.015em;text-wrap:balance}
.hfx .hfx-in .sj-skill{margin:0 0 14px}

/* ชิ้นในจอแรกค่อยๆ ขึ้นมาตอนเปิดหน้า */
@keyframes hfx-in{0%{opacity:0;translate:0 16px}100%{opacity:1;translate:0 0}}
.hfx .hfx-in>*{animation:hfx-in .56s cubic-bezier(.22,1,.36,1) backwards}
.hfx .hfx-in>:nth-child(n+3){animation-delay:.1s}
.hfx .hfx-in>:nth-child(n+5){animation-delay:.18s}

/* ---------- ตัวบอกให้เลื่อนลง ---------- */
@keyframes hfx-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.hfx-cue{position:absolute;left:50%;bottom:22px;z-index:4;transform:translateX(-50%);display:inline-flex;min-height:48px;padding:6px 16px;border:0;border-radius:999px;background:transparent;color:#FFFFFF;font-family:inherit;font-size:14px;white-space:nowrap;cursor:pointer;opacity:calc(.9 - var(--hp,0) * 4)}
.hfx-cue span{display:inline-flex;flex-direction:column;align-items:center;gap:2px;animation:hfx-float 2.2s ease-in-out infinite}
.hfx-cue svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hfx-cue:focus-visible{outline:2px solid #FFE055;outline-offset:3px}
.hfx .hfx-hero:not(.is-pin) .hfx-cue{display:none}

/* ---------- เนื้อหาส่วนถัดไป: แผ่นมุมมนทับจอแรก ---------- */
.hfx .hfx-hero~*{position:relative;z-index:1}
.hfx .hfx-rest{background:#FFFFFF;border-radius:32px 32px 0 0;margin-top:0}
/* เงาของแผ่น: วาดด้วยชิ้นแยกที่ขอบบนและตัดให้เห็นเฉพาะส่วนเหนือขอบ (เดิมใส่เงาที่ทั้งแผ่น เงาจึงฟุ้งออกใต้ขอบล่างเป็นแถบจางทับส่วนถัดไป) */
.hfx .hfx-rest::before{content:"";position:absolute;left:0;right:0;top:0;height:64px;border-radius:32px 32px 0 0;box-shadow:0 -16px 44px rgba(124,20,10,.14);clip-path:inset(-80px 0 100% 0);pointer-events:none}
.hfx .hfx-hero:not(.is-pin)+.hfx-rest,.hfx .hfx-hero:not(.is-pin)+[hidden]+.hfx-rest{margin-top:-32px}
.hfx .hfx-note{margin:0 auto;padding:22px 16px 0;max-width:1180px;text-align:center;font-size:15px;color:#524E4C}
.hfx .hfx-note b{font-weight:600;color:#1F1E1D}

/* ---------- รูปติวเตอร์ลอยหลังกล่องพิมพ์ (หน้าหาติวเตอร์) : ชุดเดียวกับหน้าแรก ---------- */
.hfx-cor{position:absolute;inset:0;z-index:1;pointer-events:none;perspective:1100px;perspective-origin:50% var(--hf-cy,55%);opacity:calc(1 - var(--hp,0) * 1.6)}
.hfx-cor-w{position:absolute;inset:0;transform-style:preserve-3d}
.hfx-cor-p{position:absolute;left:50%;top:var(--hf-cy,55%);margin:0;border-radius:20px;overflow:hidden;background:#FFD9C7;backface-visibility:hidden;will-change:transform,opacity;opacity:0}
.hfx-cor-p img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.hfx-fog{position:absolute;z-index:1;left:50%;top:var(--hf-cy,55%);width:calc(var(--hf-bw,740px) + 280px);height:calc(var(--hf-bh,240px) + 160px);transform:translate(-50%,-50%);pointer-events:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);-webkit-mask-image:radial-gradient(ellipse closest-side,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse closest-side,#000 62%,transparent 100%)}
@keyframes hfx-fly-l{0%{opacity:0;transform:translate(-50%,-50%) translate(calc(var(--fx0,30px) * -1),var(--fy0,150px)) rotate(-3deg) scale(.72)}18%,84%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translate(calc(var(--fx1,240px) * -1),var(--fy1,380px)) rotate(-12deg) scale(1.12)}}
@keyframes hfx-fly-r{0%{opacity:0;transform:translate(-50%,-50%) translate(var(--fx0,30px),var(--fy0,150px)) rotate(3deg) scale(.72)}18%,84%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translate(var(--fx1,240px),var(--fy1,380px)) rotate(12deg) scale(1.12)}}
@media (max-width:1099px){
  .hfx-fog{display:none}
  .hfx-cor{perspective:none}
  .hfx-cor-p{border-radius:14px;animation:hfx-fly-l 30s linear infinite;animation-delay:calc(var(--i,0) * -5s)}
  .hfx-cor-p:nth-child(even){animation-name:hfx-fly-r}
  .hfx-cor-p:nth-child(n+7){display:none}
  .hfx-covered .hfx-cor-p{animation-play-state:paused}
  .hfx .hfx-hero:not(.is-pin) .hfx-cor{display:none}
}

/* ---------- หน้าหาติวเตอร์ ---------- */
.hfx .hfx-in .sj-sub{margin:16px auto 0;max-width:640px;font-size:18px;line-height:1.6;text-align:center}
.hfx .hfx-in .ask{width:740px;max-width:100%;margin-top:76px;text-align:left}
.hfx .hfx-in .ask-facts{margin:16px 0 0;font-size:15px;text-align:center;opacity:.92}

/* ---------- หน้าวางแผนการเรียน ---------- */
.hfx .hfx-in .pl-ask{width:760px;max-width:100%;margin-top:28px;text-align:left}

/* ---------- หน้าแบบทดสอบ: หัวข้อซ้าย การ์ดเลือกวิชาและชั้นขวา ---------- */
.hfx .hfx-in.is-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px);gap:56px;align-items:center;text-align:left}
.hfx .hfx-in.is-split .tx-pick{margin:0}
.hfx .hfx-in.is-split .sj-sub{margin:18px 0 0;max-width:520px;text-align:left}

@media (max-width:860px){
  .hfx .hfx-in{padding:104px 16px 92px}
  .hfx .hfx-in h1{font-size:32px}
  .hfx .hfx-in .sj-sub{font-size:16px}
  .hfx .hfx-in .ask-facts{display:block;font-size:14px;margin-top:12px}
  .hfx .hfx-hero .hfx-in:has(.ask-facts){padding-top:92px}
  .hfx .hfx-in:has(.ask-facts) .ask{margin-top:60px!important}
  .hfx .hfx-in .ask{margin-top:72px!important}
  .hfx .hfx-in.is-split{grid-template-columns:minmax(0,1fr);gap:28px;text-align:center;justify-items:center}
  .hfx .hfx-in.is-split .sj-sub{margin:14px auto 0;text-align:center}
  .hfx .hfx-in.is-split:has(.tx-peek){gap:72px} /* เว้นที่ให้น้องสกิลที่โผล่เหนือการ์ด ไม่ทับข้อความ */
  .hfx .hfx-rest{border-radius:24px 24px 0 0}
  .hfx .hfx-rest::before{border-radius:24px 24px 0 0;box-shadow:0 -8px 24px rgba(124,20,10,.12)}
  .hfx .hfx-hero:not(.is-pin)+.hfx-rest,.hfx .hfx-hero:not(.is-pin)+[hidden]+.hfx-rest{margin-top:-24px}
  .hfx .hfx-hero:not(.is-pin) .hfx-in{padding-bottom:64px}
}
@media (max-height:700px){.hfx-cue{display:none}}
@media (prefers-reduced-motion:reduce){
  .hfx .hfx-hero.is-pin .hfx-in{opacity:1;translate:none}
  .hfx .hfx-in>*,.hfx-cue span,.hfx-cor-p{animation:none}
}

/* ================= ส่วนเนื้อหาใต้จอแรก: ลูกเล่นชุดเดียวกับหน้าแรก ใช้ซ้ำได้ทุกหน้าที่ใส่ .hfx =================
   .hfx-band  = แถบส้มมุมมน พื้นหลังเคลื่อนไหว (ใส่ <div class="hfx-band-fx" data-hs-mesh> เป็นลูกตัวแรก)
   .hfx-glass = ส่วนพื้นสว่างมีแสงส้มหายใจ ลายตาราง คำตัวใหญ่ด้านหลัง (ใส่ <div class="hfx-glass-fx">) การ์ดข้างในเป็นแบบกระจก
   [data-hfx-mag] = ลูกของกล่องนี้เอียงตามเมาส์ (hero-focus.js) · การเคลื่อนไหวตามการเลื่อนอยู่ท้ายไฟล์ */
.hfx .hfx-band{position:relative;overflow:clip;max-width:none;margin:120px 12px 0;padding:96px 24px;border-radius:44px;background:linear-gradient(321deg,#FC4013 0%,#FF5B10 100%);color:#FFFFFF;text-align:left}
.hfx-band-fx{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.hfx-band-fx .d1-glow{position:absolute;border-radius:50%}
.hfx .hfx-band>:not(.hfx-band-fx){position:relative;z-index:2}
.hfx .hfx-band .pick{background:transparent;padding:0;border-radius:0;gap:64px}
.hfx .hfx-band .eyebrow,.hfx .hfx-band .h2{color:#FFFFFF}
.hfx .hfx-band-lead{margin:16px 0 0;font-size:17px;line-height:1.6;color:rgba(255,255,255,.92)}
.hfx .hfx-band .btn-w{background:#FFFFFF;color:#1F1E1D}
.hfx .hfx-band .btn-w:hover{background:#FFF3ED;color:#1F1E1D}
.hfx .hfx-band .btn-g{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.5);color:#FFFFFF}
.hfx .hfx-band .btn-g:hover{background:rgba(255,255,255,.26);color:#FFFFFF}
/* การ์ดขั้นตอนบนแถบส้ม: เยื้องเป็นขั้นบันได */
.hfx .hfx-band .pick-steps{gap:16px;perspective:900px}
.hfx .hfx-band .pick-steps li{padding:22px 24px;border-radius:26px;box-shadow:0 18px 40px -18px rgba(124,20,10,.45);color:#1F1E1D}
.hfx .hfx-band .pick-steps li:nth-child(2){margin-left:28px}
.hfx .hfx-band .pick-steps li:nth-child(3){margin-left:56px}
.hfx .hfx-band .pick-steps .n{width:44px;height:44px}

.hfx .hfx-glass{position:relative;overflow:clip;max-width:none;margin-top:0;padding:150px 16px 130px;background:linear-gradient(180deg,#FFFFFF 0%,#FFF6EF 60%,#FFFFFF 100%)}
.hfx-glass-fx{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.hfx .hfx-glass>:not(.hfx-glass-fx){position:relative;z-index:2}
@keyframes hfx-breathe{0%{transform:translate(-50%,-50%) scale(1);opacity:.6}100%{transform:translate(-50%,-50%) scale(1.12);opacity:1}}
.hfx-aur{position:absolute;left:50%;top:50%;width:104vw;height:84vh;border-radius:50%;background:radial-gradient(closest-side,rgba(252,64,19,.17) 0%,rgba(255,150,40,.14) 38%,rgba(255,176,32,.05) 72%,rgba(255,176,32,0) 100%);animation:hfx-breathe 8s ease-in-out infinite alternate}
.hfx-grid{position:absolute;inset:0;background-size:60px 60px;background-image:linear-gradient(to right,rgba(252,64,19,.07) 1px,transparent 1px),linear-gradient(to bottom,rgba(252,64,19,.07) 1px,transparent 1px);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 30%,#000 70%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 30%,#000 70%,transparent)}
.hfx-giant{position:absolute;left:50%;bottom:-3vw;margin-left:-50vw;width:100vw;text-align:center;white-space:nowrap;user-select:none;font-size:21vw;line-height:.8;font-weight:700;letter-spacing:-.04em;color:transparent;-webkit-text-stroke:1px rgba(252,64,19,.16);background:linear-gradient(180deg,rgba(252,64,19,.16) 0%,rgba(252,64,19,0) 62%);-webkit-background-clip:text;background-clip:text}
.hfx .hfx-glass .crit4{perspective:900px}
.hfx .hfx-glass .crit4 li{border-color:rgba(252,64,19,.14);background:linear-gradient(145deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.82) 100%);box-shadow:0 14px 34px -16px rgba(124,20,10,.22),inset 0 1px 1px rgba(255,255,255,.9)}
.hfx .hfx-glass .crit4 .ci{background:#FC4013;color:#FFFFFF}

/* การ์ดเอียงตามเมาส์ (ชุดเดียวกับการ์ดวิชาของหน้าแรก) */
/* เฉพาะเครื่องที่มีเมาส์: บนจอสัมผัสไม่ตั้ง transform ที่การ์ด เพราะแถวปัดซ้ายขวาใช้ transform ใบ้ว่าเลื่อนได้อยู่แล้ว จะชนกัน */
@media (hover:hover) and (pointer:fine){
  .hfx [data-hfx-mag]>*{transform:translate(var(--mx,0px),var(--my,0px)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(var(--ms,1));transition:transform 1s cubic-bezier(.34,1.56,.64,1),border-color .3s,box-shadow .3s}
  .hfx [data-hfx-mag]>.is-mag{transition:transform .35s cubic-bezier(.22,1,.36,1),border-color .3s,box-shadow .3s}
}
.hfx .hfx-glass .crit4 li.is-mag{border-color:rgba(252,64,19,.4);box-shadow:0 22px 44px -16px rgba(124,20,10,.3),inset 0 1px 1px rgba(255,255,255,.9)}

.hfx .hfx-cta{overflow:clip}

/* ---------- ขยับตามการเลื่อน (เบราว์เซอร์ที่รองรับ) ---------- */
@keyframes hfx-rise{0%{opacity:0;translate:0 36px}100%{opacity:1;translate:0 0}}
@keyframes hfx-card{0%{opacity:0;translate:0 var(--fx-y,110px);rotate:var(--fx-r,-4deg);scale:.9}45%{opacity:1}100%{opacity:1;translate:0 0;rotate:0deg;scale:1}}
@keyframes hfx-stand{0%{transform:perspective(1200px) translate3d(0,110px,0) rotateX(24deg) scale(.82)}100%{transform:none}}
@keyframes hfx-giant{0%{translate:0 10vh;scale:.8;opacity:0}100%{translate:0 0;scale:1;opacity:1}}
@supports (animation-timeline:view()){
@media (prefers-reduced-motion:no-preference){
  .hfx .sec>.eyebrow,.hfx .sec>.h2,.hfx .hfx-band .pick>div>*,.hfx .hfx-cta>div>*,.hfx .sec>.faq{animation:hfx-rise ease-out both;animation-timeline:view();animation-range:entry 0% entry 80%}
  .hfx .sec>.h2,.hfx .hfx-band .pick>div>:nth-child(2),.hfx .hfx-cta>div>:nth-child(2){animation-range:entry 12% entry 92%}
  .hfx .hfx-band .pick>div>:nth-child(n+3),.hfx .hfx-cta>div>:nth-child(n+3){animation-range:entry 24% cover 22%}
  .hfx .hfx-glass .hfx-giant{animation:hfx-giant linear both;animation-timeline:view();animation-range:entry 0% cover 45%}
}
@media (prefers-reduced-motion:no-preference) and (min-width:1100px){
  /* จอกว้าง: แถบส้มเอนนอนแล้วตั้งขึ้น การ์ดลอยขึ้นพร้อมเอียงแล้วเข้าที่ (จอแคบไม่ทำ เพื่อความลื่น) */
  .hfx .hfx-band,.hfx .hfx-cta{animation:hfx-stand ease-out both;animation-timeline:view();animation-range:entry 0% entry 75%;transform-origin:50% 0}
  .hfx .hfx-band .pick-steps li,.hfx .hfx-glass .crit4 li{animation:hfx-card ease-out both;animation-timeline:view();animation-range:entry 0% cover 26%}
  .hfx .hfx-band .pick-steps li:nth-child(2),.hfx .hfx-glass .crit4 li:nth-child(2){--fx-r:4deg;animation-range:entry 14% cover 32%}
  .hfx .hfx-band .pick-steps li:nth-child(3),.hfx .hfx-glass .crit4 li:nth-child(3){animation-range:entry 28% cover 38%}
  .hfx .hfx-glass .crit4 li:nth-child(4){--fx-r:4deg;animation-range:entry 42% cover 44%}
}
}
@media (max-width:1099px){
  /* จอแคบ (งานเบา): แสงอยู่นิ่ง การ์ดไม่เบลอพื้นหลัง */
  .hfx-aur{animation:none;opacity:.8}
  .hfx .hfx-glass .crit4 li{background:#FFFFFF}
}
@media (max-width:860px){
  .hfx .hfx-band{margin:72px 0 0;padding:56px 16px;border-radius:28px} /* แถบอยู่ในแผ่นเนื้อหาที่มีขอบข้าง 16px จึงต้องมีมุมมน (เดิม 0 ทำให้เป็นกล่องเหลี่ยมลอย) */
  .hfx .hfx-band .pick{gap:28px}
  .hfx .hfx-band .pick-steps li:nth-child(n){margin-left:0}
  .hfx .hfx-glass{padding:96px 16px 88px}
  .hfx-giant{font-size:24vw;bottom:-2vw}
}
@media (prefers-reduced-motion:reduce){.hfx-aur{animation:none}.hfx [data-hfx-mag]>*{transition:none}}
.hfx .hfx-band .eyebrow svg{color:#FFE055}

/* กันที่ว่างขาวยาวใต้ท้ายเว็บบน iPhone Safari: ตัดทุกอย่างที่ล้นกรอบหน้า (เหตุผลเดียวกับ home-focus.css) · overflow:clip ไม่กระทบของที่ค้างกับจอ */
.hs.hfx{overflow:clip}

/* ================= ตารางการ์ดมีภาพประกอบ (bento · แปลงจากชิ้นงาน block-feature) =================
   .hfx-bsec > .hfx-bento.is-a (3 ช่อง ใบกลางกว้างกว่า) / .is-b (3 ช่องเท่ากัน) > article.hfx-bc (หัวข้อ h3 + คำอธิบาย p + ภาพประกอบ .hfx-bc-art)
   .is-end = ภาพอยู่บน ข้อความอยู่ล่าง · .is-hero = ใบเด่นพื้นครีม · .hfx-bc-art.is-peek = หน้าต่างโผล่จากขอบล่างมีแสงด้านหลัง */
.hfx .hfx-bsec{padding-top:96px}
.hfx .hfx-lead{max-width:640px;margin:16px auto 0;font-size:17px;line-height:1.6;color:#524E4C}
.hfx-bento{display:grid;gap:20px;max-width:1180px;margin:20px auto 0;text-align:center;perspective:1200px}
.hfx-bento.is-a{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr);margin-top:48px}
.hfx-bento.is-b{grid-template-columns:repeat(3,minmax(0,1fr))}
.hfx-bc{position:relative;display:flex;flex-direction:column;min-height:320px;padding-top:28px;overflow:hidden;border-radius:24px;border:1px solid #F0E6DF;background:#FFFFFF;box-shadow:0 1px 2px rgba(124,20,10,.05)}
.hfx-bc h3{margin:0;padding:0 24px;font-size:20px;line-height:1.4;font-weight:600;color:#1F1E1D}
.hfx-bc p{margin:6px 0 0;padding:0 24px;font-size:15px;line-height:1.55;color:#524E4C}
.hfx-bc-art{position:relative;flex:1;min-height:170px;display:flex;align-items:center;justify-content:center;padding:20px}
.hfx-bc.is-end{padding-top:0;padding-bottom:26px}
.hfx-bc.is-hero{padding-top:0;padding-bottom:26px;background:linear-gradient(180deg,#FFF3ED 0%,#FFFFFF 62%)}
/* ป้ายระดับ */
.hfx-lv{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:600;line-height:1.4;white-space:nowrap}
.hfx-lv.is-g{background:#E7F7EE;color:#15803C}.hfx-lv.is-y{background:#FFF4D6;color:#8A5A00}.hfx-lv.is-r{background:#FFE3E3;color:#C4180A}
/* ภาพ 1: แถวผลรายเรื่อง (แถวกลางเด่นแบบช่องที่ถูกเลือกในต้นแบบ) */
.hfx-art-rows{width:100%;max-width:300px;display:flex;flex-direction:column;gap:8px;-webkit-mask-image:radial-gradient(ellipse 90% 90% at 50% 50%,#000 55%,transparent 100%);mask-image:radial-gradient(ellipse 90% 90% at 50% 50%,#000 55%,transparent 100%)}
.hfx-art-rows>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-radius:14px;border:1px solid #F0E6DF;background:#FFFFFF;font-size:14px;color:#1F1E1D;text-align:left}
.hfx-art-rows>.is-on{background:#FFF8F2;border-color:#FFD9C7;scale:1.04;box-shadow:0 10px 24px -12px rgba(124,20,10,.3)}
/* ภาพ 2: วงคะแนน */
.hfx-art-score{position:relative;display:flex;align-items:center;gap:20px;text-align:left;padding-top:14px}
.hfx-art-score svg{flex:none;font-family:inherit}
.hfx-art-score>div{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.hfx-art-score small{font-size:13px;color:#716C69}.hfx-art-score b{font-size:20px;font-weight:600;color:#1F1E1D;line-height:1.3}
.hfx-art-score .hfx-lv{white-space:normal}
.hfx-art-tag{position:absolute;left:0;top:-14px;padding:3px 10px;border-radius:999px;background:#1F1E1D;color:#FFFFFF;font-size:12px;font-weight:600}
/* ภาพ 3: จุดที่เข้าใจคลาดเคลื่อน */
.hfx-art-mis{display:flex;align-items:flex-start;gap:10px;max-width:310px;text-align:left}
.hfx-art-mis img{flex:none;width:64px;height:64px}
.hfx-art-mis span{padding:12px 14px;border-radius:4px 18px 18px 18px;background:#FFF8E1;color:#5C4300;font-size:14px;line-height:1.55}
.hfx-art-mis b{display:block;font-size:13px;color:#8A5A00}
/* หน้าต่างโผล่จากขอบล่าง */
.hfx-bc-art.is-peek{align-items:flex-end;padding:18px 0 0}
.hfx-bc-art.is-peek::before{content:"";position:absolute;left:24px;right:24px;bottom:8px;height:150px;border-radius:24px;background:rgba(252,64,19,.16);filter:blur(28px)}
.hfx-win{position:relative;width:calc(100% - 44px);margin-bottom:-22px;border-radius:18px 18px 0 0;border:1px solid #F0E6DF;border-bottom:0;background:#FFFFFF;box-shadow:0 -8px 30px rgba(124,20,10,.08);text-align:left;overflow:hidden}
.hfx-win-h{display:flex;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid #F5EEE9;font-size:13px;color:#716C69}
.hfx-win-h>span:first-child:not(.hfx-win-av){display:inline-flex;gap:6px}
.hfx-win-h i{width:10px;height:10px;border-radius:50%;background:#FFB49C}.hfx-win-h i:nth-child(2){background:#FFD77A}.hfx-win-h i:nth-child(3){background:#8FDDB0}
.hfx-win-av{flex:none;width:28px;height:28px;border-radius:50%;overflow:hidden}.hfx-win-av img{display:block;width:100%;height:100%;object-fit:cover}
.hfx-win-h b{color:#1F1E1D;font-weight:600}
.hfx-art-rungs{padding:12px 16px 34px;display:flex;flex-direction:column;gap:8px}
.hfx-art-rungs>div{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:12px;background:#F8F6F5;font-size:14px;color:#3B3836}
.hfx-art-rungs b{flex:none;width:34px;font-weight:600;color:#1F1E1D}
.hfx-art-rungs span{flex:1;display:flex;flex-direction:column;gap:5px}.hfx-art-rungs em{font-style:normal}
.hfx-art-rungs i{display:block;height:6px;border-radius:3px;background:#FFE3D6}.hfx-art-rungs u{display:block;height:100%;border-radius:3px;background:#FC4013}
.hfx-art-rungs small{flex:none;font-size:13px;color:#716C69}
.hfx-art-rungs .is-now{background:#FFF3ED}.hfx-art-rungs .is-now em{font-weight:600;color:#C4180A}
.hfx-ok{width:20px;height:20px;border-radius:50%;background:#1F9D63;color:#FFFFFF!important;display:inline-flex;align-items:center;justify-content:center}
.hfx-art-chat{padding:14px 16px 36px;display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.5}
.hfx-art-chat span{align-self:flex-start;max-width:86%;padding:9px 13px;border-radius:4px 16px 16px 16px;background:#F4F1EF;color:#1F1E1D}
.hfx-art-chat .is-me{align-self:flex-end;border-radius:16px 4px 16px 16px;background:#06C755;color:#FFFFFF}
/* สายพานไอคอนวิชา: วิ่งตามเส้นโค้งช้าๆ */
@keyframes hfx-belt{from{offset-distance:0%}to{offset-distance:100%}}
.hfx-belt{position:relative;width:371px;height:200px;flex:none}
.hfx-belt-i{position:absolute;left:0;top:0;width:62px;height:62px;border-radius:18px;background:#FC4013;color:#FFFFFF;display:flex;align-items:center;justify-content:center;box-shadow:0 16px 32px rgba(124,20,10,.22);offset-path:path("M-40 132C20 132 55 72 185.5 72C316 72 351 132 411 132");offset-rotate:auto;animation:hfx-belt 24s linear infinite;animation-delay:calc(var(--n) * -4s)}
.hfx-belt-i:nth-child(3n+2){background:#1F1E1D}.hfx-belt-i:nth-child(3n){background:#FF8A3D}
/* ตัวช่วยของส่วนอื่นในหน้าแบบทดสอบ */
.hfx .hfx-band.is-center{text-align:center}
.hfx .hfx-band.is-center .tx-steps{position:relative;z-index:2;perspective:1000px}
.hfx .hfx-band .tx-step{background:#FFFFFF;color:#1F1E1D;border-color:transparent;box-shadow:0 18px 40px -18px rgba(124,20,10,.45)}
.hfx .hfx-glass .tx-subs{perspective:1000px}
.hfx .hfx-glass .tx-sc{border-color:rgba(252,64,19,.14);background:linear-gradient(145deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.7) 100%);box-shadow:0 14px 34px -16px rgba(124,20,10,.22),inset 0 1px 1px rgba(255,255,255,.9)}
.hfx .hfx-more-row{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:28px 0 0;font-size:15px;color:#524E4C}
.hfx .hfx-more-row a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid #F0D9CC;background:#FFFFFF;color:#C4180A;font-weight:600;text-decoration:none}
.hfx .hfx-more-row a:hover{border-color:#FC4013}
@supports (animation-timeline:view()){
@media (prefers-reduced-motion:no-preference){
  .hfx .sec>.hfx-lead{animation:hfx-rise ease-out both;animation-timeline:view();animation-range:entry 24% cover 22%}
}
@media (prefers-reduced-motion:no-preference) and (min-width:1100px){
  .hfx .hfx-bento>.hfx-bc,.hfx .hfx-band .tx-step,.hfx .hfx-glass .tx-sc{animation:hfx-card ease-out both;animation-timeline:view();animation-range:entry 0% cover 24%}
  .hfx .hfx-bento>.hfx-bc:nth-child(2),.hfx .hfx-band .tx-step:nth-child(2),.hfx .hfx-glass .tx-sc:nth-child(3n+2){--fx-r:4deg;animation-range:entry 12% cover 30%}
  .hfx .hfx-bento>.hfx-bc:nth-child(3),.hfx .hfx-band .tx-step:nth-child(3),.hfx .hfx-glass .tx-sc:nth-child(3n){animation-range:entry 24% cover 36%}
}
}
@media (max-width:1100px){
  .hfx-bento.is-a,.hfx-bento.is-b{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .hfx-bento.is-a>.is-hero{grid-column:1 / -1;order:-1}
}
@media (max-width:700px){
  .hfx .hfx-bsec{padding-top:64px}
  .hfx-bento.is-a,.hfx-bento.is-b{grid-template-columns:minmax(0,1fr);gap:14px}
  .hfx-bento.is-a{margin-top:28px}.hfx-bento{margin-top:14px}
  .hfx-bc{min-height:0}
  .hfx-art-score{flex-direction:column;text-align:center;gap:12px}.hfx-art-score>div{align-items:center}
  .hfx-art-tag{left:50%;translate:-50% 0;top:-18px}
}
@media (prefers-reduced-motion:reduce){
  .hfx-belt{width:auto;height:auto;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
  .hfx-belt-i{position:static;animation:none;offset-path:none;width:52px;height:52px}
}

/* ================= ชิ้นกลางของส่วนล่าง ชุดที่ 2 (เริ่มใช้ที่หน้าวางแผนการเรียน) =================
   .hfx-show   = หน้าต่างตัวอย่างใหญ่: หัวหน้าต่าง .hfx-win-h (จุด 3 สี + ชื่อ + .hfx-show-sub + ป้าย .hfx-show-tag) + เนื้อหา .hfx-show-in มีแสงส้มด้านหลัง
   .hfx-feat4  = การ์ดจุดเด่น 4 ใบแบบกระจก (li > ไอคอน .ci + b + span) หน้าตาเดียวกับการ์ดเกณฑ์คัดติวเตอร์ในส่วน .hfx-glass
   .hfx-tabs   = แท็บแคปซูล [data-hfx-tabs] > button[role=tab][aria-controls] คู่กับแผง [data-hfx-tab-p] ในกล่อง .hfx-tabwrap (hero-focus.js) */
.hfx-show{position:relative;max-width:980px;margin:48px auto 0;text-align:left}
.hfx-show::before{content:"";position:absolute;left:8%;right:8%;top:18%;bottom:-4%;border-radius:40px;background:rgba(252,64,19,.2);filter:blur(48px)}
.hfx-show>*{position:relative}
.hfx-show>.hfx-win-h{flex-wrap:wrap;row-gap:4px;padding:14px 20px;border:1px solid #F0E6DF;border-bottom-color:#F5EEE9;border-radius:24px 24px 0 0;background:#FFFFFF;font-size:14px}
.hfx-show>.hfx-win-h b{font-size:16px}
.hfx-show-tag{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:#FFF3ED;color:#C4180A;font-size:13px;font-weight:600;font-style:normal}
.hfx-show-in{padding:20px;border:1px solid #F0E6DF;border-top:0;border-radius:0 0 24px 24px;background:#FFFFFF;box-shadow:0 30px 60px -24px rgba(124,20,10,.28)}
.hfx-feat4{list-style:none;max-width:1180px;margin:40px auto 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;text-align:left;perspective:900px}
.hfx-feat4 li{border-radius:28px;border:1px solid rgba(252,64,19,.14);padding:26px 22px;background:linear-gradient(145deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.82) 100%);box-shadow:0 14px 34px -16px rgba(124,20,10,.22),inset 0 1px 1px rgba(255,255,255,.9)}
.hfx-feat4 li.is-mag{border-color:rgba(252,64,19,.4);box-shadow:0 22px 44px -16px rgba(124,20,10,.3),inset 0 1px 1px rgba(255,255,255,.9)}
.hfx-feat4 .ci{width:48px;height:48px;border-radius:16px;background:#FC4013;color:#FFFFFF;display:inline-flex;align-items:center;justify-content:center}
.hfx-feat4 b{display:block;margin-top:18px;font-size:18px;font-weight:600;line-height:1.4;color:#1F1E1D}
.hfx-feat4 li>span:last-child{display:block;margin-top:6px;font-size:15px;color:#524E4C;line-height:1.6}
.hfx-tabwrap{max-width:1180px;margin:36px auto 0}
.hfx-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 28px}
.hfx-tabs[hidden]{display:none}
.hfx-tabs button{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid #E7E6E6;background:#FFFFFF;color:#3B3836;font:inherit;font-size:15px;font-weight:500;white-space:nowrap;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s}
.hfx-tabs button small{min-width:22px;padding:1px 7px;border-radius:999px;background:rgba(31,30,29,.08);font-size:12px;font-weight:600}
.hfx-tabs button[aria-selected="true"]{border-color:#1F1E1D;background:#1F1E1D;color:#FFFFFF}
.hfx-tabs button[aria-selected="true"] small{background:rgba(255,255,255,.2)}
.hfx-tabs button:active{scale:.98}
.hfx-tabs button:focus-visible{outline:2px solid #3D8BF2;outline-offset:2px}
.hfx .hfx-band .hfx-tabs button{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.16);color:#FFFFFF}
.hfx .hfx-band .hfx-tabs button:hover{background:rgba(255,255,255,.26)}
.hfx .hfx-band .hfx-tabs button small{background:rgba(255,255,255,.22)}
.hfx .hfx-band .hfx-tabs button[aria-selected="true"]{border-color:#FFFFFF;background:#FFFFFF;color:#1F1E1D}
.hfx .hfx-band .hfx-tabs button[aria-selected="true"] small{background:#FFF3ED;color:#C4180A}
.hfx .hfx-band .hfx-tabs button:focus-visible{outline-color:#FFFFFF}
.hfx-tabwrap.is-tabs [data-hfx-tab-p]:not(.is-on){display:none}
.hfx-tabwrap.is-tabs [data-hfx-tab-p]>h3{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* การ์ดแผนตัวอย่างและการ์ดขั้นตอนของหน้าวางแผน เมื่ออยู่ในชุดนี้ */
.hfx .hfx-band .pl-gcat h3{color:#FFFFFF}
.hfx .hfx-band .pl-gcat h3 small{color:rgba(255,255,255,.85)}
.hfx .hfx-band .pl-gcs{perspective:1000px;text-align:left}
.hfx .hfx-band .pl-gc{border-color:transparent;box-shadow:0 18px 40px -18px rgba(124,20,10,.45)}
.hfx .hfx-band .pl-gc.is-mag{box-shadow:0 26px 48px -18px rgba(124,20,10,.55)}
.hfx .pl-hows{perspective:1000px}
@supports (animation-timeline:view()){
@media (prefers-reduced-motion:no-preference){
  .hfx .hfx-band>.eyebrow,.hfx .hfx-band>.h2,.hfx .hfx-band>.hfx-band-lead,.hfx .hfx-tabs{animation:hfx-rise ease-out both;animation-timeline:view();animation-range:entry 0% entry 80%}
}
@media (prefers-reduced-motion:no-preference) and (min-width:1100px){
  .hfx .hfx-show{animation:hfx-stand ease-out both;animation-timeline:view();animation-range:entry 0% cover 30%;transform-origin:50% 0}
  .hfx .hfx-feat4 li,.hfx .pl-hows>.pl-how{animation:hfx-card ease-out both;animation-timeline:view();animation-range:entry 0% cover 26%}
  .hfx .hfx-feat4 li:nth-child(2),.hfx .pl-hows>.pl-how:nth-child(2){--fx-r:4deg;animation-range:entry 14% cover 32%}
  .hfx .hfx-feat4 li:nth-child(3),.hfx .pl-hows>.pl-how:nth-child(3){animation-range:entry 28% cover 38%}
  .hfx .hfx-feat4 li:nth-child(4){--fx-r:4deg;animation-range:entry 42% cover 44%}
}
}
@media (max-width:1100px){
  .hfx-feat4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hfx-feat4 li{background:#FFFFFF}
}
@media (max-width:700px){
  .hfx-show{margin-top:28px}
  .hfx-show::before{filter:blur(28px)}
  .hfx-show>.hfx-win-h{padding:12px 14px;border-radius:20px 20px 0 0}
  .hfx-show>.hfx-win-h>span:first-child{display:none}
  .hfx-show-tag{margin-left:0}
  .hfx-show-in{padding:12px;border-radius:0 0 20px 20px}
  .hfx-feat4{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:28px}
  .hfx-feat4 li{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:14px;padding:18px;border-radius:22px}
  .hfx-feat4 .ci{grid-row:1 / span 2}
  .hfx-feat4 b{margin-top:0;font-size:17px}
  .hfx-feat4 li>span:last-child{grid-column:2;margin-top:2px}
  .hfx-tabwrap{margin-top:24px}
  .hfx-tabs{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin:0 -16px 20px;padding:0 16px;scrollbar-width:none}
  .hfx-tabs::-webkit-scrollbar{display:none}
}

/* แถบคำวิ่งเฉียง (ชุดเดียวกับแถบชื่อวิชาของหน้าแรก .hf-subj-marq): วางใน .hfx-glass-fx > .hfx-marq > div > span ซ้ำหลายรอบ คั่นด้วย <i>✦</i> */
@keyframes hfx-marq{to{transform:translateX(-50%)}}
.hfx-marq{position:absolute;left:0;top:64px;z-index:2;width:100%;overflow:hidden;padding:13px 0;border-top:1px solid #F2E4DA;border-bottom:1px solid #F2E4DA;background:rgba(255,255,255,.9);transform:rotate(-2deg) scale(1.1)}
.hfx-marq>div{display:flex;width:max-content;animation:hfx-marq 46s linear infinite;font-size:15px;font-weight:600;color:#716C69}
.hfx-marq span{display:inline-flex;align-items:center;gap:36px;padding:0 18px;white-space:nowrap}
.hfx-marq i{font-style:normal;color:#FC4013;opacity:.75}
@media (prefers-reduced-motion:reduce){.hfx-marq>div{animation:none}}
