/* =========================================================
   SATITNRRU NEXT — ส่วนกลางของเว็บไซต์โรงเรียน
   คลาส nx- (ส่วนกลาง/หน้าแรก) และ np- (หน้าย่อย) · ไม่ใช้ Tailwind แล้ว
   ========================================================= */
:root {
  --ink: #0E4A38;
  --ink-2: #0A3A2C;
  --leaf: #1F8A5B;
  --leaf-soft: #E5F2EA;
  --sun: #F5C142;
  --sun-soft: #FDF3D6;
  --paper: #F4F8F3;
  --card: #FFFFFF;
  --line: #D9E4DB;
  --text: #1B2B24;
  --muted: #5D6E66;
  --display: 'Mitr', 'IBM Plex Sans Thai Looped', system-ui, sans-serif;
  --body: 'IBM Plex Sans Thai Looped', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 74, 56, .06), 0 8px 24px -12px rgba(14, 74, 56, .18);
  --shadow-lg: 0 2px 6px rgba(14, 74, 56, .08), 0 24px 48px -20px rgba(14, 74, 56, .30);
  --wrap: 1240px;
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- พื้นฐาน ---------- */
/* รีเซ็ตพื้นฐานของหน้าย่อย (แทน Tailwind ที่เลิกโหลดแล้ว) — ใช้ :where() ให้ความสำคัญต่ำสุด คลาสของเราทับได้เสมอ */
:where(.nx-inner #main) :where(blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre) { margin: 0; }
:where(.nx-inner #main) :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; }
:where(.nx-inner #main) :where(ol, ul) { list-style: none; margin: 0; padding: 0; }
:where(.nx-inner #main) :where(img, svg, video, canvas, audio, iframe, embed, object) { display: block; vertical-align: middle; }
:where(.nx-inner #main) :where(img, video) { max-width: 100%; height: auto; }
:where(.nx-inner #main) a { color: inherit; text-decoration: inherit; }
:where(.nx-inner #main) :where(button, input, optgroup, select, textarea) { font-family: inherit; font-size: 100%; line-height: inherit; color: inherit; margin: 0; padding: 0; }
:where(.nx-inner #main) :where(button, [role="button"]) { cursor: pointer; background: transparent; border: 0; }
:where(.nx-inner #main) :where(input, textarea)::placeholder { color: #9ca3af; opacity: 1; }
:where(.nx-inner #main) table { border-collapse: collapse; }
:where(.nx-inner #main) hr { border: 0; border-top: 1px solid var(--line); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html.nx-lock { overflow: hidden; }
body.nx { margin: 0; background: var(--card); color: var(--text); font: 400 16px/1.7 var(--body); }
body.nx-home { background: var(--paper); }
.nx img { max-width: 100%; }
.nx a { color: inherit; }
.nx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nx-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.nx :focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.nx-skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff !important; border-radius: 10px; text-decoration: none; }
.nx-skip:focus { top: 12px; }

/* คลาสเดิมที่หน้าย่อยยังใช้อยู่ */
.card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, .15); }
.line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* ---------- ปุ่ม ---------- */
.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1.5px solid transparent; border-radius: 999px; font: 500 15.5px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.nx-btn:active { transform: translateY(1px); }
.nx-btn-sun { background: var(--sun); color: var(--ink-2) !important; }
.nx-btn-sun:hover { background: #F0B323; }
.nx-btn-leaf { background: var(--leaf); color: #fff !important; }
.nx-btn-leaf:hover { background: #18744C; }
.nx-btn-ink { background: var(--ink); color: #fff !important; }
.nx-btn-ink:hover { background: var(--ink-2); }
.nx-btn-line { background: transparent; border-color: var(--line); color: var(--ink) !important; }
.nx-btn-line:hover { border-color: var(--leaf); background: var(--leaf-soft); }
.nx-btn-ghost-inv { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.nx-btn-ghost-inv:hover { background: rgba(255, 255, 255, .2); }
.nx-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.nx-icon-btn:hover, .nx-icon-btn[aria-expanded="true"] { background: var(--leaf-soft); }

/* ---------- แถบบนสุด ---------- */
.nx-topbar { background: var(--ink); color: #D5E9DE; font-size: 14px; }
.nx-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.nx-tb-info { display: flex; gap: 22px; margin: 0; }
.nx-tb-info i { color: var(--sun); margin-right: 6px; font-size: 12px; }
.nx-topbar a { color: #fff; text-decoration: none; }
.nx-topbar a:hover { color: var(--sun); }
.nx-tb-links { display: flex; align-items: center; gap: 18px; }
.nx-tb-links i { margin-right: 5px; font-size: 12.5px; }
.nx-tb-links a[aria-label] i { margin: 0; }

/* ---------- หัวเว็บ ---------- */
.nx-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.nx-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(14, 74, 56, .35); }
.nx-header-in { max-width: 1360px; display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.nx-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink) !important; min-width: 0; }
.nx-brand img { width: 46px; height: auto; display: block; }
.nx-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nx-brand-text strong, .nx-brand-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-brand-text strong { font: 500 18px/1.25 var(--display); letter-spacing: .1px; }
.nx-brand-text small { font-size: 12.5px; color: var(--muted); letter-spacing: .2px; }

.nx-nav { margin-left: auto; }
.nx-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nx-nav li { position: relative; }
.nx-nav-link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text) !important; font: 500 15.5px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.nx-nav-link i { font-size: 10px; color: var(--muted); transition: transform .2s; }
.nx-nav-link:hover, .nx-dd:hover > .nx-nav-link, .nx-dd > .nx-nav-link[aria-expanded="true"] { background: var(--leaf-soft); color: var(--ink) !important; }
.nx-nav-link[aria-current="page"], .nx-nav-link.is-active { color: var(--leaf) !important; box-shadow: inset 0 -2.5px 0 var(--leaf); border-radius: 10px 10px 2px 2px; }
.nx-dd-menu { position: absolute; top: calc(100% + 6px); left: 50%; min-width: 250px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nx-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nx-dd:hover .nx-dd-menu, .nx-dd:focus-within .nx-dd-menu, .nx-dd > [aria-expanded="true"] + .nx-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nx-dd:hover .nx-nav-link i, .nx-dd > [aria-expanded="true"] i { transform: rotate(180deg); }
.nx-dd-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text) !important; text-decoration: none; font-size: 15px; line-height: 1.35; }
.nx-dd-menu a > i:first-child { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; background: var(--leaf-soft); color: var(--leaf); font-size: 13px; }
.nx-dd-menu a:hover { background: var(--paper); }
.nx-dd-menu a[aria-current="page"] { background: var(--leaf-soft); color: var(--ink) !important; font-weight: 600; }
.nx-dd-menu .nx-ext { margin-left: auto; font-size: 11px; color: var(--muted); }

.nx-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nx-burger { display: none; }
.nx-search { border-top: 1px solid var(--line); background: var(--card); padding: 14px 0; }
.nx-search form { display: flex; align-items: center; gap: 10px; position: relative; }
.nx-search form > i { position: absolute; left: 38px; color: var(--muted); }
.nx-search input[type=search] { flex: 1; height: 48px; padding: 0 16px 0 46px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: 400 16px var(--body); color: var(--text); }
.nx-search input[type=search]:focus { outline: none; border-color: var(--leaf); background: #fff; }

/* ---------- เมนูมือถือ ---------- */
.nx-drawer { position: fixed; inset: 0; z-index: 120; background: rgba(10, 30, 22, .45); }
.nx-drawer[hidden] { display: none; }
.nx-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column; background: var(--card); box-shadow: var(--shadow-lg); overflow-y: auto; animation: nx-slide .22s ease-out; }
@keyframes nx-slide { from { transform: translateX(24px); opacity: .6; } }
.nx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 20px; }
.nx-drawer-head strong { font: 500 20px var(--display); color: var(--ink); }
.nx-drawer-search { display: flex; margin: 4px 16px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.nx-drawer-search input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; background: none; font: 400 16px var(--body); color: var(--text); }
.nx-drawer-search input:focus { outline: none; }
.nx-drawer-search button { width: 50px; border: 0; background: none; color: var(--leaf); font-size: 16px; cursor: pointer; }
.nx-drawer nav { padding: 4px 10px 10px; }
.nx-dr-link { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 12px; border-radius: 12px; color: var(--text) !important; font: 500 16.5px var(--body); text-decoration: none; cursor: pointer; list-style: none; }
.nx-dr-link::-webkit-details-marker { display: none; }
.nx-dr-link i { font-size: 12px; color: var(--muted); transition: transform .2s; }
.nx-dr-group[open] > .nx-dr-link i { transform: rotate(180deg); }
.nx-dr-link:hover { background: var(--paper); }
.nx-dr-link[aria-current="page"] { background: var(--leaf-soft); color: var(--ink) !important; }
.nx-dr-group > a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px 0 20px; border-radius: 10px; color: var(--text) !important; text-decoration: none; font-size: 15.5px; }
.nx-dr-group > a i { width: 20px; text-align: center; color: var(--leaf); font-size: 14px; }
.nx-dr-group > a[aria-current="page"] { background: var(--leaf-soft); font-weight: 600; }
.nx-dr-group > a:hover { background: var(--paper); }
.nx-drawer-foot { margin-top: auto; display: grid; gap: 10px; padding: 16px 20px 24px; border-top: 1px solid var(--line); }

/* ---------- ส่วนท้าย ---------- */
.nx-footer { margin-top: 0; background: var(--ink-2); color: #CFE3D8; font-size: 15px; }
.nx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 40px; padding-top: 56px; padding-bottom: 44px; }
.nx-brand-inv { color: #fff !important; }
.nx-brand-inv .nx-brand-text small { color: #A9C8B8; }
.nx-f-motto { margin: 16px 0 20px; max-width: 30ch; font: 400 15.5px/1.7 var(--body); color: #E5F0EA; }
.nx-social { display: flex; gap: 10px; }
.nx-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff !important; text-decoration: none; transition: background .2s, color .2s; }
.nx-social a:hover { background: var(--sun); color: var(--ink-2) !important; }
.nx-f-col h2 { margin: 6px 0 14px; font: 500 16.5px var(--display); color: #fff; }
.nx-f-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nx-f-col a { color: #CFE3D8 !important; text-decoration: none; }
.nx-f-col a:hover { color: var(--sun) !important; text-decoration: underline; text-underline-offset: 3px; }
.nx-f-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; line-height: 1.6; }
.nx-f-contact i { margin-top: 5px; color: var(--sun); font-size: 13.5px; }
.nx-footer-bar { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #A9C8B8; }
.nx-footer-bar .nx-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 16px; padding-bottom: 18px; }
.nx-footer-bar p { margin: 0; }
.nx-footer-bar a { color: #CFE3D8 !important; }

.nx-totop { position: fixed; right: 26px; bottom: 100px; z-index: 80; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.nx-totop.is-shown { opacity: 1; visibility: visible; transform: none; }

/* ---------- ค่อย ๆ ปรากฏ ---------- */
.nx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.nx-reveal.is-in { opacity: 1; transform: none; }
.nx-reveal[data-d="1"] { transition-delay: .08s; }
.nx-reveal[data-d="2"] { transition-delay: .16s; }
.nx-reveal[data-d="3"] { transition-delay: .24s; }
@media (scripting: none) { .nx-reveal { opacity: 1; transform: none; } }

/* ---------- ขนาดจอ ---------- */
@media (max-width: 1320px) { .nx-nav-link { padding: 0 9px; font-size: 15px; } }
@media (max-width: 1239px) { .nx-brand-text small { display: none; } }
@media (max-width: 1259px) { .nx-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1099px) {
  .nx-nav { display: none; }
  .nx-burger { display: inline-grid; }
  .nx-actions { margin-left: auto; }
  .nx-brand-text small { display: block; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .nx-tb-hours, .nx-tb-links a:not([aria-label]) { display: none; }
  .nx-tb-info { font-size: 13.5px; }
  .nx-brand img { width: 40px; }
  .nx-brand-text strong { font-size: 16px; }
  .nx-brand-text small { font-size: 11.5px; }
  .nx-cta { display: none; }
  .nx-search form > i { left: 34px; }
  .nx-search .nx-btn { padding: 0 16px; }
}
@media (max-width: 560px) {
  .nx-wrap { padding: 0 16px; }
  .nx-footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .nx-totop { right: 20px; bottom: 92px; }
}
@media (max-width: 380px) { .nx-brand-text small { display: none; } }

@media print { .nx-topbar, .nx-header, .nx-footer, .nx-totop, tissa-widget { display: none !important; } }

/* =========================================================
   หน้าแรก
   ========================================================= */
.nx-eyebrow { margin: 0 0 6px; font: 500 13.5px/1.2 var(--body); letter-spacing: .6px; color: var(--leaf); }
.nx-section { padding: 72px 0; }
.nx-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.nx-sec-head h2, .nx-about h2 { margin: 0; text-wrap: balance; font: 500 clamp(26px, 3vw, 34px)/1.25 var(--display); color: var(--ink); }
.nx-more { display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px; color: var(--leaf) !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nx-more i { font-size: 12px; transition: transform .2s; }
.nx-more:hover i { transform: translateX(3px); }
.nx-empty { padding: 36px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.nx-news-img.is-broken, .nx-album-img.is-broken { display: grid; place-items: center; background: var(--leaf-soft); }
.nx-news-img.is-broken::after, .nx-album-img.is-broken::after { content: ''; width: 64px; height: 72px; background: url(../images/logo-mark.webp) center/contain no-repeat; opacity: .35; }
.nx-img-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--leaf-soft); color: var(--leaf); font-size: 32px; }

/* หกเหลี่ยม (ลายประจำ SATITNRRU NEXT) */
.nx-hex { width: 52px; height: 58px; flex-shrink: 0; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--leaf-soft); color: var(--leaf); font-size: 20px; transition: background .25s, color .25s; }
.nx-hex.sm { width: 44px; height: 50px; font-size: 17px; }

/* ---------- สไลด์ ---------- */
.nx-slides-wrap { padding-top: 24px; }
.nx-slides { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.nx-slides-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.nx-slides-track::-webkit-scrollbar { display: none; }
.nx-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 1900 / 600; }
.nx-slide a, .nx-slide img { display: block; width: 100%; height: 100%; }
.nx-slide img { object-fit: cover; }
.nx-sl-btn { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transition: opacity .2s; }
.nx-sl-btn.prev { left: 16px; } .nx-sl-btn.next { right: 16px; }
.nx-slides:hover .nx-sl-btn, .nx-sl-btn:focus-visible { opacity: 1; }
.nx-sl-dots { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(10, 30, 22, .35); backdrop-filter: blur(6px); }
.nx-sl-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .25s, background .25s; }
.nx-sl-dots button[aria-current] { width: 22px; background: #fff; }

/* ---------- ต้อนรับ ---------- */
.nx-intro { padding: 48px 0 16px; }
.nx-intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.nx-intro-text { align-self: center; padding: 8px 0; }
.nx-intro h1 { margin: 0; font: 500 clamp(28px, 3.6vw, 44px)/1.22 var(--display); color: var(--ink); text-wrap: balance; }
.nx-intro h1 span { color: var(--leaf); }
.nx-motto { margin: 14px 0 26px; font-size: 17.5px; color: var(--muted); }
.nx-bigsearch { position: relative; display: flex; align-items: center; gap: 8px; max-width: 600px; padding: 6px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.nx-bigsearch:focus-within { border-color: var(--leaf); }
.nx-bigsearch > i { position: absolute; left: 22px; color: var(--muted); }
.nx-bigsearch input { flex: 1; min-width: 0; height: 46px; padding: 0 8px 0 44px; border: 0; background: none; font: 400 16.5px var(--body); color: var(--text); }
.nx-bigsearch input:focus { outline: none; }
.nx-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14.5px; }
.nx-popular span { color: var(--muted); margin-right: 2px; }
.nx-popular a { padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none; }
.nx-popular a:hover { border-color: var(--leaf); background: var(--leaf-soft); }

.nx-askcard { position: relative; overflow: hidden; display: flex; min-height: 340px; padding: 30px 30px 26px; border-radius: 26px; color: #fff; background:
  radial-gradient(120% 90% at 100% 100%, rgba(245, 193, 66, .28), transparent 55%),
  linear-gradient(150deg, #13644A 0%, var(--ink) 55%, var(--ink-2) 100%); box-shadow: var(--shadow-lg); isolation: isolate; }
.nx-askcard::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 54 17v30L28 62 2 47V17z' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: 56px 64px; }
.nx-askcard-img { position: absolute; right: -6px; bottom: -8px; width: 190px; height: auto; z-index: -1; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25)); }
.nx-askcard-body { display: flex; flex-direction: column; max-width: calc(100% - 150px); }
.nx-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; }
.nx-dot { width: 8px; height: 8px; border-radius: 50%; background: #5BE39A; box-shadow: 0 0 0 4px rgba(91, 227, 154, .22); }
.nx-askcard h2 { margin: 0 0 8px; font: 500 27px/1.3 var(--display); color: #fff; }
.nx-askcard p { margin: 0 0 18px; color: #CFE6DA; font-size: 15px; }
.nx-askform { display: flex; margin-top: auto; padding: 5px; background: #fff; border-radius: 999px; }
.nx-askform input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 0; background: none; font: 400 15.5px var(--body); color: var(--text); }
.nx-askform input:focus { outline: none; }
.nx-askform button { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--sun); color: var(--ink-2); cursor: pointer; font-size: 15px; }
.nx-askform button:hover { background: #F0B323; }
.nx-askchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nx-askchips a { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff !important; text-decoration: none; font-size: 14px; background: rgba(255, 255, 255, .06); }
.nx-askchips a:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }

/* ---------- ทางลัด ---------- */
.nx-quick { padding-top: 56px; }
.nx-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.nx-tile { position: relative; height: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text) !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.nx-tile:hover { border-color: var(--leaf); box-shadow: var(--shadow); transform: translateY(-2px); }
.nx-tile:hover .nx-hex { background: var(--leaf); color: #fff; }
.nx-tile-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.nx-tile-text strong { font: 500 16.5px/1.35 var(--display); color: var(--ink); }
.nx-tile-text small { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.nx-tile-go { margin-left: auto; font-size: 12px; color: var(--muted); opacity: .6; transition: transform .2s, opacity .2s, color .2s; }
.nx-tile:hover .nx-tile-go { opacity: 1; color: var(--leaf); transform: translateX(2px); }

/* ---------- ข่าว ---------- */
.nx-news { background: var(--card); }
.nx-news-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 22px; }
.nx-news-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
.nx-news-card.is-lead { grid-row: span 2; grid-template-columns: 1fr; gap: 16px; }
.nx-news-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.nx-news-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nx-news-card:hover .nx-news-img img { transform: scale(1.04); }
.nx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.nx-tag { padding: 2px 10px; border-radius: 999px; background: var(--sun-soft); color: #6B4E00; font-weight: 500; font-size: 12.5px; }
.nx-news-card h3 { margin: 0; font: 500 17px/1.45 var(--display); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nx-news-card.is-lead h3 { font-size: 22px; -webkit-line-clamp: 2; }
.nx-news-card h3 a { text-decoration: none; color: inherit !important; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s; }
.nx-news-card h3 a:hover { background-size: 100% 1.5px; }
.nx-excerpt { margin: 8px 0 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- อัลบั้ม ---------- */
.nx-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nx-album { position: relative; display: block; aspect-ratio: 4 / 3.3; overflow: hidden; border-radius: 20px; color: #fff !important; text-decoration: none; background: var(--ink); box-shadow: var(--shadow); }
.nx-album-img, .nx-album-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.nx-album-img img { transition: transform .6s ease; }
.nx-album:hover .nx-album-img img { transform: scale(1.05); }
.nx-album-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 60px 20px 18px; background: linear-gradient(to top, rgba(8, 30, 22, .92), rgba(8, 30, 22, .55) 55%, transparent); }
.nx-album-cap time { font-size: 13px; color: var(--sun); }
.nx-album-cap strong { font: 500 17px/1.4 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-album-go { font-size: 14px; color: #D5E9DE; }
.nx-album-go i { font-size: 11px; margin-left: 4px; transition: transform .2s; }
.nx-album:hover .nx-album-go i { transform: translateX(3px); }

/* ---------- รู้จักโรงเรียน ---------- */
.nx-about { background: var(--card); border-top: 1px solid var(--line); }
.nx-about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.nx-lead { margin: 14px 0 26px; font-size: 17px; color: var(--muted); max-width: 52ch; }
.nx-values { display: grid; gap: 18px; margin: 0 0 28px; padding: 0; list-style: none; }
.nx-values li { display: flex; gap: 16px; align-items: flex-start; }
.nx-values strong { font: 500 17px/1.4 var(--display); color: var(--ink); }
.nx-values p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.nx-media { display: grid; gap: 14px; }
.nx-media-card { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 20px; text-decoration: none; color: #fff !important; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.nx-media-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.nx-media-card.is-video { background: linear-gradient(135deg, #13644A, var(--ink-2)); }
.nx-media-card.is-song { background: linear-gradient(135deg, #2E5E9E, #1D3F70); }
.nx-media-card.is-curr { background: var(--sun-soft); color: var(--ink) !important; box-shadow: none; border: 1px solid #F2DFA5; }
.nx-media-card small { display: block; font-size: 13px; opacity: .8; }
.nx-media-card strong { font: 500 19px/1.35 var(--display); }
.nx-play { width: 54px; height: 54px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 18px; }
.is-curr .nx-play { background: var(--sun); color: var(--ink-2); }

/* ---------- ชวนสมัคร ---------- */
.nx-cta-band { padding: 0 0 72px; background: var(--card); }
.nx-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 40px; border-radius: 26px; background: var(--sun); background-image: linear-gradient(120deg, #F8CF5E, var(--sun) 60%, #F0B323); color: var(--ink-2); }
.nx-cta-in h2 { margin: 0 0 4px; font: 500 clamp(22px, 2.6vw, 28px)/1.3 var(--display); color: var(--ink-2); }
.nx-cta-in p { margin: 0; color: #4A3A0A; }
.nx-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.nx-cta-in .nx-btn-line { border-color: rgba(14, 58, 44, .35); background: rgba(255, 255, 255, .35); }
.nx-cta-in .nx-btn-line:hover { background: rgba(255, 255, 255, .6); }

@media (max-width: 1099px) {
  .nx-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-news-grid { grid-template-columns: minmax(0, 1fr); }
  .nx-news-card.is-lead { grid-row: auto; }
  .nx-about-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 860px) {
  .nx-intro-grid { grid-template-columns: minmax(0, 1fr); }
  .nx-album-grid { grid-template-columns: 1fr 1fr; }
  .nx-album-grid > :nth-child(3) { display: none; }
  .nx-cta-in { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 720px) {
  .nx-slides-wrap { padding-top: 14px; }
  .nx-slides { border-radius: 16px; }
  .nx-slide { aspect-ratio: 1900 / 600; }
  .nx-sl-btn { display: none; }
  .nx-sl-dots { bottom: 8px; padding: 4px 8px; }
  .nx-section { padding: 52px 0; }
  .nx-intro { padding-top: 32px; }
  .nx-motto { font-size: 16px; margin-bottom: 20px; }
  .nx-bigsearch .nx-btn { padding: 0 16px; }
  .nx-news-card { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .nx-news-card h3 { font-size: 16px; }
  .nx-news-card .nx-excerpt { display: none; }
  .nx-news-card.is-lead .nx-excerpt { display: -webkit-box; }
  .nx-news-card.is-lead h3 { font-size: 19px; }
  .nx-askcard { padding: 24px 22px 22px; min-height: 0; }
  .nx-askcard-img { width: 132px; right: -10px; bottom: auto; top: 12px; }
  .nx-askcard-body { max-width: 100%; }
  .nx-askcard h2 { font-size: 23px; max-width: calc(100% - 110px); }
  .nx-askcard p:not(.nx-badge) { max-width: calc(100% - 110px); }
  .nx-cta-band { padding-bottom: 52px; }
}
@media (max-width: 560px) {
  .nx-quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nx-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px; }
  .nx-tile-go { position: absolute; top: 16px; right: 14px; }
  .nx-tile-text strong { font-size: 15.5px; }
  .nx-tile-text small { font-size: 12.5px; }
  .nx-hex { width: 44px; height: 50px; font-size: 17px; }
  .nx-album-grid { grid-template-columns: 1fr; }
  .nx-album-grid > :nth-child(3) { display: block; }
  .nx-album { aspect-ratio: 16 / 10; }
  .nx-sec-head { align-items: center; }
  .nx-sec-head .nx-more { font-size: 14.5px; }
  .nx-media-card { padding: 18px; }
  .nx-cta-btns, .nx-cta-btns .nx-btn { width: 100%; }
}
html.nx-lock tissa-widget { display: none; }
.nx-slide.is-broken, .nx-slide a.is-broken { display: grid; place-items: center; background: var(--ink); } .nx-slide.is-broken::after, .nx-slide a.is-broken::after { content: ""; width: 90px; height: 100px; background: url(../images/logo-mark.webp) center/contain no-repeat; opacity: .5; }

/* ---------- Open House ---------- */
.nx-oh-wrap { padding-top: 20px; }
.nx-oh { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px 34px; border-radius: 24px; color: #fff; background:
  radial-gradient(90% 120% at 100% 0, rgba(245, 193, 66, .35), transparent 55%),
  linear-gradient(135deg, var(--leaf) 0%, #13644A 45%, var(--ink-2) 100%); box-shadow: var(--shadow-lg); isolation: isolate; }
.nx-oh::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 54 17v30L28 62 2 47V17z' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: 56px 64px; }
.nx-oh-badge { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px; background: var(--sun); color: var(--ink-2); font: 600 12.5px/1.6 var(--body); letter-spacing: 1px; }
.nx-oh h2 { margin: 0 0 6px; font: 500 clamp(24px, 3vw, 34px)/1.2 var(--display); color: #fff; }
.nx-oh-detail { margin: 0 0 10px; color: #DCEFE5; }
.nx-oh-when { margin: 0 0 18px; color: #fff; font-size: 15px; }
.nx-oh-when i { color: var(--sun); margin-right: 4px; }
.nx-oh-count { padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(4px); text-align: center; }
.nx-oh-label { margin: 0 0 12px; font-size: 14px; letter-spacing: .5px; color: #CFE6DA; }
.nx-oh-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nx-oh-boxes[hidden], .nx-oh-live[hidden] { display: none; }
.nx-oh-boxes div { padding: 12px 4px 10px; border-radius: 14px; background: #fff; color: var(--ink); }
.nx-oh-boxes b { display: block; font: 500 clamp(26px, 3.2vw, 38px)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.nx-oh-boxes span { font-size: 13px; color: var(--muted); }
.nx-oh-live { margin: 0; font: 500 22px var(--display); color: var(--sun); }
@media (max-width: 860px) { .nx-oh { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; } }
@media (max-width: 720px) { .nx-oh-wrap { padding-top: 14px; } .nx-oh { border-radius: 18px; } .nx-oh-boxes { gap: 6px; } .nx-oh-count { padding: 14px; } }

/* ---------- หน้าย่อยเดิม: ใช้ฟอนต์เดียวกับหน้าแรก (ทับ Prompt/Kanit ที่ตั้งไว้ในแต่ละหน้า) ---------- */
.nx-inner #main:not(:has(.np-hero)), .nx-inner #main:not(:has(.np-hero)) *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]) { font-family: var(--body) !important; }
.nx-inner #main:not(:has(.np-hero)) h1, .nx-inner #main:not(:has(.np-hero)) h2 { font-family: var(--display) !important; font-weight: 500 !important; }

/* =========================================================
   หน้าย่อยแบบใหม่ (np-) — ใช้กับกลุ่มการรับสมัคร และหน้าอื่นต่อไป
   ========================================================= */
body.nx-inner { background: var(--paper); }
.np-hero { background: linear-gradient(160deg, #F4F8F3 0%, #E5F2EA 100%); border-bottom: 1px solid var(--line); }
.np-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 22px; font-size: 13.5px; color: var(--muted); }
.np-crumb a { color: var(--muted) !important; text-decoration: none; }
.np-crumb a:hover { color: var(--leaf) !important; }
.np-crumb i { font-size: 9px; }
.np-hero-in { display: flex; align-items: center; gap: 18px; padding: 16px 0 26px; }
.np-hero-ic { width: 64px; height: 72px; font-size: 26px; background: var(--card); }
.np-hero h1 { margin: 0; font: 500 clamp(26px, 3.4vw, 38px)/1.2 var(--display) !important; color: var(--ink); }
.np-hero-in p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.np-tabs { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.np-tabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.np-tabs-in::-webkit-scrollbar { display: none; }
.np-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 14px; white-space: nowrap; color: var(--muted) !important; text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 3px solid transparent; }
.np-tabs a i { font-size: 13px; }
.np-tabs a:hover { color: var(--ink) !important; }
.np-tabs a[aria-current] { color: var(--leaf) !important; border-bottom-color: var(--leaf); }

.np-sec { padding: 44px 0; }
.np-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.np-head { margin-bottom: 20px; }
.np-head h2 { margin: 0; font: 500 clamp(22px, 2.6vw, 28px)/1.3 var(--display) !important; color: var(--ink); }
.np-head p:not(.nx-eyebrow) { margin: 6px 0 0; color: var(--muted); }
.np-note { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }
.np-note i { color: var(--leaf); margin-right: 4px; }
.np-note a { color: var(--leaf) !important; font-weight: 500; }
.np-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.np-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.np-card { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.np-alt .np-card { background: var(--paper); }
.np-card h3 { margin: 10px 0 6px; font: 500 18px/1.35 var(--display) !important; color: var(--ink); }
.np-card p { margin: 0; color: var(--muted); font-size: 15px; }
.np-card-row { display: flex; gap: 16px; align-items: flex-start; }
.np-card-row h3 { margin-top: 2px; }
.np-card-warn { background: var(--sun-soft) !important; border-color: #F2DFA5; }
.np-card-warn h3 { margin-top: 0; color: #6B4E00; }
.np-card-warn h3 i { margin-right: 6px; }
.np-card-warn ul { margin: 0; padding-left: 20px; color: #4A3A0A; line-height: 1.8; }
.np-warn { margin-top: 10px !important; color: #8A5A00 !important; font-size: 14px !important; }

.np-alert { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff !important; text-decoration: none; }
.np-alert > i { color: var(--sun); }
.np-alert span { flex: 1; }
.np-alert em { font-style: normal; font-weight: 600; color: var(--sun); white-space: nowrap; }
.np-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.np-facts li { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.np-facts b { display: block; font: 500 32px/1.1 var(--display); color: var(--leaf); }
.np-facts span { display: block; margin-top: 4px; font-weight: 600; }
.np-facts small { color: var(--muted); font-size: 13px; }
.np-facts a { color: var(--leaf) !important; }

.np-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: tl; }
.np-timeline li { position: relative; padding: 18px; padding-top: 44px; background: var(--paper); border-radius: 16px; border: 1px solid var(--line); counter-increment: tl; }
.np-timeline li::before { content: counter(tl); position: absolute; top: 14px; left: 18px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--leaf); color: #fff; font-size: 12px; font-weight: 700; }
.np-tl-m { position: absolute; top: 14px; left: 48px; font-size: 13px; font-weight: 600; color: var(--leaf); }
.np-timeline b { display: block; font: 500 17px/1.35 var(--display); color: var(--ink); }
.np-timeline small { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.np-level { display: block; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; color: inherit !important; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.np-level:hover { border-color: var(--leaf); transform: translateY(-2px); box-shadow: var(--shadow); }
.np-level h3 { margin: 14px 0 10px; font: 500 21px var(--display) !important; color: var(--ink); }
.np-level h3 small { font: 400 14px var(--body); color: var(--muted); margin-left: 6px; }
.np-level ul { margin: 0 0 16px; padding-left: 20px; color: var(--text); line-height: 1.9; }
.np-more { color: var(--leaf); font-weight: 600; }
.np-more i { font-size: 12px; transition: transform .2s; }
.np-level:hover .np-more i { transform: translateX(3px); }

.np-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.np-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.np-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 52px 18px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; counter-increment: st; }
.np-alt .np-steps li { background: var(--paper); }
.np-sec:not(.np-alt) .np-steps li { background: var(--card); }
.np-steps li::before { content: counter(st); position: absolute; top: 14px; left: 18px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--sun); color: var(--ink-2); font: 500 15px var(--display); }
.np-steps b { font-weight: 600; color: var(--ink); }
.np-steps span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.np-steps a { margin-top: auto; padding-top: 8px; color: var(--leaf) !important; font-weight: 600; font-size: 14px; }

.np-levels4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.np-levels4 .np-card { position: relative; }
.np-age { font: 500 16px var(--display) !important; color: var(--leaf) !important; }
.np-born { margin-top: 10px !important; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px !important; color: var(--text) !important; }
.np-born small { display: block; color: var(--muted); font-size: 12.5px; }
.np-tag { position: absolute; top: 18px; right: 18px; padding: 2px 10px; border-radius: 99px; background: var(--ink); color: var(--sun); font-size: 12px; font-weight: 700; }
.np-tag-note { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.np-cta-line { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 20px; background: var(--card); border: 1.5px dashed var(--leaf); border-radius: 16px; color: inherit !important; text-decoration: none; }
.np-cta-line > i { font-size: 22px; color: var(--leaf); }
.np-cta-line span { flex: 1; color: var(--muted); }
.np-cta-line b { color: var(--ink); }
.np-cta-line em { font-style: normal; font-weight: 600; color: var(--leaf); white-space: nowrap; }
.np-cta-line:hover { background: var(--leaf-soft); }

.np-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.np-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.np-table th, .np-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.np-table thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.np-table tbody tr:last-child > * { border-bottom: 0; }
.np-table tbody th { font-weight: 600; color: var(--ink); }
.np-table .r { text-align: right; white-space: nowrap; }
.np-grp th { background: var(--leaf-soft); color: var(--leaf) !important; font-size: 13px; letter-spacing: .3px; padding: 8px 18px !important; }
.np-prog { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: var(--sun-soft); color: #6B4E00; font-size: 12px; font-weight: 600; }
.np-amt { font: 500 18px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.np-year { color: var(--muted); font-variant-numeric: tabular-nums; }

.np-checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.np-checks-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.np-checks li { position: relative; padding: 14px 16px 14px 46px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 14.5px; }
.np-alt .np-checks li { background: var(--paper); }
.np-checks li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 16px; top: 15px; color: var(--leaf); }
.np-checks b { display: block; color: var(--ink); font-weight: 600; }
.np-num { flex-shrink: 0; min-width: 56px; height: 44px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--sun); font: 500 15px var(--display); }

.np-grid-doc { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.np-doclist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.np-doclist label { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.np-doclist input { position: absolute; opacity: 0; pointer-events: none; }
.np-doc-box { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 8px; color: transparent; font-size: 13px; transition: .2s; }
.np-doclist input:checked + .np-doc-box { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.np-doclist label:has(input:checked) { border-color: var(--leaf); background: var(--leaf-soft); }
.np-doclist input:focus-visible + .np-doc-box { outline: 3px solid var(--sun); outline-offset: 2px; }
.np-doc-text { flex: 1; min-width: 0; }
.np-doc-text b { display: block; color: var(--ink); }
.np-doc-text small { color: var(--muted); font-size: 13.5px; }
.np-who { flex-shrink: 0; padding: 2px 10px; border-radius: 99px; background: #EEF1EF; color: var(--muted); font-size: 12px; font-weight: 600; }
.np-who.is-all { background: var(--leaf-soft); color: var(--leaf); }
.np-print { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.np-print:hover { border-color: var(--leaf); }
.np-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.np-side h3 { margin-top: 0; }
.np-side h3 i { color: var(--leaf); margin-right: 6px; }
.np-mini-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.np-mini-steps b { display: block; color: var(--ink); }
.np-mini-steps span { color: var(--muted); font-size: 14px; }

.np-fees { margin: 0; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.np-fees li { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.np-fees li:last-child { border-bottom: 0; }
.np-fees b { font-variant-numeric: tabular-nums; color: var(--ink); }
.np-fees .is-total { background: var(--ink); color: #fff; }
.np-fees .is-total b { color: var(--sun); font: 500 18px var(--display); }
.np-pay { gap: 12px; }
.np-pay .np-card h3 { font-size: 16px !important; }

.np-help { position: relative; display: flex; align-items: center; gap: 22px; padding: 26px 30px 26px 150px; border-radius: 24px; color: #fff; background: radial-gradient(90% 140% at 100% 0, rgba(245, 193, 66, .3), transparent 55%), linear-gradient(135deg, #13644A, var(--ink) 60%, var(--ink-2)); overflow: hidden; }
.np-help img { position: absolute; left: 28px; bottom: -14px; width: 104px; height: auto; }
.np-help-text { flex: 1; min-width: 0; }
.np-help h2 { margin: 0 0 4px; font: 500 22px var(--display) !important; color: #fff; }
.np-help p { margin: 0 0 12px; color: #D5EADF; font-size: 14.5px; }
.np-help-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.np-help-chips a { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff !important; text-decoration: none; font-size: 13.5px; }
.np-help-chips a:hover { background: rgba(255, 255, 255, .18); }
.np-help-btns { display: grid; gap: 10px; flex-shrink: 0; }

@media (max-width: 1099px) {
  .np-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .np-levels4, .np-facts, .np-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-grid-doc { grid-template-columns: minmax(0, 1fr); }
  .np-side { position: static; }
  .np-help { flex-wrap: wrap; }
  .np-help-btns { grid-auto-flow: column; }
}
@media (max-width: 720px) {
  .np-sec { padding: 32px 0; }
  .np-hero-in { padding-bottom: 20px; gap: 14px; }
  .np-hero-ic { width: 52px; height: 58px; font-size: 21px; }
  .np-grid2, .np-grid3, .np-steps, .np-steps-3, .np-checks-4 { grid-template-columns: minmax(0, 1fr); }
  .np-table th, .np-table td { padding: 11px 12px; font-size: 14px; }
  .np-table .np-year { display: none; }
  .np-fee thead th:last-child { display: none; }
  .np-help { padding: 22px 20px 22px; }
  .np-help img { display: none; }
  .np-help-btns { grid-auto-flow: row; width: 100%; }
  .np-cta-line { flex-wrap: wrap; }
  .np-alert { flex-wrap: wrap; }
}
@media (max-width: 420px) { .np-levels4, .np-facts, .np-timeline { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .np-hero .np-tabs, .np-help, .np-print, .np-side, .nx-oh-wrap { display: none !important; }
  .np-doclist label { break-inside: avoid; }
}

.np-level ul, .np-card-warn ul { list-style: disc; }
.np-mini-steps { list-style: decimal; }

/* ---------- คำนวณอายุ ---------- */
.np-age-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.np-age-form { padding: 24px; }
.np-age-h { margin: 0 0 16px !important; font: 500 20px var(--display) !important; color: var(--ink); }
.np-age-h i { color: var(--leaf); margin-right: 6px; }
.np-sel3 { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; }
.np-sel3 label span { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.np-sel3 select { width: 100%; height: 50px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 500 16px var(--body); color: var(--text); }
.np-sel3 select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(31, 138, 91, .15); }
.np-age-more { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 14.5px; }
.np-age-more summary { cursor: pointer; color: var(--muted); list-style: none; }
.np-age-more summary::-webkit-details-marker { display: none; }
.np-age-more summary b { color: var(--ink); }
.np-age-more summary span { color: var(--leaf); font-weight: 600; }
.np-age-more .np-sel3 { margin-top: 12px; }
.np-age-hint { display: block; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.np-age-reset { margin-top: 18px; }
.np-age-out { display: grid; border-radius: 18px; overflow: hidden; background: radial-gradient(90% 140% at 100% 0, rgba(245, 193, 66, .28), transparent 55%), linear-gradient(140deg, #13644A, var(--ink) 60%, var(--ink-2)); color: #fff; }
.np-age-empty { display: grid; place-items: center; align-content: center; gap: 10px; padding: 40px 20px; text-align: center; color: #CFE6DA; }
.np-age-empty i { font-size: 36px; color: var(--sun); }
.np-age-empty p { margin: 0; }
.np-age-result { padding: 28px; display: grid; gap: 14px; align-content: center; }
.np-age-result[hidden], .np-age-empty[hidden] { display: none; }
.np-age-label { margin: 0; color: #CFE6DA; font-size: 14px; }
.np-age-big { margin: 0; font: 500 clamp(28px, 3.4vw, 38px)/1.2 var(--display); color: #fff; }
.np-age-class { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: #fff; color: var(--text); }
.np-age-class small { display: block; color: var(--muted); font-size: 12.5px; }
.np-age-class b { display: block; font: 500 21px var(--display); color: var(--leaf); }
.np-age-class p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.np-age-class.is-warn b { color: #B07E26; }
.np-age-class.is-warn .nx-hex { background: var(--sun-soft); color: #B07E26; }
.np-age-result .nx-btn { justify-self: start; }
.np-age-result .nx-btn[hidden] { display: none; }
@media (max-width: 860px) { .np-age-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .np-sel3 { grid-template-columns: 1fr 1.5fr; } .np-sel3 label:last-child { grid-column: 1 / -1; } }

/* ---------- การเรียนการสอน ---------- */
.np-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.np-grid4 .np-card h3, .np-grid2 .np-card h3, .np-grid3 .np-card h3 { margin: 12px 0 6px; }
.np-card-row h3 { margin: 2px 0 4px !important; }
.np-cur-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.np-prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.np-level-p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.np-card.np-quote small, .np-vision small { display: block; color: var(--leaf); font-weight: 600; font-size: 13px; letter-spacing: .04em; margin-bottom: 6px; }
.np-quote p { margin: 0; color: var(--text); line-height: 1.75; }
.np-quote .np-big { font: 500 20px/1.5 var(--display); color: var(--ink); }
.np-vision { border-left: 4px solid var(--sun); }
.np-vision p { font-size: 17px; }
.np-focus { margin-top: 8px !important; font-size: 14px; color: var(--ink) !important; }
.np-num small { font-size: 11px; margin-left: 2px; color: rgba(255, 255, 255, .7); }
.np-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.np-acts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.np-acts i { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--leaf-soft); color: var(--leaf); }
.np-acts b { color: var(--ink); font-weight: 600; }
.np-acts span { color: var(--muted); font-size: 13.5px; }
.np-day { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--leaf-soft); }
.np-day li { position: relative; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 12px 0 12px 24px; }
.np-day li::before { content: ''; position: absolute; left: -8px; top: 18px; width: 13px; height: 13px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--paper); }
.np-day time { min-width: 120px; font: 500 16px var(--display); color: var(--leaf); }
.np-day span { color: var(--text); }
.np-subj { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.np-subj li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.np-subj i { color: var(--leaf); width: 20px; text-align: center; }
.np-subj span { flex: 1; min-width: 0; }
.np-subj b { color: var(--ink); font-weight: 600; white-space: nowrap; font-size: 14px; }
.np-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.np-pills li { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.np-alt .np-pills li, .np-alt .np-subj li, .np-alt .np-acts li { background: var(--paper); }
.np-mini-cards .np-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.np-mini-cards .np-card h3 { margin: 0 !important; font-size: 16px !important; }
@media (max-width: 1099px) { .np-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .np-grid4 { grid-template-columns: minmax(0, 1fr); } .np-mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 420px) { .np-facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .np-facts-2 li { padding: 14px; } .np-facts-2 b { font-size: 26px; } }

/* ---------- ข่าวสาร / ค้นหา ---------- */
.np-hero-plain .np-hero-in { padding-bottom: 22px; }
.np-hero-search { display: flex; align-items: center; gap: 10px; max-width: 680px; margin: 0 0 28px; padding: 6px 6px 6px 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; box-shadow: 0 6px 20px rgba(14, 74, 56, .06); }
.np-hero-search:focus-within { border-color: var(--leaf); }
.np-hero-search > i { color: var(--muted); }
.np-hero-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); padding: 10px 0; }
.np-hero-search .nx-btn { padding: 10px 22px; }
#main:has(.np-article) .np-hero h1 { font-size: clamp(22px, 2.6vw, 32px) !important; line-height: 1.35 !important; }
.np-result-line { margin: 0 0 20px; color: var(--muted); }
.np-result-line b { color: var(--ink); }
.np-result-line a { color: var(--leaf) !important; margin-left: 4px; }
.np-empty { padding: 56px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 20px; }
.np-empty > i { font-size: 44px; color: var(--leaf); opacity: .5; }
.np-empty h2 { margin: 14px 0 6px; font: 500 22px var(--display) !important; color: var(--ink); }
.np-empty a { color: var(--leaf) !important; }
.np-empty .nx-btn { color: #fff !important; margin-top: 8px; }

.np-news { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.np-news:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.np-news-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--leaf-soft); }
.np-news-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.np-news:hover .np-news-img img { transform: scale(1.04); }
.np-news-img.is-broken { display: grid; place-items: center; }
.np-news-img.is-broken::after { content: ''; width: 60px; height: 68px; background: url(../images/logo-mark.webp) center/contain no-repeat; opacity: .35; }
.np-news-body { padding: 16px 18px 20px; display: grid; gap: 8px; align-content: start; }
.np-news-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.np-news h3 { margin: 0; font: 500 18px/1.45 var(--display) !important; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.np-news h3 a { color: inherit !important; text-decoration: none; }
.np-news h3 a::after { content: ''; position: absolute; inset: 0; }
.np-news { position: relative; }
.np-news h3 a:hover { color: var(--leaf) !important; }
.np-news-ex { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-news.is-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 20px; }
.np-news.is-lead .np-news-img { aspect-ratio: auto; min-height: 300px; }
.np-news.is-lead .np-news-body { padding: 30px 32px; align-content: center; gap: 12px; }
.np-news.is-lead h3 { font-size: clamp(21px, 2.2vw, 28px) !important; -webkit-line-clamp: 4; }
.np-news.is-lead .np-news-ex { -webkit-line-clamp: 4; font-size: 15.5px; }
.np-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.np-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.np-pager a, .np-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; text-decoration: none; font-weight: 600; }
.np-pager a:hover { border-color: var(--leaf); background: var(--leaf-soft); }
.np-pager [aria-current] { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.np-pager .np-pager-gap { border: 0; background: none; min-width: 20px; padding: 0; color: var(--muted) !important; }

.np-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.np-article { min-width: 0; }
.np-article-meta { margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.np-lede { margin: 0 0 22px; font-size: 18px; line-height: 1.75; color: var(--ink); padding-left: 16px; border-left: 4px solid var(--sun); }
.np-cover { margin: 0 0 26px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--leaf-soft); }
.np-cover img { display: block; width: 100%; height: auto; max-height: 720px; object-fit: contain; background: #fff; }
.np-prose { font-size: 17px; line-height: 1.9; color: var(--text); overflow-wrap: anywhere; }
.np-prose > :first-child { margin-top: 0; }
.np-prose p { margin: 0 0 1.1em; }
.np-prose h1, .np-prose h2, .np-prose h3, .np-prose h4 { margin: 1.6em 0 .6em; font-family: var(--display) !important; font-weight: 500 !important; color: var(--ink); line-height: 1.4; }
.np-prose h1, .np-prose h2 { font-size: 24px; } .np-prose h3 { font-size: 20px; } .np-prose h4 { font-size: 18px; }
.np-prose ul, .np-prose ol { margin: 0 0 1.1em; padding-left: 1.6em; }
.np-prose ul { list-style: disc; } .np-prose ol { list-style: decimal; }
.np-prose li { margin: .25em 0; }
.np-prose a { color: var(--leaf) !important; text-decoration: underline; text-underline-offset: 3px; }
.np-prose img { display: block; max-width: 100% !important; height: auto !important; margin: 1.2em auto; border-radius: 14px; }
.np-prose figure { margin: 1.2em 0; max-width: 100%; } .np-prose figcaption { text-align: center; font-size: 14px; color: var(--muted); }
.np-prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--leaf); background: var(--leaf-soft); border-radius: 0 12px 12px 0; }
.np-prose iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; margin: 1.2em 0; }
.np-prose table { border-collapse: collapse; width: 100%; font-size: 15px; } .np-prose td, .np-prose th { border: 1px solid var(--line); padding: 8px 10px; }
.np-prose strong, .np-prose b { color: var(--ink); }
.np-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 30px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.np-share > span { font-weight: 600; color: var(--ink); margin-right: 4px; }
.np-share a, .np-share button { height: 42px; min-width: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.np-share b { font-weight: 500; }
.np-share .is-fb { background: #1877F2; border-color: #1877F2; color: #fff !important; padding: 0; }
.np-share .is-line { background: #06C755; border-color: #06C755; color: #fff !important; padding: 0; font-size: 19px; }
.np-share button:hover { border-color: var(--leaf); background: var(--leaf-soft); }
.np-share [hidden] { display: none; }
.np-prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.np-prevnext a { display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: inherit !important; text-decoration: none; }
.np-prevnext a:hover { border-color: var(--leaf); }
.np-prevnext .is-next { text-align: right; }
.np-prevnext small { color: var(--leaf); font-weight: 600; }
.np-prevnext b { color: var(--ink); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-article-side .np-card h3 { margin: 0 0 12px; font: 500 18px var(--display) !important; color: var(--ink); }
.np-mini-news { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 4px; }
.np-mini-news a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 12px; color: inherit !important; text-decoration: none; }
.np-mini-news a:hover { background: var(--leaf-soft); }
.np-mini-img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--leaf-soft) url(../images/logo-mark.webp) center / 26px no-repeat; }
.np-mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-mini-news b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.np-mini-news small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.np-muted { color: var(--muted); }

.np-search-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.np-sub-h { margin: 28px 0 12px; font: 500 19px var(--display) !important; color: var(--ink); }
.np-sub-h:first-child { margin-top: 0; }
.np-sub-h small { font: 400 14px var(--body); color: var(--muted); margin-left: 6px; }
.np-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.np-chips a { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none; }
.np-chips a:hover { border-color: var(--leaf); background: var(--leaf-soft); }
.np-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 8px; }
.np-filter::-webkit-scrollbar { display: none; }
.np-filter a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; text-decoration: none; font-size: 14.5px; }
.np-filter a small { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 12px; text-align: center; }
.np-filter a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.np-filter a[aria-current] small { background: rgba(255, 255, 255, .18); color: #fff; }
.np-site-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.np-site-hits a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; text-decoration: none; font-weight: 500; }
.np-site-hits a > i:first-child { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--leaf-soft); color: var(--leaf); }
.np-site-hits a span { flex: 1; min-width: 0; }
.np-site-hits a:hover { border-color: var(--leaf); }
.np-ext { font-size: 11px; color: var(--muted); }
.np-results { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.np-results a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: inherit !important; text-decoration: none; }
.np-results a:hover { border-color: var(--leaf); box-shadow: var(--shadow); }
.np-res-img { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--leaf-soft); display: grid; place-items: center; color: var(--leaf); font-size: 22px; }
.np-res-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.np-res-body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.np-res-body small { color: var(--muted); font-size: 13px; }
.np-res-body b { font: 500 17px/1.45 var(--display); color: var(--ink); }
.np-res-sn { color: var(--muted); font-size: 14.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-results mark, .np-site-hits mark { background: var(--sun-soft); color: inherit; padding: 0; border-radius: 3px; box-shadow: 0 0 0 1px var(--sun-soft); }
.np-ask { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: 20px; background: linear-gradient(150deg, var(--ink), var(--ink-2)); color: #fff; }
.np-ask img { width: 72px; height: auto; align-self: end; }
.np-ask h3 { margin: 0 0 6px; font: 500 18px var(--display) !important; color: var(--sun); }
.np-ask p { margin: 0 0 14px; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.np-ask .nx-btn { padding: 10px 16px; font-size: 14px; }

@media (max-width: 1099px) {
  .np-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-article-grid, .np-search-grid { grid-template-columns: minmax(0, 1fr); }
  .np-article-side, .np-search-grid .np-side { position: static; }
}
@media (max-width: 720px) {
  .np-news.is-lead { grid-template-columns: minmax(0, 1fr); }
  .np-news.is-lead .np-news-img { min-height: 0; aspect-ratio: 16 / 10; }
  .np-news.is-lead .np-news-body { padding: 18px 18px 22px; }
  .np-news-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .np-prose { font-size: 16px; }
  .np-lede { font-size: 16.5px; }
  .np-prevnext { grid-template-columns: minmax(0, 1fr); }
  .np-results a { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .np-res-body b { font-size: 16px; }
  .np-hero-search { margin-bottom: 20px; }
  .np-hero-search .nx-btn { padding: 10px 16px; }
  .np-share > span { width: 100%; }
}
@media print { .np-share, .np-prevnext, .np-article-side, .np-hero-search { display: none !important; } .np-article-grid { display: block; } }

/* ---------- ภาพกิจกรรม / เอกสาร / ติดต่อ ---------- */
.np-filter + .np-result-line, .np-filter + .np-album-grid, .np-filter + .np-empty { margin-top: 16px; }
.np-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.np-album { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: inherit !important; text-decoration: none; transition: box-shadow .2s, transform .2s; }
a.np-album:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.np-album-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--leaf-soft); }
.np-album-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
a.np-album:hover .np-album-img img { transform: scale(1.05); }
.np-album-img.is-broken { display: grid; place-items: center; }
.np-album-img.is-broken::after { content: ''; width: 60px; height: 68px; background: url(../images/logo-mark.webp) center/contain no-repeat; opacity: .35; }
.np-album-img em { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 58, 44, .82); color: #fff; font-style: normal; font-size: 13px; font-weight: 500; backdrop-filter: blur(4px); }
.np-album-body { display: grid; gap: 6px; padding: 14px 18px 18px; }
.np-album-body small { color: var(--muted); font-size: 13px; }
.np-album-body b { font: 500 17px/1.45 var(--display); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.np-docs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.np-docs li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.np-docs li:hover { border-color: var(--leaf); }
.np-doc-ic { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; font-size: 21px; background: var(--leaf-soft); color: var(--leaf); }
.np-doc-ic.is-pdf { background: #FDECEC; color: #D43A3A; } .np-doc-ic.is-doc { background: #E8F0FD; color: #2B5BD7; }
.np-doc-ic.is-xls { background: #E6F5EC; color: #1E7B45; } .np-doc-ic.is-ppt { background: #FDF0E6; color: #D2641C; }
.np-doc-ic.is-form { background: #F1EBFB; color: #6D3FC0; } .np-doc-ic.is-drive { background: var(--sun-soft); color: #B07E26; }
.np-doc-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.np-doc-main b { font: 500 17px/1.45 var(--display); color: var(--ink); }
.np-doc-main > span { color: var(--muted); font-size: 14.5px; }
.np-doc-main small { color: var(--muted); font-size: 13px; }
.np-docs .nx-btn { flex-shrink: 0; padding: 10px 16px; font-size: 14px; }
.np-side-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.np-side-links a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink) !important; text-decoration: none; }
.np-side-links a:hover { background: var(--leaf-soft); }
.np-side-links i { width: 20px; text-align: center; color: var(--leaf); }
.np-side .np-card h3 { margin: 0 0 10px; font: 500 17px var(--display) !important; color: var(--ink); }
.np-side .np-card-warn p { margin: 0; font-size: 14px; line-height: 1.7; }

.np-contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.np-contact { display: flex; flex-direction: column; gap: 8px; }
.np-contact h3 { margin: 8px 0 0; font: 500 19px var(--display) !important; color: var(--ink); }
.np-contact p { margin: 0; color: var(--muted); }
.np-contact p a { color: var(--leaf) !important; font-weight: 600; word-break: break-all; }
.np-contact.is-call { background: var(--leaf-soft); border-color: transparent; }
.np-contact-btns { display: grid; gap: 8px; }
.np-contact-btns .nx-btn { justify-content: center; font-size: 16px; }
.np-copy { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; }
.np-copy b { font-weight: 500; }
.nx-btn.np-copy { padding: 12px 20px; font-size: 15px; align-self: auto; }
.np-copy:hover { border-color: var(--leaf); }
.np-hours { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.np-hours li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.np-hours b { color: var(--ink); }
.np-map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: center; }
.np-addr { display: flex; gap: 12px; margin: 0 0 8px; font-size: 16px; line-height: 1.75; }
.np-addr > i { color: var(--leaf); font-size: 20px; margin-top: 5px; }
.np-addr b { display: block; color: var(--ink); }
.np-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--leaf-soft); aspect-ratio: 4 / 3; }
.np-map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 1099px) {
  .np-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-map-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .np-album-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .np-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .np-docs li { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .np-doc-main { flex-basis: calc(100% - 64px); }
  .np-docs .nx-btn { width: 100%; justify-content: center; }
  .np-map { aspect-ratio: 1 / 1; }
}
.np-doc-main b, .np-album-body b, .np-res-body b { overflow-wrap: anywhere; }
.np-contact.is-call .nx-hex { background: var(--card); }
.np-site-hits-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .np-site-hits-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .np-site-hits-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- เกี่ยวกับโรงเรียน ---------- */
.np-body { margin: 0 0 1em; font-size: 16.5px; line-height: 1.9; color: var(--text); }
.np-grid-top { align-items: start; }
.np-tl { position: relative; margin: 0; padding: 0; list-style: none; }
.np-tl::before { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 3px; margin-left: -1.5px; background: linear-gradient(var(--leaf), var(--sun)); border-radius: 3px; }
.np-tl li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; padding: 10px 0; }
.np-tl li::before { content: ''; position: absolute; left: 50%; top: 24px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--card); border: 3px solid var(--leaf); z-index: 1; }
.np-tl li.is-key::before { width: 22px; height: 22px; margin-left: -11px; top: 21px; background: var(--sun); border-color: var(--ink); }
.np-tl-year { align-self: start; padding-top: 16px; font: 500 22px var(--display); color: var(--leaf); text-align: right; }
.np-tl-card { padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.np-tl li.is-key .np-tl-card { border-color: var(--leaf); box-shadow: var(--shadow); }
.np-tl-card h3 { margin: 0 0 6px; font: 500 18px/1.45 var(--display) !important; color: var(--ink); }
.np-tl-card p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 15px; }
.np-tl li:nth-child(even) .np-tl-year { order: 2; text-align: left; }
.np-tl li:nth-child(even) .np-tl-card { order: 1; }
.np-motto-hero { position: relative; overflow: hidden; margin-bottom: 20px; padding: 44px 32px; text-align: center; border-radius: 26px; background: linear-gradient(150deg, var(--ink), var(--ink-2)); color: #fff; }
.np-motto-hero::after { content: ''; position: absolute; right: -40px; bottom: -50px; width: 220px; height: 250px; background: url(../images/logo-mark.webp) center/contain no-repeat; opacity: .08; }
.np-motto-hero small { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(245, 193, 66, .16); color: var(--sun); font-weight: 600; letter-spacing: .04em; }
.np-motto-hero p { position: relative; z-index: 1; margin: 16px 0 0; font: 500 clamp(24px, 3.6vw, 40px)/1.45 var(--display); color: #fff; }
.np-numlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: none; }
.np-numlist li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.np-alt .np-numlist li { background: var(--paper); }
.np-numlist span { flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--sun); font: 500 15px var(--display); }
.np-numlist p { margin: 3px 0 0; line-height: 1.75; color: var(--text); }
.np-symbol { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: center; }
.np-symbol-img { margin: 0; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.np-symbol-img img { display: block; width: 100%; height: auto; }
.np-swatches { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.np-swatches li { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.np-swatches span { display: block; height: 64px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .1); margin-bottom: 12px; }
.np-swatches b { font: 500 17px var(--display); color: var(--ink); }
.np-swatches p { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.np-school-colors { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: center; }
.np-sc-band { display: grid; grid-template-columns: 1fr 1fr; height: 150px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.np-sc-band span:first-child { background: var(--leaf); } .np-sc-band span:last-child { background: var(--sun); }
@media (max-width: 1099px) { .np-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .np-tl::before { left: 9px; }
  .np-tl li { grid-template-columns: minmax(0, 1fr); padding: 8px 0 8px 34px; }
  .np-tl li::before { left: 9px; top: 12px; }
  .np-tl li.is-key::before { top: 9px; }
  .np-tl-year, .np-tl li:nth-child(even) .np-tl-year { order: 0; text-align: left; padding: 0 0 6px; font-size: 19px; }
  .np-tl li:nth-child(even) .np-tl-card { order: 1; }
  .np-motto-hero { padding: 32px 20px; }
  .np-symbol, .np-school-colors { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .np-symbol-img { max-width: 220px; margin: 0 auto; }
  .np-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-sc-band { height: 90px; }
}
@media (max-width: 420px) { .np-swatches { grid-template-columns: minmax(0, 1fr); } }
.np-ask > div { min-width: 0; }
.np-ask .nx-btn { display: flex; max-width: 100%; min-width: 0; }
.np-ask .nx-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1100px) { .np-search-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.np-404 .np-empty { max-width: 760px; margin: 20px auto; }
.np-404 .np-empty > p { margin: 0 0 20px; }
.np-404 .np-hero-search { margin: 0 auto 22px; text-align: left; }
.np-404 .np-site-hits { text-align: left; }
.np-pay-cs { align-items: start; }
.np-pay-cs .np-mini-steps { margin: 0 0 18px; }
.np-pay-cs .np-sub-h { margin-top: 0; }
.np-late { margin-top: 14px; }
.np-late p { margin: 0; font-size: 14.5px; line-height: 1.7; }
