/* =========================================================
 * site-modern.css — Slider / Carousel / Gallery / FAB / Cookie consent
 * ========================================================= */
:root {
	--brand: #B10501;
	--brand-dark: #7d0400;
	--line: #06C755;
	--messenger: #0866FF;
	--ink: #1d1d1f;
	--radius: 14px;
}
body, .font-1, .font-2 { font-family: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------- Slider ---------------- */
.modern-slider { position: relative; width: 100%; aspect-ratio: 7 / 4; overflow: hidden; background: #111; }
.modern-slider .ms-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.modern-slider .ms-slide.is-active { opacity: 1; z-index: 1; }
.modern-slider .ms-slide img { width: 100%; height: 100%; object-fit: cover; display: block; background: #222; } /* ไม่ pan / zoom */
.modern-slider .ms-caption { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 900px;
	background: rgba(0,0,0,.6); color: #fff; text-align: center; padding: 18px 20px; border-radius: 12px; font-size: clamp(18px, 2.6vw, 30px); line-height: 1.4; backdrop-filter: blur(4px); }
.modern-slider .ms-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: rgba(255,255,255,.85); color: var(--brand); font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: background .2s; }
.modern-slider .ms-nav:hover { background: #fff; }
.modern-slider .ms-prev { left: 14px; } .modern-slider .ms-next { right: 14px; }
.modern-slider .ms-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.modern-slider .ms-dots button { width: 12px; height: 12px; border-radius: 6px; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; transition: width .25s, background .25s; }
.modern-slider .ms-dots button.is-active { width: 28px; background: var(--brand); border-color: var(--brand); }

/* ---------------- Carousel ---------------- */
.modern-carousel { position: relative; padding: 0 8px; }
.modern-carousel .mc-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 12px 4px 18px; scrollbar-width: none; }
.modern-carousel .mc-track::-webkit-scrollbar { display: none; }
.modern-carousel .mc-item { flex: 0 0 300px; scroll-snap-align: center; }
.modern-carousel .mc-item img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 6px 16px rgba(0,0,0,.25); display: block; }
.modern-carousel .mc-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
	background: var(--brand); color: #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.modern-carousel .mc-prev { left: 0; } .modern-carousel .mc-next { right: 0; }
@media (max-width: 575px) { .modern-carousel .mc-item { flex-basis: 78%; } }

/* ---------------- Gallery ---------------- */
.modern-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--mg-min, 110px), 1fr)); gap: 8px; }
.modern-gallery .mg-item { display: block; position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1 / 1; background: #eee; }
.modern-gallery .mg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.modern-gallery .mg-item::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 22px; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.modern-gallery .mg-item:hover::after, .modern-gallery .mg-item:focus::after { opacity: 1; }
.modern-gallery.mg-lg { --mg-min: 220px; }
.modern-gallery.mg-lg .mg-item { aspect-ratio: 4 / 3; }

.mg-lightbox { position: fixed; inset: 0; z-index: 10050; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.mg-lightbox.is-open { display: flex; }
.mg-lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.mg-lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.mg-lightbox figcaption { color: #ddd; margin-top: 10px; font-size: 14px; }
.mg-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 22px; }
.mg-lightbox button:hover { background: rgba(255,255,255,.3); }
.mg-lightbox .mg-close { top: 16px; right: 16px; font-size: 30px; line-height: 1; }
.mg-lightbox .mg-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.mg-lightbox .mg-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------------- Floating Action Buttons (แสดงตลอด) ---------------- */
.fab-stack { position: fixed; right: 16px; bottom: 20px; z-index: 9990; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab-btn { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; color: #fff !important; text-decoration: none !important;
	font-weight: 600; font-size: 15px; line-height: 1.2; box-shadow: 0 8px 22px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s; backdrop-filter: blur(6px); }
.fab-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 26px rgba(0,0,0,.3); }
.fab-btn .fab-ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: 0 0 38px; }
.fab-btn small { display: block; font-weight: 400; font-size: 12px; opacity: .9; }
.fab-tel { background: linear-gradient(135deg, #ff8a00, #e65c00); }
.fab-tel .fab-ic { animation: fab-ring 2.4s infinite; }
.fab-line { background: linear-gradient(135deg, #18d35f, var(--line)); }
.fab-msg { background: linear-gradient(135deg, #3b8bff, var(--messenger)); }
@keyframes fab-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-15deg); } 80% { transform: rotate(15deg); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(10deg); } }
@media (max-width: 575px) {
	.fab-stack { right: 0; left: 0; bottom: 0; flex-direction: row; gap: 0; }
	.fab-btn { flex: 1; border-radius: 0; justify-content: center; padding: 8px 4px; font-size: 13px; box-shadow: none; flex-direction: column; gap: 2px; }
	.fab-btn .fab-ic { width: 28px; height: 28px; flex-basis: 28px; font-size: 16px; background: none; }
	.fab-btn small { display: none; }
	body { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .fab-tel .fab-ic { animation: none; } .modern-slider .ms-slide { transition: none; } }

/* ---------------- Cookie consent ---------------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000; max-width: 760px; margin: 0 auto; background: #fff; color: var(--ink);
	border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 18px 20px; display: none; font-size: 14px; line-height: 1.6; }
.cookie-bar.is-show { display: block; }
.cookie-bar .ck-actions, .cookie-modal .ck-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.ck-btn { border: 1px solid #ccc; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 18px; cursor: pointer; font-size: 14px; }
.ck-btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.cookie-modal { position: fixed; inset: 0; z-index: 10010; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal.is-open { display: flex; }
.cookie-modal .ck-box { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; padding: 22px; max-height: 90vh; overflow: auto; }
.cookie-modal .ck-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #eee; }
.cookie-modal .ck-row p { margin: 4px 0 0; font-size: 13px; color: #555; }
@media (max-width: 575px) { .cookie-bar { bottom: 74px; } }

/* embed ที่ต้องได้รับความยินยอม (Facebook) */
[data-consent-embed] .consent-placeholder { padding: 24px; background: #f4f4f4; border-radius: 12px; text-align: center; font-size: 14px; color: #555; }
[data-consent-embed].consent-ok .consent-placeholder { display: none; }

/* FAQ (AEO) */
.faq-list details { background: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.faq-list summary { font-weight: 600; cursor: pointer; color: var(--brand); }
.faq-list details p { margin: 10px 0 0; }

/* admin dropdown */
#mainNav .admin-menu .dropdown-menu { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }

/* ---------------- Contact page ---------------- */
.contact-hero { background-size: cover; background-position: center; }
.contact-hero-inner { padding: 70px 0 60px; background: linear-gradient(135deg, rgba(177,5,1,.92), rgba(80,2,0,.85)); }
.contact-hero h1 { font-size: clamp(26px, 4vw, 40px); }
.contact-lead { max-width: 720px; margin: 0 auto; opacity: .95; }
.contact-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 700; color: #fff !important; text-decoration: none !important; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .2s; }
.cta-btn:hover { transform: translateY(-2px); }
.cta-tel { background: #ff7a00; } .cta-line { background: #06C755; }
.contact-body { background: #F6F6F8; }
.contact-card { display: flex; gap: 14px; align-items: center; height: 100%; background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.06); color: var(--ink) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.cc-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.contact-card small { display: block; color: #777; font-size: 13px; }
.contact-card strong { display: block; font-size: 18px; word-break: break-word; }
.contact-card em { display: block; font-style: normal; font-size: 13px; color: #555; }
.contact-steps { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.contact-steps ol { margin: 0; padding-left: 1.3rem; } .contact-steps li { margin-bottom: 6px; }
.contact-qr { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.contact-qr img { width: 100%; max-width: 240px; height: auto; border-radius: 12px; }

/* ---------------- Portfolio ---------------- */
.pf-hero { background-size: cover; background-position: center; }
.pf-hero-inner { padding: 70px 0 56px; background: linear-gradient(135deg, rgba(177,5,1,.92), rgba(80,2,0,.85)); }
.pf-hero h1 { font-size: clamp(26px, 4vw, 40px); }
.pf-lead { max-width: 720px; margin: 0 auto; opacity: .95; }
.pf-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pf-stats > div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 12px 22px; color: #fff; min-width: 140px; backdrop-filter: blur(4px); }
.pf-stats strong { display: block; font-size: 24px; } .pf-stats span { font-size: 14px; opacity: .9; }
.pf-section { background: #F6F6F8; }
.pf-toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.pf-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.pf-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #999; }
.pf-search input { width: 100%; border: 1px solid #ddd; border-radius: 999px; padding: 11px 16px 11px 42px; background: #fff; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.pf-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(177,5,1,.12); }
.pf-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-filter a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #e3e3e3; color: #333; font-size: 14px; transition: all .2s; }
.pf-filter a.is-active, .pf-filter a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.pf-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.pf-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.14); }
.pf-link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none !important; }
.pf-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pf-card:hover .pf-thumb img { transform: scale(1.06); }
.pf-date { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; backdrop-filter: blur(4px); }
.pf-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pf-title { font-size: 17px; line-height: 1.45; color: var(--brand); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-ex { font-size: 14px; color: #666; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--brand); }
.pf-more i { transition: transform .2s; } .pf-card:hover .pf-more i { transform: translateX(4px); }
.pf-card[hidden] { display: none; }
.pf-cta { background: linear-gradient(135deg, #B10501, #5a0200); padding: 60px 0; }
@media (max-width: 575px) { .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .pf-body { padding: 10px 12px 12px; } .pf-title { font-size: 15px; } .pf-ex { display: none; } }

/* ---------------- Contact buttons (มีลูกเล่น) ---------------- */
.cbtn-wrap { display: grid; gap: 12px; margin-bottom: 12px; }
.cbtn-compact { grid-template-columns: 1fr 1fr; }
.cbtn-compact .cbtn-line { grid-column: 1 / -1; }
.cbtn-row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 420px) { .cbtn-compact { grid-template-columns: 1fr; } }
.cbtn { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px;
	color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 17px; line-height: 1.25;
	box-shadow: 0 8px 20px -6px var(--cb-shadow, rgba(0,0,0,.35)); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.cbtn small { display: block; font-weight: 400; font-size: 12.5px; opacity: .9; }
.cbtn-tx { flex: 1; min-width: 0; }
.cbtn-ic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(255,255,255,.2); position: relative; }
.cbtn-arrow { opacity: .7; transition: transform .25s, opacity .25s; }
/* แสงวิ่งผ่านปุ่ม */
.cbtn::before { content: ""; position: absolute; z-index: -1; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: cbtn-shine 4s ease-in-out infinite; }
.cbtn-msg::before { animation-delay: 1.3s; } .cbtn-line::before { animation-delay: 2.6s; }
@keyframes cbtn-shine { 0%, 60% { left: -75%; } 85%, 100% { left: 130%; } }
.cbtn:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 14px 28px -8px var(--cb-shadow, rgba(0,0,0,.45)); }
.cbtn:hover .cbtn-arrow { transform: translateX(4px); opacity: 1; }
.cbtn:active { transform: scale(.98); }
.cbtn:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.cbtn-tel { background: linear-gradient(135deg, #ff9a1f, #e5480a); --cb-shadow: rgba(229,72,10,.55); }
.cbtn-msg { background: linear-gradient(135deg, #41a0ff, #0866FF 55%, #a033ff); --cb-shadow: rgba(8,102,255,.5); }
.cbtn-line { background: linear-gradient(135deg, #2ee27a, #06C755); --cb-shadow: rgba(6,199,85,.5); }
/* วงคลื่นรอบไอคอนโทรศัพท์ */
.cbtn-tel .cbtn-ic::after { content: ""; position: absolute; inset: 0; border-radius: 12px; border: 2px solid rgba(255,255,255,.7); animation: cbtn-pulse 2s ease-out infinite; }
@keyframes cbtn-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.cbtn-tel .cbtn-ic i { animation: fab-ring 2.4s infinite; }
/* ripple ตอนกด */
.cbtn .cbtn-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: cbtn-ripple .6s linear; pointer-events: none; }
@keyframes cbtn-ripple { to { transform: scale(4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cbtn::before, .cbtn-tel .cbtn-ic::after, .cbtn-tel .cbtn-ic i { animation: none; } .cbtn { transition: none; } }

/* ---------------- Portfolio detail (pfd) ---------------- */
.pd-hero { background-size: cover; background-position: center; }
.pd-hero-inner { padding: 80px 0 48px; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(90,2,0,.88) 100%); backdrop-filter: blur(2px); }
.pd-kicker { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.18); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 12px; }
.pd-title { color: #fff; font-size: clamp(26px, 4.2vw, 44px); line-height: 1.3; margin: 0 0 14px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.pd-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-meta span { display: inline-flex; gap: 8px; align-items: center; color: #fff; font-size: 14px; background: rgba(0,0,0,.3); padding: 6px 14px; border-radius: 999px; }
.pd-section { background: #F6F6F8; }
.pd-card { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 4px 22px rgba(0,0,0,.06); }
.pd-cover { margin: -24px -24px 24px; border-radius: 20px 20px 0 0; overflow: hidden; }
.pd-cover .mg-item { display: block; position: relative; }
.pd-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.pd-cover .mg-item::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.pd-content { font-size: 17px; line-height: 1.85; color: #333; overflow-wrap: anywhere; }
.pd-content img { max-width: 100%; height: auto; border-radius: 12px; }
.pd-content iframe { max-width: 100%; }
.pd-content table { width: 100%; }
.pd-h2 { font-size: 20px; color: var(--brand); margin: 28px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.pd-h2 small { font-size: 13px; color: #888; font-weight: 400; }
.modern-gallery.pd-gallery { --mg-min: 160px; }
.pd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; }
.pd-nav a { display: block; padding: 14px 16px; border-radius: 14px; background: #F6F6F8; color: var(--ink) !important; font-weight: 600; line-height: 1.4; transition: background .2s, transform .2s; }
.pd-nav a:hover { background: #fdecea; transform: translateY(-2px); text-decoration: none; }
.pd-nav small { display: block; font-weight: 400; color: var(--brand); font-size: 13px; margin-bottom: 4px; }
.pd-nav-next { text-align: right; grid-column: 2; }
.pd-sticky { position: sticky; top: 20px; display: grid; gap: 16px; }
.pd-side-title { font-size: 20px; color: var(--brand); margin: 0 0 6px; }
.pd-side-sub { font-size: 14px; color: #666; margin: 0 0 14px; }
.cbtn-stack { grid-template-columns: 1fr; }
.pd-side .cbtn { font-size: 16px; }
.pd-share { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-share a, .pd-share button { height: 42px; min-width: 42px; border-radius: 12px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff !important; font-size: 17px; cursor: pointer; transition: transform .2s, filter .2s; padding: 0 12px; }
.pd-share a:hover, .pd-share button:hover { transform: translateY(-2px); filter: brightness(1.08); text-decoration: none; }
.sh-fb { background: #1877F2; } .sh-line { background: #06C755; } .sh-x { background: #111; }
.sh-copy { background: #6b6b75; font-size: 14px !important; flex: 1; }
.sh-copy.is-done { background: #1a9b4b; }
@media (max-width: 991px) { .pd-sticky { position: static; } }
@media (max-width: 575px) {
	.pd-hero-inner { padding: 56px 0 32px; }
	.pd-card { padding: 16px; border-radius: 16px; }
	.pd-cover { margin: -16px -16px 16px; border-radius: 16px 16px 0 0; }
	.pd-content { font-size: 16px; }
	.pd-nav { grid-template-columns: 1fr; } .pd-nav-next { grid-column: auto; }
	.modern-gallery.pd-gallery { --mg-min: 105px; gap: 6px; }
}

/* ---------------- CTA buttons v2 (hero / แถบชวนติดต่อ) ---------------- */
.contact-cta { gap: 16px; }
.cta-btn { position: relative; overflow: hidden; isolation: isolate; gap: 12px; padding: 10px 26px 10px 10px; border-radius: 999px; font-size: 18px; line-height: 1.2; text-align: left;
	border: 1px solid rgba(255,255,255,.35); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; animation: cta-float 3.2s ease-in-out infinite; }
.cta-line { animation-delay: 1.6s; }
.cta-tx small { display: block; font-weight: 400; font-size: 12.5px; opacity: .9; }
.cta-ic { position: relative; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #fff; }
.cta-tel { background: linear-gradient(135deg, #ffb02e, #ff6a00 60%, #e8410a); box-shadow: 0 10px 30px -8px rgba(255,106,0,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.cta-line { background: linear-gradient(135deg, #3cf08a, #06C755 60%, #04a447); box-shadow: 0 10px 30px -8px rgba(6,199,85,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.cta-tel .cta-ic { color: #ff6a00; } .cta-line .cta-ic { color: #06C755; font-size: 24px; }
/* วงคลื่นรอบไอคอน */
.cta-ic::before, .cta-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: cbtn-pulse 2.2s ease-out infinite; }
.cta-ic::after { animation-delay: 1.1s; }
.cta-tel .cta-ic i { animation: fab-ring 2.4s infinite; }
/* แสงวิ่งผ่าน */
.cta-btn::before { content: ""; position: absolute; z-index: -1; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: cbtn-shine 3.6s ease-in-out infinite; }
.cta-line::before { animation-delay: 1.8s; }
.cta-btn:hover { transform: translateY(-4px) scale(1.04); animation-play-state: paused; }
.cta-tel:hover { box-shadow: 0 18px 38px -10px rgba(255,106,0,.9); }
.cta-line:hover { box-shadow: 0 18px 38px -10px rgba(6,199,85,.9); }
.cta-btn:active { transform: scale(.97); }
.cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cta-btn .cbtn-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); transform: scale(0); animation: cbtn-ripple .6s linear; pointer-events: none; }
@keyframes cta-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 575px) { .contact-cta { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; } .cta-btn { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .cta-btn, .cta-btn::before, .cta-ic::before, .cta-ic::after, .cta-tel .cta-ic i { animation: none; } }

/* ---------------- Home hero (layout ใหม่) ---------------- */
.home-hero { padding: 28px 0 32px; background: radial-gradient(1200px 500px at 85% -10%, #fde3e1 0%, transparent 60%), linear-gradient(180deg, #fff 0%, #F6F6F8 100%); }
.home-hero-media { height: 100%; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); }
.home-hero-media .modern-slider { height: 100%; min-height: 100%; aspect-ratio: 7 / 5; }
.home-hero-media .ms-caption { display: none; } /* ชื่อเว็บแสดงใน H1 ด้านข้างแล้ว */
.home-hero-card { height: 100%; background: #fff; border-radius: 22px; padding: 28px; box-shadow: 0 10px 34px -12px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.home-kicker { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; background: #fdecea; color: var(--brand); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; }
.home-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; color: var(--brand); margin: 0 0 10px; font-weight: 700; }
.home-desc { font-size: 15.5px; line-height: 1.75; color: #555; margin: 0 0 14px; }
.home-chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.home-chips li { display: inline-flex; gap: 6px; align-items: center; background: #F6F6F8; border: 1px solid #ececf0; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; color: #333; }
.home-chips i { color: var(--brand); }
.home-trust { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: #555; }
.home-trust i { color: #1a9b4b; }
.home-hero-card .cbtn-wrap { margin-bottom: 4px; }
.home-strip { padding: 34px 0 40px; background: #F6F6F8; }
.home-strip-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.home-strip-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.home-strip-link { font-weight: 600; color: var(--brand) !important; }
.home-strip-link i { transition: transform .2s; } .home-strip-link:hover i { transform: translateX(4px); }
.modern-gallery.home-gallery { grid-template-columns: repeat(8, 1fr); gap: 10px; }
.home-gallery .mg-item { border-radius: 14px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.home-gallery .mg-item img { transition: transform .5s ease; }
.home-gallery .mg-item:hover img { transform: scale(1.08); }
@media (max-width: 991px) {
	.home-hero-media { height: auto; }
	.home-hero-media .modern-slider { aspect-ratio: 16 / 10; }
	.modern-gallery.home-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 575px) {
	.home-hero { padding: 0 0 20px; }
	.home-hero > .container { padding: 0; }
	.home-hero .row { --bs-gutter-x: 0; }
	.home-hero-media { border-radius: 0; box-shadow: none; }
	.home-hero-card { margin: -28px 12px 0; position: relative; z-index: 2; padding: 20px; border-radius: 20px; }
	.modern-gallery.home-gallery { grid-template-columns: repeat(4, 1fr); gap: 6px; }
	.home-chips { gap: 6px; margin-bottom: 14px; }
	.home-chips li { padding: 4px 10px; font-size: 12.5px; }
	.home-desc { font-size: 15px; margin-bottom: 10px; }
	.home-gallery .mg-item { border-radius: 10px; }
}

/* Home hero แบบเต็มความกว้าง (col-md-12) */
.home-hero .row.g-4 { --bs-gutter-y: 0; }
.home-hero-media .modern-slider { aspect-ratio: 21 / 9; max-height: 620px; }
.home-hero-card { position: relative; z-index: 2; margin: -60px 24px 0; padding: 30px 34px; text-align: center; align-items: center; }
.home-hero-card .home-kicker { align-self: center; }
.home-hero-card .home-desc { max-width: 820px; }
.home-hero-card .home-chips, .home-hero-card .home-trust { justify-content: center; }
.home-hero-card .cbtn-wrap { width: 100%; max-width: 980px; text-align: left; }
@media (max-width: 991px) { .home-hero-media .modern-slider { aspect-ratio: 16 / 9; } .home-hero-card { margin: -40px 16px 0; padding: 24px; } }
@media (max-width: 575px) { .home-hero-media .modern-slider { aspect-ratio: 4 / 3; } .home-hero-card { margin: -28px 12px 0; padding: 20px 16px; } }
/* ยกจุดสไลด์ขึ้นพ้นการ์ดที่ซ้อนทับ */
.home-hero-media .ms-dots { bottom: 76px; }
@media (max-width: 991px) { .home-hero-media .ms-dots { bottom: 54px; } }
@media (max-width: 575px) { .home-hero-media .ms-dots { bottom: 40px; } }
/* ไม่ซ้อนทับ: การ์ดอยู่ใต้สไลเดอร์ */
.home-hero-card { margin: 20px 0 0 !important; height: auto; }
.home-hero-media { height: auto; }
.home-hero-media .ms-dots { bottom: 16px !important; }
@media (max-width: 575px) {
	.home-hero-card { margin: 14px 12px 0 !important; }
}
/* สไลเดอร์หน้าแรก: อัตราส่วน 16:9 ทุกขนาดจอ */
.home-hero-media .modern-slider { aspect-ratio: 16 / 9 !important; max-height: none !important; }

/* ---------------- Footer (ทันสมัย) ---------------- */
#footer.site-footer { background: #17090a; color: #c9c1c1; border-top: 0; margin-top: 0; padding: 0; font-size: 15px; }
.site-footer a { color: #eee; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.ft-cta { background: linear-gradient(135deg, #B10501 0%, #6d0300 100%); position: relative; overflow: hidden; }
.ft-cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.07); }
.ft-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 34px 0; position: relative; z-index: 1; }
.ft-cta-title { color: #fff; font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 4px; font-weight: 700; }
.ft-cta-sub { color: rgba(255,255,255,.85); margin: 0; }
.ft-main { padding: 50px 0 30px; background: radial-gradient(900px 300px at 0% 0%, rgba(177,5,1,.18), transparent 70%), #17090a; }
.ft-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 12px; margin-bottom: 14px; }
.ft-logo img { display: block; height: 44px; width: auto; }
.ft-about { font-size: 14.5px; line-height: 1.75; color: #b9b0b0; margin-bottom: 16px; }
.ft-social { display: flex; gap: 10px; }
.ft-social a { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-size: 17px; transition: background .2s, transform .2s; }
.ft-social a:hover { background: var(--brand); transform: translateY(-3px); }
.ft-h { color: #fff; font-size: 17px; font-weight: 700; margin: 0 0 16px; position: relative; padding-bottom: 10px; }
.ft-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--brand); }
.ft-links { list-style: none; padding: 0; margin: 0; }
.ft-links li { margin-bottom: 8px; }
.ft-links a { color: #c9c1c1; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s; }
.ft-links a::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: var(--brand); }
.ft-links a:hover { color: #fff; transform: translateX(3px); }
.ft-contact { list-style: none; padding: 0; margin: 0; }
.ft-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.ft-contact li > i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: rgba(177,5,1,.25); color: #ff7a73; display: flex; align-items: center; justify-content: center; }
.ft-contact small { display: block; color: #8f8585; font-size: 12.5px; }
.ft-contact a, .ft-contact span { font-weight: 600; word-break: break-word; }
.ft-qr { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.ft-qr img { width: 110px; height: 110px; border-radius: 12px; background: #fff; padding: 6px; display: block; }
.ft-qr span { font-size: 14px; line-height: 1.6; }
.ft-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ft-stats div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 6px; text-align: center; }
.ft-stats strong { display: block; color: #fff; font-size: 17px; }
.ft-stats small { font-size: 12px; color: #9a9090; }
.ft-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.ft-tags a { font-size: 13px; color: #b9b0b0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: 5px 12px; border-radius: 999px; transition: all .2s; }
.ft-tags a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.ft-bottom { background: #0f0607; padding: 16px 0; font-size: 13.5px; color: #8f8585; }
.ft-bottom .container { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft-legal a { color: #b9b0b0; }
@media (max-width: 767px) {
	.ft-cta-inner { text-align: center; justify-content: center; }
	.ft-main { padding: 36px 0 20px; }
	.ft-bottom .container { justify-content: center; text-align: center; }
	.ft-legal { justify-content: center; }
}
@media (min-width: 576px) { .ft-bottom { padding-bottom: 20px; } .ft-bottom .container { padding-right: 200px; } }

/* Facebook page plugin + fallback card */
.fbp-wrap { width: 100%; max-width: 500px; margin: 0 auto; }
.fbp-wrap .fb-page, .fbp-wrap .fb-page span, .fbp-wrap .fb-page iframe { max-width: 100% !important; }
.fbp-fallback { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 20px; border-radius: 18px; background: linear-gradient(160deg, #1877f2, #0b4fb3); color: #fff !important; text-decoration: none !important; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: transform .2s; }
.fbp-fallback[hidden] { display: none; }
.fbp-fallback:hover { transform: translateY(-4px); }
.fbp-fallback > i { font-size: 56px; margin-bottom: 6px; }
.fbp-fallback strong { font-size: 20px; }
.fbp-fallback span { opacity: .85; font-size: 14px; }
.fbp-fallback em { font-style: normal; margin-top: 10px; padding: 8px 18px; border-radius: 999px; background: #fff; color: #1877f2; font-weight: 600; font-size: 14px; }

/* Facebook embedded posts */
.fbx-section { padding: 50px 0; background: #f6f7f9; }
.fbx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.fbx-card { background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.08); overflow: hidden; text-align: center; }
.fbx-card .fb-post, .fbx-card .fb-post span, .fbx-card .fb-post iframe { max-width: 100% !important; }
.fbx-card blockquote { margin: 0; }
.fbx-loading { display: block; padding: 40px 16px; color: #1877f2 !important; font-weight: 600; text-decoration: none !important; }
