/* ==========================================================================
   หน้าแรก (Landing) — เฉพาะส่วนเนื้อหาของหน้าแรก
   สี ฟอนต์ เมนูบน ท้ายเว็บ ปุ่ม อยู่ใน site.css (ใช้ร่วมกับหน้าผู้สมัครทุกหน้า)
   ========================================================================== */

/* ---------- ส่วนบน (hero) ---------- */
.lh-hero { padding: 40px 0 24px; position: relative; }
.lh-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; }
.lh-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--lh-blue-soft); color: var(--lh-blue); font-size: .95rem; font-weight: 500; }
.lh-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lh-orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lh-orange) 25%, transparent); animation: lh-pulse 2s ease-in-out infinite; }
.lh-title { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.18; margin: 18px 0 14px; color: var(--lh-text); letter-spacing: -.01em; }
.lh-accent { background: linear-gradient(90deg, var(--lh-orange-2), var(--lh-orange-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lh-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--lh-muted); max-width: 34em; margin: 0 0 24px; line-height: 1.7; font-weight: 300; }
.lh-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lh-sub { margin: 16px 0 0; color: var(--lh-muted); font-size: .98rem; }
.lh-sub a { color: var(--lh-blue); font-weight: 500; }
.lh-dates { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lh-dates li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--lh-card); border: 1px solid var(--lh-line); font-size: .92rem; color: var(--lh-muted); }
.lh-dates li.on { border-color: color-mix(in srgb, var(--lh-orange) 55%, var(--lh-line)); color: var(--lh-text); }
.lh-dates li.on .ic { color: var(--lh-orange-text); }
.lh-dates b { font-weight: 600; color: var(--lh-text); }

.lh-hero-art { position: relative; display: grid; place-items: end center; min-height: 420px; }
.lh-blob { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; bottom: 4%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f4f8fc 45%, var(--lh-blue-soft) 100%); box-shadow: var(--lh-shadow-lg); }
.lh-ring { position: absolute; width: 96%; aspect-ratio: 1; border-radius: 50%; bottom: -1%; left: 50%; transform: translateX(-50%); border: 2px dashed color-mix(in srgb, var(--lh-orange) 55%, transparent); animation: lh-spin 60s linear infinite; }
.lh-hero-img { position: relative; width: 100%; max-width: 560px; height: auto; filter: drop-shadow(0 18px 30px rgba(15, 40, 70, .18)); animation: lh-up .8s var(--ease, ease) both; }
.lh-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: var(--lh-card); color: var(--lh-text);
  box-shadow: var(--lh-shadow-lg); font-weight: 500; font-size: .95rem; animation: lh-bob 5s ease-in-out infinite; }
.lh-float .ic { color: var(--lh-blue); }
.lh-float-1 { top: 14%; left: -2%; }
.lh-float-2 { bottom: 16%; right: -2%; animation-delay: -2.5s; }
.lh-float-2 .ic { color: var(--lh-orange-text); }
:root[data-theme="dark"] .lh-blob { background: radial-gradient(circle at 35% 30%, #f4f8fc 0%, #dfe9f3 55%, #b9cde2 100%); }
@media screen and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lh-blob { background: radial-gradient(circle at 35% 30%, #f4f8fc 0%, #dfe9f3 55%, #b9cde2 100%); } }

/* ---------- ระดับที่เปิดรับ ---------- */
.lh-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; margin-bottom: 8px; }
.lh-level { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--lh-card); border: 1px solid var(--lh-line); box-shadow: var(--lh-shadow);
  color: var(--lh-text); text-decoration: none; transition: transform var(--dur, .25s) ease, border-color var(--dur, .25s) ease; }
.lh-level:hover { transform: translateY(-3px); border-color: var(--lh-blue-2); text-decoration: none; }
.lh-level b { display: block; font-size: 1.25rem; font-weight: 600; color: var(--lh-blue); }
.lh-level small { display: block; color: var(--lh-muted); font-size: .85rem; line-height: 1.35; }
.lh-level-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--lh-blue-soft); color: var(--lh-blue); flex: none; }
.lh-level-ico .ic { width: 26px; height: 26px; }
.lh-level-n { margin-left: auto; text-align: right; font-weight: 700; font-size: 1.5rem; color: var(--lh-orange-text); line-height: 1; }
.lh-level-n small { font-weight: 400; font-size: .8rem; color: var(--lh-muted); }

/* ---------- ส่วนเนื้อหา ---------- */
.lh-section { padding: 64px 0; }
.lh-alt { background: var(--lh-bg-2); }
.lh-kicker { margin: 0 0 4px; color: var(--lh-orange-text); font-weight: 500; letter-spacing: .02em; }
.lh-h2 { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.25; margin: 0 0 24px; color: var(--lh-text); }
.lh-split { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; }
.lh-split-rev { grid-template-columns: 240px 1fr; }
.lh-person { width: 100%; height: auto; max-height: 560px; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(15, 40, 70, .16)); }
/* รูปข้างรายชื่อสาขา: ชิดบน ระดับเดียวกับหัวข้อ "สาขาวิชาที่เปิดรับ" (รายชื่อยาว ถ้าอยู่กลางจะลอยลงไปกลางกรอบ) */
.lh-person-tech { align-self: start; }

.lh-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lh-steps li { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--lh-card); border: 1px solid var(--lh-line); box-shadow: var(--lh-shadow); }
.lh-step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; font-weight: 700; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--lh-blue-2), var(--lh-blue)); }
.lh-steps li:nth-child(4) .lh-step-n { background: linear-gradient(135deg, var(--lh-orange), var(--lh-orange-2)); color: #1b1006; }
.lh-steps b { display: block; font-weight: 600; font-size: 1.08rem; margin-bottom: 2px; }
.lh-steps p { margin: 0; color: var(--lh-muted); font-size: .95rem; line-height: 1.55; font-weight: 300; }

.lh-prog { margin-bottom: 22px; }
.lh-prog h3 { font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 1.1rem; margin: 0 0 10px; color: var(--lh-blue); }
.lh-prog ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lh-prog { padding: 20px 22px; border-radius: 18px; background: var(--lh-card); border: 1px solid var(--lh-line); box-shadow: var(--lh-shadow); }
.lh-prog h3 { font-size: 1.2rem; padding-bottom: 8px; border-bottom: 2px solid var(--lh-blue-soft); }
.lh-prog-type { margin: 14px 0 8px; font-size: .98rem; font-weight: 500; color: var(--lh-orange-text); display: flex; align-items: center; gap: 8px; }
.lh-prog-type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lh-orange); flex: none; }
.lh-prog li { padding: 8px 14px; border-radius: 999px; background: var(--lh-bg); border: 1px solid var(--lh-line); font-size: .95rem; }
.lh-prog li:has(> .lh-prog-link) { padding: 0; }
.lh-prog-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 40px; border-radius: 999px; color: var(--lh-blue); text-decoration: none; }
.lh-prog-link:hover, .lh-prog-link:focus-visible { background: var(--lh-blue-soft); text-decoration: underline; }
.lh-ext { font-size: .8em; opacity: .75; }

/* สถิติ: ใช้กล่องสถิติเดิมของระบบ (app.css) ปรับขอบมนให้เข้ากับหน้าแรก */
#stats .pubstats { border-radius: 20px; box-shadow: var(--lh-shadow); border: 1px solid var(--lh-line); margin: 0; }
#stats .ps-head h2 { font-family: 'Kanit', sans-serif; font-weight: 500; }

/* ---------- ติดต่อสอบถาม ---------- */
.lh-help { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: end; margin: 24px auto 64px; padding: 32px 36px 0;
  border-radius: 28px; color: #fff; background: linear-gradient(120deg, #0c3e6b 0%, #0f4c81 50%, #1d6fb8 100%); box-shadow: var(--lh-shadow-lg); overflow: hidden; max-width: 1160px; }
.lh-help-img { width: 100%; height: auto; max-height: 300px; object-fit: contain; object-position: bottom; align-self: end; }
.lh-help-txt { padding-bottom: 32px; }
.lh-help h2 { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 6px; color: #fff; }
.lh-help p { margin: 0 0 20px; opacity: .9; font-weight: 300; }

/* ---------- เคลื่อนไหวเบา ๆ (ปิดเองเมื่อเครื่องตั้งค่าลดการเคลื่อนไหว) ---------- */
@keyframes lh-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lh-spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes lh-pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--lh-orange) 25%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--lh-orange) 8%, transparent); } }
.lh-hero-txt > * { animation: lh-up .7s var(--ease, ease) both; }
.lh-hero-txt > :nth-child(2) { animation-delay: .06s; } .lh-hero-txt > :nth-child(3) { animation-delay: .12s; } .lh-hero-txt > :nth-child(n+4) { animation-delay: .18s; }

/* ---------- แท็บเล็ต ---------- */
@media (max-width: 1080px) {
  .lh-split { grid-template-columns: 1fr 200px; }
  .lh-split-rev { grid-template-columns: 190px 1fr; }
}
@media (max-width: 920px) {
  .lh-hero-in { grid-template-columns: 1fr 1fr; }
  .lh-hero-art { min-height: 340px; }
  .lh-levels { grid-template-columns: 1fr; }
  .lh-steps { grid-template-columns: 1fr; }
}
/* ---------- มือถือ ---------- */
@media (max-width: 700px) {
  .lh-hero { padding-top: 24px; }
  .lh-hero-in { grid-template-columns: 1fr; gap: 8px; }
  .lh-hero-art { min-height: 0; max-width: 340px; margin: 0 auto; width: 100%; }
  .lh-hero-img { max-width: 330px; }
  .lh-float { font-size: .82rem; padding: 7px 11px; }
  .lh-float-1 { left: 0; top: 8%; }
  .lh-float-2 { right: 0; bottom: 10%; }
  .lh-cta .lh-btn { flex: 1 1 100%; }
  .lh-section { padding: 44px 0; }
  .lh-split, .lh-split-rev { grid-template-columns: 1fr; }
  .lh-person { display: none; }
  .lh-help { grid-template-columns: 1fr; padding: 28px 22px 0; margin: 16px 16px 44px; width: auto; }
  .lh-help-img { display: none; }
  .lh-prog { padding: 16px; }
}
