/* ══════════════════════════════════════════════════════════════
   หัวเว็บ · หน้าแรก · ท้ายเว็บ — โรงเรียนอนุบาลบรรพตพิสัย (วัดส้มเสี้ยว)
   โทนสีประจำโรงเรียน: น้ำเงิน + เหลือง · ตกแต่งด้วยดอกบัวจริง
   ฟอนต์: Prompt (หัวข้อ) + Anuphan (เนื้อหา)
   ทุก class ขึ้นต้นด้วย hp- เพื่อไม่ชนกับ app.css
   ══════════════════════════════════════════════════════════════ */

/* ฟอนต์ใหม่ทั้งเว็บ (app.css อ่านจากตัวแปรเหล่านี้) */
:root {
    --font-display: "Prompt", system-ui, sans-serif;
    --font-body: "Anuphan", "Prompt", system-ui, sans-serif;
}
body { font-family: var(--font-body); }

.hp-page, .hp-chrome {
    --hp-navy: #0a2472;
    --hp-navy-2: #123a9c;
    --hp-blue: #1d4ed8;
    --hp-sky: #e8f0ff;
    --hp-yellow: #fcd34d;
    --hp-yellow-2: #f5b301;
    --hp-yellow-deep: #d99a00;
    --hp-yellow-soft: #fff7d6;
    --hp-ink: #13213f;
    --hp-muted: #56627f;
    --hp-line: #e3e8f3;
    --hp-radius: 18px;
    --hp-shadow: 0 12px 32px -14px rgba(10, 36, 114, .28);
    --hp-display: 'Prompt', 'Anuphan', system-ui, sans-serif;
    --hp-body: 'Anuphan', 'Prompt', system-ui, sans-serif;

    position: relative;
    overflow-x: clip;
    color: var(--hp-ink);
    font-family: var(--hp-body);
    font-size: 16px;
    line-height: 1.6;
}
.hp-page {
    background:
        radial-gradient(1100px 520px at 0% 0%, #fff8db 0%, transparent 60%),
        radial-gradient(1000px 600px at 100% 30%, #e6efff 0%, transparent 60%),
        #fbfcff;
}
:is(.hp-page, .hp-chrome) *, :is(.hp-page, .hp-chrome) *::before, :is(.hp-page, .hp-chrome) *::after { box-sizing: border-box; }
:is(.hp-page, .hp-chrome) :where(a) { color: inherit; text-decoration: none; }
:is(.hp-page, .hp-chrome) :where(img) { max-width: 100%; display: block; }
:is(.hp-page, .hp-chrome) :where(h1, h2, p, ul, figure) { margin: 0; padding: 0; }
:is(.hp-page, .hp-chrome) :where(ul) { list-style: none; }
:is(.hp-page, .hp-chrome) :where(button) { font: inherit; cursor: pointer; }
:is(.hp-page, .hp-chrome) :focus-visible { outline: 3px solid var(--hp-yellow-2); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hp-wrap { width: min(1440px, 100% - 32px); margin-inline: auto; }

/* ภาพตกแต่ง (ดอกบัวจริง ตัดพื้นหลัง) */
.hp-deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; height: auto; max-width: none; }

/* ── แถบบน ─────────────────────────────────────────────── */
.hp-topbar {
    background: linear-gradient(90deg, var(--hp-navy) 0%, var(--hp-navy-2) 55%, var(--hp-navy) 100%);
    color: #fff; font-size: .84rem; position: relative; z-index: 3;
    border-bottom: 3px solid var(--hp-yellow-2);
}
.hp-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.hp-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; min-width: 0; }
.hp-contact li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hp-contact i { color: var(--hp-yellow); }
.hp-contact a:hover { text-decoration: underline; }
.hp-contact-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-topbar-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hp-social { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; font-size: 1rem; transition: transform .2s; }
.hp-social:hover { transform: translateY(-2px); }
.hp-social--fb { color: #1877f2; }
.hp-social--yt { color: #ff0000; }

.hp-search { display: flex; align-items: center; background: #fff; border-radius: 99px; padding: 2px 4px 2px 14px; }
.hp-search input { border: 0; outline: 0; background: transparent; width: 150px; font: inherit; font-size: .84rem; color: var(--hp-ink); }
.hp-search button { border: 0; background: none; color: var(--hp-navy); width: 28px; height: 28px; }

.hp-fontsize { display: flex; align-items: baseline; gap: 2px; }
.hp-fontsize .a11y-btn { background: none; border: 0; color: #fff; padding: 2px 5px; line-height: 1; font-family: var(--hp-display); opacity: .85; }
.hp-fontsize .a11y-btn:nth-child(1) { font-size: .8rem; }
.hp-fontsize .a11y-btn:nth-child(2) { font-size: 1rem; }
.hp-fontsize .a11y-btn:nth-child(3) { font-size: 1.2rem; }
.hp-fontsize .a11y-btn:hover, .hp-fontsize .a11y-btn.active, .hp-fontsize .a11y-btn[aria-pressed="true"] { opacity: 1; color: var(--hp-yellow); }

.hp-login {
    display: inline-flex; align-items: center; gap: 8px; align-self: stretch; margin-right: -16px;
    background: linear-gradient(135deg, var(--hp-yellow), var(--hp-yellow-2));
    color: var(--hp-navy) !important; font-family: var(--hp-display); font-weight: 600;
    padding: 0 22px;
}
.hp-login:hover { filter: brightness(1.05); }

/* ── หัวเว็บ ───────────────────────────────────────────── */
.hp-header {
    position: relative; z-index: 30;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
        linear-gradient(100deg, #fff6d1 0%, #ffffff 38%, #eaf1ff 72%, #fff6d1 100%);
}
.hp-header-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 16px 0 28px;
}
.hp-deco--hl { height: 190px; width: auto; left: -46px; top: -6px; opacity: .95; filter: drop-shadow(0 6px 10px rgba(10,36,114,.12)); }
.hp-deco--hr { height: 200px; width: auto; right: -34px; top: -10px; opacity: .95; filter: drop-shadow(0 6px 10px rgba(10,36,114,.12)); }

.hp-brand { display: flex; align-items: center; gap: 20px; min-width: 0; margin-left: 70px; }
.hp-logo {
    width: 124px; height: 124px; flex-shrink: 0; border-radius: 50%; background: #fff; padding: 4px;
    box-shadow: 0 10px 26px -10px rgba(10,36,114,.5), 0 0 0 4px #fff, 0 0 0 7px var(--hp-yellow);
}
.hp-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.hp-brand-text { display: flex; flex-direction: column; min-width: 0; }
.hp-brand-name {
    font-family: var(--hp-display); font-weight: 700; color: var(--hp-navy);
    font-size: clamp(1.45rem, 2.2vw, 2.45rem); line-height: 1.15; letter-spacing: -.005em; text-wrap: balance;
}
.hp-brand-en { font-family: var(--hp-display); font-weight: 400; color: var(--hp-blue); font-size: clamp(.95rem, 1.25vw, 1.25rem); }
.hp-brand-org { color: var(--hp-muted); font-size: clamp(.82rem, 1vw, 1rem); margin-top: 2px; }
.hp-brand-ministry { white-space: nowrap; }
.hp-sep { margin: 0 10px; color: #b9c3db; }

.hp-slogan {
    position: relative; max-width: 420px; text-align: center; text-wrap: balance;
    font-family: var(--hp-display); font-weight: 500; font-style: italic; font-size: clamp(1.05rem, 1.45vw, 1.45rem);
    line-height: 1.4; color: var(--hp-navy); margin-right: 150px;
}
.hp-quote { font-family: Georgia, serif; font-style: normal; color: var(--hp-yellow-2); font-size: 2.2em; line-height: 0; vertical-align: -.35em; margin: 0 4px; }

/* ── เมนูหลัก ──────────────────────────────────────────── */
.hp-nav { position: relative; z-index: 5; margin-bottom: -28px; }
.hp-nav > .hp-wrap {
    background: linear-gradient(180deg, var(--hp-navy-2), var(--hp-navy));
    border-radius: 99px; padding: 6px;
    box-shadow: 0 16px 30px -14px rgba(10,36,114,.75), inset 0 1px 0 rgba(255,255,255,.15);
    border: 2px solid var(--hp-yellow-2);
}
.hp-menu { display: flex; align-items: stretch; justify-content: space-between; gap: 2px; }
.hp-menu-item { position: relative; display: flex; }
.hp-menu-item > a {
    display: flex; align-items: center; gap: 7px; white-space: nowrap;
    color: #fff; font-family: var(--hp-display); font-weight: 400; font-size: .93rem;
    padding: 10px 13px; border-radius: 99px; transition: background .2s, color .2s;
}
.hp-menu-item > a i { font-size: 1.05rem; color: var(--hp-yellow); }
.hp-menu-item > a:hover, .hp-menu-item:focus-within > a { background: rgba(255,255,255,.12); }
.hp-menu-item.is-active > a {
    background: linear-gradient(135deg, var(--hp-yellow), var(--hp-yellow-2));
    color: var(--hp-navy); font-weight: 600; padding-inline: 20px;
    box-shadow: 0 6px 16px -6px rgba(245,179,1,.9);
}
.hp-menu-item.is-active > a i { color: var(--hp-navy); }
.hp-sub-toggle { display: none; }
.hp-sub {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; min-width: 230px;
    background: #fff; border-radius: 14px; padding: 8px;
    box-shadow: 0 22px 44px -16px rgba(10,36,114,.5); border: 1px solid var(--hp-line); border-top: 3px solid var(--hp-yellow-2);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.hp-sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.hp-sub a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--hp-ink); font-size: .93rem; }
.hp-sub a:hover { background: var(--hp-yellow-soft); color: var(--hp-navy); }
.hp-menu-item.has-sub:hover .hp-sub,
.hp-menu-item.has-sub:focus-within .hp-sub { opacity: 1; visibility: visible; transform: none; }
.hp-nav-toggle { display: none; }

/* ── HERO ──────────────────────────────────────────────── */
.hp-hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(440px, 36vw, 560px);
    padding-top: 28px;
    background: linear-gradient(180deg, #fff8e6 0%, #fdf4ec 100%);
}
.hp-hero-bg { /* บึงบัวยามเช้า */
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center 70%;
}
.hp-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 40%, rgba(255,250,240,.25) 70%, rgba(255,250,240,.1) 100%); }
.hp-hero-photo {
    position: absolute; inset: 0 auto 0 0; width: 58%; z-index: -1;
    -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 98%);
            mask-image: linear-gradient(90deg, #000 58%, transparent 98%);
}
.hp-hero-photo img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
    opacity: 0; transition: opacity 1.2s ease;
}
.hp-hero-photo img.is-active { opacity: 1; }
.hp-hero::after { /* เส้นโค้งสีเหลืองด้านล่าง */
    content: ""; position: absolute; left: -5%; right: -5%; bottom: -64px; height: 124px; z-index: 0;
    border-top: 4px solid var(--hp-yellow-2);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,.95), #fbfcff 40%);
}
.hp-deco--hero-l { height: 300px; width: auto; left: -40px; bottom: 26px; z-index: 1; filter: drop-shadow(0 10px 14px rgba(10,36,114,.18)); }
.hp-deco--hero-r { height: 320px; width: auto; right: -30px; bottom: 30px; z-index: 0; opacity: .95; }

.hp-hero-inner {
    position: relative; z-index: 2; min-height: inherit;
    display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 28px;
    padding-bottom: 50px;
}
.hp-hero-copy { grid-column: 2; align-self: center; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 20px; }
.hp-hero-title { display: flex; flex-direction: column; align-items: center; font-family: var(--hp-display); font-weight: 700; line-height: 1.1; }
.hp-hero-l1 {
    color: var(--hp-navy); font-size: clamp(2.5rem, 4.4vw, 4.4rem); letter-spacing: -.01em;
    text-shadow: 0 2px 0 #fff, 0 0 26px rgba(255,255,255,.95);
}
.hp-hero-l2 { margin-top: 6px; }
.hp-hero-l2 > span {
    display: inline-block; color: var(--hp-navy); font-size: clamp(1.9rem, 3.2vw, 3.2rem);
    padding: .05em .55em .12em;
    background: linear-gradient(100deg, var(--hp-yellow) 0%, #ffe27a 50%, var(--hp-yellow-2) 100%);
    border-radius: 14px; transform: rotate(-2deg);
    box-shadow: 0 12px 24px -12px rgba(217,154,0,.9), inset 0 -4px 0 rgba(0,0,0,.06);
}
.hp-hero-l3 { font-family: var(--hp-display); font-weight: 500; color: var(--hp-navy); font-size: 1.1rem; }

/* ผู้บริหาร — ภาพตัดพื้นหลัง ไม่มีกรอบ */
.hp-execs { grid-column: 3; display: flex; gap: 6px; align-items: flex-end; padding-inline: 10px; }
.hp-exec { position: relative; width: clamp(170px, 14.5vw, 235px); display: flex; flex-direction: column; align-items: center; }
.hp-exec::before { /* แสงสีเหลืองนวลหลังตัวบุคคล */
    content: ""; position: absolute; left: 6%; right: 6%; top: 14%; bottom: 10%; z-index: -1; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(255,231,140,.95) 0%, rgba(252,211,77,.45) 45%, transparent 72%);
    filter: blur(6px);
}
.hp-exec-photo { display: block; width: 100%; }
.hp-exec-photo img { width: 100%; height: auto; filter: drop-shadow(0 16px 18px rgba(10,36,114,.32)); }
.hp-exec-photo i { display: grid; place-items: center; aspect-ratio: 3/4; font-size: 5rem; color: #c4cee6; background: #fff; border-radius: 20px; }
.hp-exec:not(.is-cutout) .hp-exec-photo img { aspect-ratio: 3/4; object-fit: cover; object-position: center 18%; border-radius: 120px 120px 18px 18px; }
.hp-exec-plate {
    position: relative; margin-top: -18px; padding: 7px 16px 8px; text-align: center; white-space: nowrap;
    background: linear-gradient(180deg, var(--hp-navy-2), var(--hp-navy));
    border: 2px solid var(--hp-yellow-2); border-radius: 12px; color: #fff;
    box-shadow: 0 12px 22px -10px rgba(10,36,114,.85);
}
.hp-exec-plate strong { display: block; font-family: var(--hp-display); font-weight: 500; font-size: .92rem; line-height: 1.3; }
.hp-exec-plate span { display: block; font-size: .76rem; color: var(--hp-yellow); }

/* ตัวเล่นเพลงมาร์ช */
.hp-player {
    display: flex; align-items: center; gap: 12px; width: min(420px, 100%);
    background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.9); border-radius: 99px; padding: 6px 8px 6px 6px;
    box-shadow: 0 14px 30px -14px rgba(10,36,114,.5);
    text-align: left;
}
.hp-player-disc {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    color: var(--hp-navy); font-size: 1.2rem;
    background: radial-gradient(circle, #fff 0 16%, var(--hp-yellow) 17% 48%, var(--hp-navy) 49% 100%);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.4);
}
.hp-player-disc i { color: #fff; font-size: .95rem; }
.hp-player.is-playing .hp-player-disc { animation: hp-spin 4s linear infinite; }
@keyframes hp-spin { to { transform: rotate(360deg); } }
.hp-player-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.hp-player-info small { font-size: .72rem; color: var(--hp-muted); }
.hp-player-info strong { font-family: var(--hp-display); font-weight: 600; font-size: .9rem; color: var(--hp-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-player-bar { display: block; height: 4px; border-radius: 99px; background: #e2e8f4; margin-top: 5px; overflow: hidden; }
.hp-player-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hp-yellow-2), var(--hp-blue)); }
.hp-player-ctrl { display: flex; align-items: center; gap: 2px; }
.hp-player-ctrl button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--hp-navy); display: grid; place-items: center; font-size: 1.15rem; }
.hp-player-ctrl button:hover { background: var(--hp-sky); }
.hp-player-ctrl .hp-player-play { width: 42px; height: 42px; background: var(--hp-navy); color: var(--hp-yellow); font-size: 1.35rem; }
.hp-player-ctrl .hp-player-play:hover { background: var(--hp-blue); }
.hp-player { position: relative; }
.hp-player-hint {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--hp-navy); color: var(--hp-yellow); font-size: .78rem; font-weight: 500;
    padding: 4px 12px; border-radius: 99px; white-space: nowrap;
    box-shadow: 0 8px 18px -8px rgba(10,36,114,.7); animation: hp-hint 1.6s ease-in-out infinite;
}
.hp-player-hint[hidden] { display: none; }
@keyframes hp-hint { 50% { transform: translateX(-50%) translateY(-3px); } }

/* กลีบดอกบัวโปรย (คงไว้) */
.hp-petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hp-petals i {
    position: absolute; top: -20px; width: 14px; height: 10px;
    background: linear-gradient(135deg, #fbcfe8, #f472b6);
    border-radius: 80% 0 80% 0; opacity: .8;
    animation: hp-fall 12s linear infinite;
}
.hp-petals i:nth-child(1) { left: 44%; animation-delay: 0s; }
.hp-petals i:nth-child(2) { left: 56%; animation-delay: -3s; animation-duration: 14s; }
.hp-petals i:nth-child(3) { left: 64%; animation-delay: -6s; }
.hp-petals i:nth-child(4) { left: 73%; animation-delay: -1.5s; animation-duration: 16s; }
.hp-petals i:nth-child(5) { left: 82%; animation-delay: -8s; }
.hp-petals i:nth-child(6) { left: 91%; animation-delay: -4.5s; animation-duration: 13s; }
.hp-petals i:nth-child(7) { left: 36%; animation-delay: -10s; animation-duration: 15s; }
.hp-petals i:nth-child(8) { left: 20%; animation-delay: -7s; animation-duration: 17s; }
.hp-petals i:nth-child(9) { left: 8%; animation-delay: -12s; animation-duration: 14s; }
@keyframes hp-fall {
    0%   { transform: translate(0, 0) rotate(0); }
    50%  { transform: translate(-40px, 280px) rotate(180deg); }
    100% { transform: translate(20px, 600px) rotate(360deg); }
}

/* ── ประกาศสำคัญ ───────────────────────────────────────── */
.hp-announce {
    position: relative; z-index: 3; margin-top: -34px;
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: 99px; padding: 6px 8px 6px 6px;
    box-shadow: var(--hp-shadow); border: 1px solid var(--hp-line);
}
.hp-announce-label {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    background: linear-gradient(180deg, var(--hp-navy-2), var(--hp-navy));
    color: var(--hp-yellow); font-family: var(--hp-display); font-weight: 600; font-size: 1.12rem;
    padding: 8px 26px; border-radius: 99px;
}
.hp-announce-track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.hp-announce-list { display: flex; width: max-content; will-change: transform; }
.hp-announce-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding-right: 28px; margin-right: 28px; border-right: 2px solid var(--hp-line); color: var(--hp-ink); font-weight: 500; }
.hp-announce-item i { color: var(--hp-yellow-2); }
.hp-announce-item a:hover { color: var(--hp-blue); text-decoration: underline; }
.hp-announce-ctrl { display: flex; gap: 6px; flex-shrink: 0; }
.hp-ctrl { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hp-line); background: #f4f6fb; color: var(--hp-navy); display: grid; place-items: center; }
.hp-ctrl--play { background: var(--hp-yellow); border-color: var(--hp-yellow-2); color: var(--hp-navy); }
.hp-ctrl:hover { filter: brightness(.96); }

/* ── ทางลัด ────────────────────────────────────────────── */
.hp-quick {
    margin-top: 18px; display: grid; grid-template-columns: repeat(10, 1fr);
    background: #fff; border-radius: var(--hp-radius); box-shadow: var(--hp-shadow); border: 1px solid var(--hp-line); overflow: hidden;
}
.hp-quick-item {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 9px;
    padding: 18px 8px 14px; text-align: center; font-size: .88rem; line-height: 1.3; color: var(--hp-ink);
    border-right: 1px solid var(--hp-line); transition: background .2s;
}
.hp-quick-item:last-child { border-right: 0; }
.hp-quick-item i {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
    transition: transform .25s;
}
.hp-quick-item:hover { background: #fbfcff; }
.hp-quick-item:hover i { transform: translateY(-3px); }
.hp-tone--yellow i, .hp-tone--gold i { color: var(--hp-yellow-deep); background: var(--hp-yellow-soft); }
.hp-tone--blue i { color: var(--hp-blue); background: var(--hp-sky); }
.hp-tone--navy i { color: #fff; background: var(--hp-navy); }

/* ── แผงข่าว/ภาพ/ปฏิทิน ─────────────────────────────── */
.hp-panels { display: grid; grid-template-columns: 1.08fr 1fr .92fr; gap: 18px; margin-top: 22px; }
.hp-panel { background: #fff; border-radius: var(--hp-radius); box-shadow: var(--hp-shadow); border: 1px solid var(--hp-line); padding: 0 0 14px; display: flex; flex-direction: column; min-width: 0; }
.hp-panel-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: var(--hp-radius) var(--hp-radius) 0 0; margin-bottom: 12px; }
.hp-panel-head h2 { flex: 1; font-family: var(--hp-display); font-weight: 600; font-size: 1.2rem; color: var(--hp-navy); }
.hp-panel-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.hp-panel--yellow .hp-panel-head { background: linear-gradient(90deg, #fff1bd, #fffaea); }
.hp-panel--yellow .hp-panel-ico { background: linear-gradient(135deg, var(--hp-yellow), var(--hp-yellow-2)); color: var(--hp-navy); }
.hp-panel--blue .hp-panel-head { background: linear-gradient(90deg, #dbe7ff, #f3f7ff); }
.hp-panel--blue .hp-panel-ico { background: linear-gradient(135deg, #3b82f6, var(--hp-navy-2)); color: #fff; }
.hp-panel--sky .hp-panel-head { background: linear-gradient(90deg, #e3ecff, #fffbea); }
.hp-panel--sky .hp-panel-ico { background: var(--hp-navy); color: var(--hp-yellow); }
.hp-more { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--hp-navy); background: #fff; border: 1px solid var(--hp-line); padding: 4px 14px; border-radius: 99px; white-space: nowrap; }
.hp-more i { color: var(--hp-yellow-2); }
.hp-more:hover { border-color: var(--hp-yellow-2); }

.hp-empty { margin: 8px 14px; padding: 34px 16px; text-align: center; color: var(--hp-muted); background: #f8f9fd; border: 1px dashed #d5dbea; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hp-empty i { font-size: 2rem; color: #b8c2db; }

/* ข่าว */
.hp-news-main { display: grid; grid-template-columns: 46% 1fr; gap: 14px; padding: 0 14px; }
.hp-news-img, .hp-news-thumb { display: grid; place-items: center; background: linear-gradient(135deg, var(--hp-yellow-soft), var(--hp-sky)); border-radius: 12px; overflow: hidden; color: #c4cde3; }
.hp-news-img { aspect-ratio: 4 / 3; font-size: 2.4rem; }
.hp-news-img img, .hp-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hp-news-main:hover img, .hp-news-mini:hover img { transform: scale(1.05); }
.hp-news-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hp-date-pill { align-self: flex-start; background: var(--hp-navy); color: var(--hp-yellow); font-size: .78rem; font-weight: 600; padding: 2px 12px; border-radius: 99px; }
.hp-news-title { font-family: var(--hp-display); font-weight: 600; color: var(--hp-navy); font-size: 1.06rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hp-news-main:hover .hp-news-title { color: var(--hp-blue); }
.hp-news-excerpt { color: var(--hp-muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 14px 0; margin-top: 12px; border-top: 1px solid var(--hp-line); }
.hp-news-mini { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: start; font-size: .8rem; }
.hp-news-thumb { aspect-ratio: 1; font-size: 1.2rem; }
.hp-news-mini small { color: var(--hp-muted); }
.hp-news-mini-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--hp-ink); line-height: 1.35; }
.hp-news-mini:hover .hp-news-mini-title { color: var(--hp-blue); }

/* ภาพกิจกรรม */
.hp-gallery { padding: 0 14px; }
.hp-gallery-stage { position: relative; aspect-ratio: 16 / 7.6; border-radius: 12px; overflow: hidden; background: #e8eefb; }
.hp-gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hp-gallery-slide.is-active { opacity: 1; z-index: 1; }
.hp-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.hp-gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 10px; color: #fff; font-family: var(--hp-display); font-weight: 500; background: linear-gradient(180deg, transparent, rgba(10,36,114,.88)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-gal-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--hp-navy); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.hp-gal-nav--prev { left: 10px; }
.hp-gal-nav--next { right: 10px; }
.hp-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.hp-gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: #e8eefb; }
.hp-gallery-thumbs button.is-active { border-color: var(--hp-yellow-2); }
.hp-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hp-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: #cdd5e8; transition: width .25s, background .25s; }
.hp-dots button[aria-selected="true"] { width: 22px; background: var(--hp-yellow-2); }

/* ปฏิทิน */
.hp-events { padding: 0 14px; display: flex; flex-direction: column; }
.hp-events li { display: grid; grid-template-columns: 82px 1fr; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hp-line); }
.hp-events li:last-child { border-bottom: 0; }
.hp-event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--hp-yellow-soft); border: 1px solid #f8e3a1; border-radius: 10px; padding: 6px 4px; line-height: 1.1; }
.hp-event-date strong { font-family: var(--hp-display); font-size: 1.45rem; font-weight: 600; color: var(--hp-navy); }
.hp-event-date small { font-size: .72rem; color: var(--hp-muted); }
.hp-event-title { font-size: .95rem; color: var(--hp-ink); display: flex; flex-direction: column; }
.hp-event-title small { color: var(--hp-muted); font-size: .78rem; }

/* ── สถิติ ─────────────────────────────────────────────── */
.hp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0 34px; }
.hp-stat { display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-radius: var(--hp-radius); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 8px 20px -14px rgba(10,36,114,.4); }
.hp-stat i { font-size: 2.5rem; }
.hp-stat small { display: block; font-size: .86rem; color: var(--hp-ink); font-weight: 600; }
.hp-stat strong { font-family: var(--hp-display); font-weight: 600; color: var(--hp-navy); font-size: 1.7rem; line-height: 1.15; }
.hp-stat strong em { font-style: normal; font-size: .62em; font-weight: 500; }
.hp-stat.hp-tone--yellow, .hp-stat.hp-tone--gold { background: linear-gradient(135deg, #fff1bf, #fffaea); }
.hp-stat.hp-tone--yellow i, .hp-stat.hp-tone--gold i { color: var(--hp-yellow-deep); background: none; }
.hp-stat.hp-tone--blue { background: linear-gradient(135deg, #dce8ff, #f2f7ff); }
.hp-stat.hp-tone--blue i { background: none; }
.hp-stat.hp-tone--navy { background: linear-gradient(135deg, var(--hp-navy-2), var(--hp-navy)); }
.hp-stat.hp-tone--navy i { color: var(--hp-yellow); background: none; }
.hp-stat.hp-tone--navy small { color: #dbe5ff; }
.hp-stat.hp-tone--navy strong { color: #fff; font-size: 1.15rem; }

/* ── ส่วนท้าย ──────────────────────────────────────────── */
.hp-footer { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 50% 0%, var(--hp-navy-2) 0%, var(--hp-navy) 55%, #061a55 100%); border-top: 4px solid var(--hp-yellow-2); }
.hp-deco--fl { width: 230px; left: -60px; bottom: 26px; opacity: .9; }
.hp-deco--fr { width: 220px; right: -54px; bottom: 30px; opacity: .9; }
.hp-footer-inner { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1.2fr auto auto; align-items: center; gap: 28px; padding: 24px 0; }
.hp-footer-brand { display: flex; align-items: center; gap: 16px; }
.hp-footer-logo { width: 72px; height: 72px; border-radius: 50%; background: #fff; padding: 3px; flex-shrink: 0; box-shadow: 0 0 0 3px var(--hp-yellow-2); }
.hp-footer-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.hp-footer-brand strong { display: block; font-family: var(--hp-display); font-weight: 600; font-size: 1.2rem; }
.hp-footer-brand small { color: #c7d4f5; }
.hp-footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: #dbe5ff; }
.hp-footer-contact li { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.hp-footer-contact li > span, .hp-footer-contact li:first-child { display: inline-flex; gap: 8px; align-items: baseline; }
.hp-footer-contact li:first-child { flex-wrap: nowrap; }
.hp-footer-contact i { color: var(--hp-yellow); flex-shrink: 0; }
.hp-footer-contact a:hover { color: #fff; text-decoration: underline; }
.hp-footer-links { display: flex; align-items: center; gap: 14px; }
.hp-footer-qr { background: #fff; border-radius: 8px; padding: 3px; }
.hp-footer-qr img { width: 56px; height: 56px; }
.hp-footer-map { display: flex; flex-direction: column; align-items: center; font-size: .8rem; color: #dbe5ff; }
.hp-footer-map i { font-size: 1.5rem; color: var(--hp-yellow); }
.hp-footer-slogan { max-width: 280px; font-family: var(--hp-display); font-style: italic; font-weight: 500; font-size: 1.12rem; line-height: 1.45; color: #fff; margin-right: 120px; }
.hp-footer-slogan .hp-quote { color: var(--hp-yellow); }
.hp-footer-bottom { position: relative; z-index: 1; background: rgba(0,0,0,.2); font-size: .82rem; color: #b9c7ec; }
.hp-footer-bottom .hp-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 10px 0; }
.hp-footer-bottom nav { display: flex; gap: 16px; }
.hp-footer-bottom a:hover { color: var(--hp-yellow); }

/* ── หัว/ท้ายเว็บบนหน้าอื่น (นอกหน้าแรก) ───────────────── */
.hp-chrome { background: none; }
.hp-chrome--top { position: relative; z-index: 1000; }
.hp-chrome .hp-header { padding-bottom: 14px; box-shadow: 0 6px 20px -16px rgba(10,36,114,.5); }
.hp-chrome .hp-nav { margin-bottom: 0; }

/* ══════════ Responsive ══════════ */
@media (max-width: 1360px) {
    .hp-menu-item > a { padding: 9px 9px; font-size: .86rem; gap: 5px; }
    .hp-menu-item.is-active > a { padding-inline: 14px; }
    .hp-contact-addr { display: none !important; }
    .hp-slogan { max-width: 340px; margin-right: 120px; }
}

@media (max-width: 1180px) {
    .hp-slogan { display: none; }
    .hp-hero-inner { grid-template-columns: 1fr auto; }
    .hp-hero-copy { grid-column: 1; justify-self: start; align-items: flex-start; text-align: left; background: rgba(255,255,255,.75); backdrop-filter: blur(6px); padding: 18px 26px; border-radius: 22px; }
    .hp-hero-title { align-items: flex-start; }
    .hp-execs { grid-column: 2; }
    .hp-hero-photo { width: 78%; }
    .hp-quick { grid-template-columns: repeat(5, 1fr); }
    .hp-quick-item:nth-child(5) { border-right: 0; }
    .hp-quick-item:nth-child(-n+5) { border-bottom: 1px solid var(--hp-line); }
    .hp-panels { grid-template-columns: 1fr 1fr; }
    .hp-panel--yellow { grid-column: 1 / -1; }
    .hp-stats { grid-template-columns: repeat(2, 1fr); }
    .hp-footer-inner { grid-template-columns: 1fr 1fr; }
    .hp-footer-slogan { margin-right: 0; }
}

/* เมนูแบบมือถือ/แท็บเล็ต */
@media (max-width: 1100px) {
    .hp-nav { margin-bottom: -22px; }
    .hp-nav > .hp-wrap { border-radius: 22px; }
    .hp-nav-toggle { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font-family: var(--hp-display); font-size: 1rem; padding: 6px 14px; width: 100%; }
    .hp-nav-toggle i { font-size: 1.5rem; color: var(--hp-yellow); }
    .hp-menu { display: none; flex-direction: column; padding: 4px 0 6px; }
    .hp-nav.is-open .hp-menu { display: flex; }
    .hp-menu-item { flex-wrap: wrap; }
    .hp-menu-item > a { flex: 1; border-radius: 12px; padding: 11px 14px; font-size: .98rem; }
    .hp-menu-item.is-active > a { padding-inline: 14px; }
    .hp-sub-toggle { display: grid; place-items: center; width: 44px; border: 0; background: none; color: #fff; }
    .hp-sub-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
    .hp-sub { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 2px 8px 6px; background: rgba(255,255,255,.97); }
    .hp-menu-item.is-open .hp-sub { display: block; }
    .hp-menu-item.has-sub:hover .hp-sub { display: none; }
    .hp-menu-item.has-sub.is-open:hover .hp-sub { display: block; }
    .hp-brand { margin-left: 0; }
}

@media (max-width: 760px) {
    .hp-page, .hp-chrome { font-size: 15px; }
    .hp-topbar-inner { flex-wrap: wrap; justify-content: center; padding: 8px 0; gap: 8px; }
    .hp-contact { justify-content: center; gap: 4px 14px; }
    .hp-topbar-tools { flex-wrap: wrap; justify-content: center; width: 100%; gap: 8px; }
    .hp-search { order: 9; flex: 1 1 100%; }
    .hp-search input { width: 100%; flex: 1; }
    .hp-login { margin-right: 0; border-radius: 99px; padding: 5px 14px; align-self: center; }
    .hp-header-inner { padding: 12px 0 26px; }
    .hp-brand { gap: 12px; }
    .hp-logo { width: 70px; height: 70px; }
    .hp-brand-name { font-size: 1.3rem; }
    .hp-brand-en { font-size: .82rem; }
    .hp-brand-org { font-size: .74rem; line-height: 1.4; }
    .hp-brand-ministry { display: none; }
    .hp-deco--hl { height: 110px; left: -50px; top: 30px; opacity: .55; }
    .hp-deco--hr { height: 110px; right: -46px; top: -6px; opacity: .55; }

    .hp-hero { min-height: 0; padding-top: 28px; }
    .hp-hero-photo { position: relative; width: 100%; height: 220px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
    .hp-hero-inner { grid-template-columns: 1fr; margin-top: -60px; justify-items: center; padding-bottom: 58px; gap: 16px; }
    .hp-hero-copy { grid-column: 1; justify-self: stretch; align-items: center; text-align: center; padding: 16px; }
    .hp-hero-title { align-items: center; }
    .hp-player { width: 100%; }
    .hp-execs { grid-column: 1; justify-content: center; gap: 4px; padding-inline: 0; }
    .hp-exec { width: min(44vw, 180px); }
    .hp-exec-plate { padding-inline: 8px; white-space: normal; }
    .hp-exec-plate strong { font-size: .8rem; }
    .hp-exec-plate span { font-size: .68rem; }
    .hp-deco--hero-l { height: 150px; left: -50px; bottom: 30px; }
    .hp-deco--hero-r { height: 150px; right: -40px; top: 200px; bottom: auto; }

    .hp-announce { border-radius: 18px; flex-wrap: wrap; padding: 8px; gap: 8px; }
    .hp-announce-label { font-size: 1rem; padding: 6px 16px; }
    .hp-announce-track { order: 3; flex-basis: 100%; }
    .hp-announce-ctrl { margin-left: auto; }

    .hp-quick { grid-template-columns: repeat(2, 1fr); }
    .hp-quick-item { flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; border-bottom: 1px solid var(--hp-line); font-size: .86rem; padding: 10px 12px; }
    .hp-quick-item:nth-child(n) { border-right: 1px solid var(--hp-line); }
    .hp-quick-item:nth-child(2n) { border-right: 0; }
    .hp-quick-item:nth-last-child(-n+2) { border-bottom: 0; }
    .hp-quick-item i { width: 40px; height: 40px; border-radius: 12px; font-size: 1.2rem; flex-shrink: 0; }

    .hp-panels { grid-template-columns: 1fr; }
    .hp-news-main { grid-template-columns: 1fr; }
    .hp-news-list { grid-template-columns: 1fr; }
    .hp-news-mini { grid-template-columns: 72px 1fr; font-size: .86rem; }

    .hp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hp-stat { padding: 12px 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .hp-stat i { font-size: 1.8rem; }
    .hp-stat strong { font-size: 1.35rem; }
    .hp-stat.hp-tone--navy strong { font-size: 1rem; }

    .hp-footer-inner { grid-template-columns: 1fr; gap: 18px; }
    .hp-footer-slogan { max-width: none; }
    .hp-footer-bottom .hp-wrap { flex-direction: column; }
    .hp-deco--fl, .hp-deco--fr { width: 130px; opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-petals { display: none; }
    .hp-hero-photo img, .hp-gallery-slide { transition: none; }
    .hp-player.is-playing .hp-player-disc { animation: none; }
}

@media print {
    .hp-deco, .hp-petals, .hp-topbar, .hp-nav, .hp-announce-ctrl, .hp-player { display: none !important; }
}
