/* Welcome Page / Popup ของหน้าทดสอบ (ระบบประชาสัมพันธ์ V2) — ขึ้นต้น pn2-ov ไม่ชนกับ CSS เดิมของเว็บ */
.pn2-ov { position: fixed; inset: 0; z-index: 99999; align-items: center; justify-content: center; font-family: inherit; }
.pn2-ov-welcome { background: rgba(8, 20, 40, .94); }
.pn2-ov-popup { background: rgba(0, 0, 0, .6); padding: 16px; }
.pn2-ov-wbox { display: flex; flex-direction: column; align-items: center; max-width: 96vw; max-height: 96vh; }
.pn2-ov-wbox img { max-width: 96vw; max-height: calc(96vh - 90px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.pn2-ov-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pn2-ov-btn { display: inline-block; border: 0; cursor: pointer; background: #0b5ca8; color: #fff !important; padding: 10px 26px; border-radius: 999px; font-size: 1rem; text-decoration: none !important; }
.pn2-ov-btn:hover { background: #084a88; }
.pn2-ov-btn2 { background: transparent; border: 2px solid #fff; }
.pn2-ov-btn2:hover { background: rgba(255, 255, 255, .15); }
.pn2-ov-pbox { position: relative; background: #fff; border-radius: 10px; max-width: 900px; width: 100%; max-height: 94vh; overflow: auto; padding: 14px 14px 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.pn2-ov-slide img { display: block; width: 100%; height: auto; border-radius: 6px; }
.pn2-ov-popup .pn2-ov-actions .pn2-ov-btn { margin-bottom: 4px; }
/* ปุ่มปิด: วงกลมเข้ม ไอคอนกากบาทสีขาว มีขอบขาว+เงา เห็นชัดทั้งบนรูปสว่างและมืด */
.pn2-ov-x { position: absolute; right: 10px; top: 10px; z-index: 3; width: 38px; height: 38px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(15, 23, 42, .78); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .15s, background .15s; }
.pn2-ov-x::before, .pn2-ov-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: #fff; }
.pn2-ov-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.pn2-ov-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pn2-ov-x:hover { background: #c62828; transform: scale(1.08); }
.pn2-ov-x:focus-visible, .pn2-ov-nav:focus-visible, .pn2-ov-dots button:focus-visible { outline: 3px solid #5aa9ff; outline-offset: 2px; }
.pn2-ov-nav { position: absolute; top: 45%; z-index: 2; width: 42px; height: 42px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(15, 23, 42, .72); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; transition: background .15s, transform .15s; }
.pn2-ov-nav:hover { background: #0b5ca8; transform: scale(1.08); }
/* ตัวบอกว่ามีหลายประกาศ: "1 / 2" + จุดเลือกประกาศ */
.pn2-ov-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.pn2-ov-count { font-size: .85rem; color: #475569; min-width: 3.2em; text-align: center; }
.pn2-ov-dots { display: inline-flex; gap: 8px; }
.pn2-ov-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: background .15s, transform .15s; }
.pn2-ov-dots button.on { background: #0b5ca8; transform: scale(1.3); }
.pn2-ov-prev { left: 8px; }
.pn2-ov-next { right: 8px; }
.pn2-ov-hide { display: block; text-align: right; margin: 8px 4px 0; font-size: .85rem; color: #555; cursor: pointer; }
.pn2-ov-hide input { margin-right: 4px; }

/* Welcome Page หน้าตาเหมือนระบบเดิม (/welcome/): พื้นหลัง BG03.svg + กล่องสีขาวโปร่ง + ปุ่มสีม่วง */
.pn2-ov.pn2-wl { background-color: #e9ecef; background-position: center; background-repeat: no-repeat; background-size: cover; overflow-y: auto; padding: 55px 15px; align-items: flex-start; }
.pn2-wl-card { width: 880px; max-width: 100%; margin: auto; border-radius: 18px; background: rgba(255, 255, 255, .9); padding: 175px 15px 45px; text-align: center; }
.pn2-wl-pic { display: block; width: 100%; text-align: center; }
.pn2-wl-pic img { max-width: 100%; height: auto; }
.pn2-wl-row { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; }
.pn2-wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 120px; height: 40px; margin: 20px 5px 0; padding: 0 20px; border: 0; border-radius: 5px; background: #846add; color: #fff !important; font-size: 15px; line-height: 1.4; text-decoration: none !important; cursor: pointer; transition: background .4s; }
.pn2-wl-btn:hover { background: #333; }
.pn2-wl-btn span { color: inherit; font-size: inherit; }
.pn2-wl-sharewrap { position: relative; display: inline-block; }
.pn2-wl-share { min-width: 40px; padding: 0 12px; }
.pn2-wl-sharemenu { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); z-index: 3; margin-top: 4px; min-width: 130px; background: #fff; border-radius: 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, .25); overflow: hidden; text-align: left; }
.pn2-wl-sharemenu[hidden] { display: none; }
.pn2-wl-sharemenu a { display: block; padding: 8px 16px; color: #333; text-decoration: none; }
.pn2-wl-sharemenu a:hover { background: #f0ebff; }
@media (max-width: 576px) { .pn2-wl-card { padding-top: 80px; } }
