/* =====================================================================
   modern.css — ปุ่มติดต่อลอย, แบนเนอร์คุกกี้ (PDPA), หน้าผลงาน, FAQ, หน้านโยบาย
   ===================================================================== */
:root {
	--brand: #29C7D9;
	--brand-ink: #0b7c8e;
	--brand-soft: #e6f8fb;
	--accent: #09A203;
	--ink: #1f2d3a;
	--muted: #5d6b78;
	--line: #e3ecf1;
	--radius: 16px;
	--shadow-sm: 0 2px 8px rgba(16, 42, 67, .08);
	--shadow-md: 0 10px 30px rgba(16, 42, 67, .12);
	--fab-bar-h: 0px;
}

/* ---------- ปุ่มติดต่อลอย ---------- */
.contact-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1040;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	font-family: 'Prompt', sans-serif;
}
.contact-fab__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 18px 6px 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: var(--shadow-md);
	border: 1px solid rgba(255, 255, 255, .7);
	color: var(--ink) !important;
	text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease;
}
.contact-fab__item:hover,
.contact-fab__item:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(16, 42, 67, .2);
}
.contact-fab__icon {
	position: relative;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 18px;
	background: var(--brand-ink);
}
.contact-fab__item.is-call .contact-fab__icon { background: linear-gradient(135deg, #ff9a1f, #ff6a00); }
.contact-fab__item.is-line .contact-fab__icon { background: #06C755; font-size: 22px; }
.contact-fab__item.is-messenger .contact-fab__icon { background: linear-gradient(135deg, #00b2ff, #a033ff); font-size: 20px; }
.contact-fab__item.is-call:first-child .contact-fab__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(255, 122, 0, .55);
	animation: fab-pulse 2s infinite;
}
.contact-fab__text { display: flex; flex-direction: column; line-height: 1.2; }
.contact-fab__text small { font-size: 12px; color: var(--muted); }
.contact-fab__text strong { font-size: 16px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }

@keyframes fab-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, .55); }
	70% { box-shadow: 0 0 0 14px rgba(255, 122, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); }
}

/* ย้ายปุ่มกลับขึ้นด้านบนของธีมไปมุมซ้าย ไม่ให้ทับปุ่มติดต่อ */
html body .scroll-to-top { right: auto; left: 10px; border-radius: 7px 7px 0 0; }

/* มือถือ: แถบติดต่อด้านล่าง เห็นเบอร์ทันที */
@media (max-width: 767px) {
	:root { --fab-bar-h: 68px; }
	body { padding-bottom: var(--fab-bar-h); }
	.contact-fab {
		left: 0;
		right: 0;
		bottom: 0;
		flex-direction: row;
		align-items: stretch;
		gap: 6px;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .97);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		box-shadow: 0 -6px 20px rgba(16, 42, 67, .12);
	}
	.contact-fab__item {
		flex: 1 1 0;
		min-width: 0;
		justify-content: center;
		gap: 8px;
		padding: 6px 8px;
		border-radius: 12px;
		box-shadow: none;
		background: var(--brand-soft);
		border: 0;
	}
	.contact-fab__item:hover { transform: none; box-shadow: none; }
	.contact-fab__icon { flex-basis: 36px; width: 36px; height: 36px; font-size: 15px; }
	.contact-fab__item.is-line .contact-fab__icon,
	.contact-fab__item.is-messenger .contact-fab__icon { font-size: 18px; }
	.contact-fab__text small { font-size: 11px; }
	.contact-fab__text strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 380px) {
	.contact-fab__text small { display: none; }
}

/* ---------- แบนเนอร์คุกกี้ (PDPA) ---------- */
.cc-banner {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 1060;
	width: min(560px, calc(100% - 40px));
	padding: 20px;
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	box-shadow: 0 18px 50px rgba(16, 42, 67, .22);
	border: 1px solid var(--line);
	font-family: 'Prompt', sans-serif;
	animation: cc-in .35s ease both;
}
@media (min-width: 768px) { .cc-banner { width: min(560px, calc(100% - 300px)); } } /* เว้นที่ให้ปุ่มติดต่อมุมขวา */
.cc-banner[hidden], .cc-modal[hidden] { display: none !important; }
.cc-banner__body { display: flex; gap: 14px; align-items: flex-start; }
.cc-banner__icon {
	flex: 0 0 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 20px;
}
.cc-banner__text strong { display: block; font-size: 17px; margin-bottom: 4px; }
.cc-banner__text p { font-size: 14px; line-height: 1.6 !important; color: var(--muted); }
.cc-banner__text a, .cc-modal a { color: var(--brand-ink); text-decoration: underline; }
.cc-banner__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.cc-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 9px 18px;
	font: 500 14px/1.2 'Prompt', sans-serif;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.cc-btn--primary { background: var(--brand-ink); color: #fff; }
.cc-btn--primary:hover { background: #086676; }
.cc-btn--outline { background: #fff; color: var(--ink); border-color: #cfdbe3; }
.cc-btn--outline:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.cc-btn--link { background: none; color: var(--brand-ink); text-decoration: underline; padding-left: 6px; padding-right: 6px; margin-right: auto; }
.cc-btn:focus-visible, .cc-modal__close:focus-visible { outline: 3px solid rgba(41, 199, 217, .5); outline-offset: 2px; }

.cc-modal { position: fixed; inset: 0; z-index: 1070; display: grid; place-items: center; padding: 16px; font-family: 'Prompt', sans-serif; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 30, 45, .55); }
.cc-modal__dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	color: var(--ink);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
	animation: cc-in .25s ease both;
}
.cc-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.cc-modal__head h2 { font-size: 20px; margin: 0; color: var(--ink); font-weight: 600; letter-spacing: 0; }
.cc-modal__close { border: 0; background: #f1f5f8; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--ink); }
.cc-modal__body { padding: 8px 22px 4px; }
.cc-modal__intro { font-size: 14px; color: var(--muted); margin-bottom: 12px !important; line-height: 1.6 !important; }
.cc-cat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; cursor: pointer; }
.cc-cat__head strong { font-size: 15px; }
.cc-cat p { font-size: 13px; color: var(--muted); margin-top: 6px !important; line-height: 1.6 !important; }
.cc-cat__always { font-size: 12px; color: var(--accent); font-weight: 600; }
.cc-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 22px 20px; }

.cc-switch { position: relative; flex: 0 0 46px; width: 46px; height: 26px; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfd8df; transition: background .2s; pointer-events: none; }
.cc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.cc-switch input:checked + span { background: var(--brand-ink); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid rgba(41, 199, 217, .5); outline-offset: 2px; }

html.cc-modal-open { overflow: hidden; }

@keyframes cc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
	.cc-banner { left: 10px; right: 10px; width: auto; bottom: calc(var(--fab-bar-h) + 10px); padding: 16px; }
	.cc-banner__icon { display: none; }
	.cc-banner__actions .cc-btn { flex: 1 1 auto; }
	.cc-btn--link { flex: 0 0 auto !important; }
}

/* ---------- ลิงก์นโยบายในส่วนท้าย ---------- */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; margin-left: 12px; }
.footer-legal a { color: inherit !important; text-decoration: underline; opacity: .85; }
.footer-legal a:hover { opacity: 1; }
@media (max-width: 767px) { .footer-legal { display: flex; margin: 8px 0 0; } }

/* ---------- หน้าผลงานของเรา ---------- */
.pf { padding: 56px 0 40px; background: linear-gradient(180deg, #f2fbfd 0%, #fff 360px); font-family: 'Prompt', sans-serif; }
.pf-intro { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.pf-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; font-weight: 500; }
.pf-title { margin: 14px 0 10px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.35; color: var(--ink); font-weight: 600; letter-spacing: 0; }
.pf-lead { color: var(--muted); font-size: 16px; line-height: 1.7 !important; }
.pf-stats { list-style: none; padding: 0; margin: 24px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; }
.pf-stats li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; box-shadow: var(--shadow-sm); }
.pf-stats strong { display: block; font-size: 24px; line-height: 1.2; color: var(--brand-ink); font-weight: 700; }
.pf-stats span { font-size: 13px; color: var(--muted); }

.pf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.pf-search { position: relative; flex: 1 1 280px; margin: 0; }
.pf-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pf-search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid #d6e2e9; border-radius: 999px; background: #fff; font: 15px 'Prompt', sans-serif; color: var(--ink); box-shadow: var(--shadow-sm); }
.pf-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(41, 199, 217, .18); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { border: 1px solid #d6e2e9; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 14px 'Prompt', sans-serif; cursor: pointer; transition: all .2s; }
.pf-chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.pf-chip.is-active { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.pf-count { width: 100%; font-size: 14px; color: var(--muted); }
.pf-add { margin-left: auto; }

.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.pf-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; animation: pf-in .5s ease both; }
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pf-card[hidden] { display: none; }
.pf-card__link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none !important; }
.pf-card__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-soft); }
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pf-card:hover .pf-card__media img { transform: scale(1.06); }
.pf-card__views { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 30, 45, .65); color: #fff; font-size: 12px; backdrop-filter: blur(4px); }
.pf-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.pf-card__title { margin: 0; font-size: 17px !important; line-height: 1.5 !important; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.pf-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.pf-card__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; color: var(--brand-ink); }
.pf-card__more i { transition: transform .2s; }
.pf-card:hover .pf-card__more i { transform: translateX(4px); }
.pf-empty { text-align: center; padding: 40px 0; color: var(--muted); }

.pf-cta { padding: 8px 0 64px; background: #fff; font-family: 'Prompt', sans-serif; }
.pf-cta__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; border-radius: 24px; background: linear-gradient(120deg, #0b7c8e, #29C7D9); color: #fff; box-shadow: var(--shadow-md); }
.pf-cta__box h2 { color: #fff; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4; margin: 0 0 6px; font-weight: 600; letter-spacing: 0; }
.pf-cta__box p { color: rgba(255, 255, 255, .92); }
.pf-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none !important; transition: transform .2s; }
.pf-btn:hover { transform: translateY(-2px); }
.pf-btn--light { background: #fff; color: var(--brand-ink) !important; }
.pf-btn--ghost { border: 2px solid rgba(255, 255, 255, .8); color: #fff !important; }

@keyframes pf-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) {
	.pf { padding-top: 36px; }
	.pf-stats strong { font-size: 20px; }
	.pf-grid { grid-template-columns: 1fr; gap: 18px; }
	.pf-cta__box { padding: 24px; }
	.pf-cta__actions, .pf-btn { width: 100%; justify-content: center; }
}

/* ---------- FAQ (หน้าแรก) ---------- */
.faq { padding: 56px 0; background: #f7fafc; font-family: 'Prompt', sans-serif; }
.faq__title { text-align: center; color: var(--ink); font-weight: 600; font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; letter-spacing: 0; }
.faq__lead { text-align: center; color: var(--muted); margin-bottom: 28px !important; }
.faq__list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; font-weight: 500; font-size: 16px; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 18px; line-height: 1; transition: transform .2s; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 20px 18px; color: var(--muted); line-height: 1.7 !important; }

/* ---------- หน้านโยบาย ---------- */
.policy { padding: 48px 0 64px; background: #f7fafc; font-family: 'Prompt', sans-serif; }
.policy__card { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 20px; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); }
.policy__updated { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; margin-bottom: 16px; }
.policy__card h2 { font-size: 20px; font-weight: 600; color: var(--brand-ink); margin: 30px 0 10px; letter-spacing: 0; }
.policy__card h3 { font-size: 17px !important; line-height: 1.5 !important; font-weight: 600; margin: 18px 0 6px; color: var(--ink); letter-spacing: 0; }
.policy__card p, .policy__card li { font-size: 15px; line-height: 1.8 !important; color: #3d4b58; }
.policy__card p { margin-bottom: 10px !important; }
.policy__card ul { padding-left: 22px; margin-bottom: 10px; }
.policy__card a { color: var(--brand-ink); text-decoration: underline; }
.policy__toc { background: #f4f9fb; border-radius: 14px; padding: 16px 20px; margin: 10px 0 6px; }
.policy__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.policy__toc li { font-size: 14px; }
.policy__table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; }
.policy__table th, .policy__table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.policy__table th { background: #f4f9fb; font-weight: 600; }
.policy__scroll { overflow-x: auto; }
.policy__contact { background: var(--brand-soft); border-radius: 14px; padding: 16px 20px; }
@media (max-width: 575px) { .policy__toc ol { columns: 1; } }

@media (prefers-reduced-motion: reduce) {
	.contact-fab__item.is-call:first-child .contact-fab__icon::after,
	.pf-card, .cc-banner, .cc-modal__dialog { animation: none; }
	.pf-card, .pf-card__media img, .contact-fab__item { transition: none; }
}

/* =====================================================================
   ส่วนหัวเว็บ (_nav_top.php)
   ===================================================================== */
:root { --sh-top-h: 40px; }
#header.site-header {
	position: -webkit-sticky;
	position: sticky;
	top: calc(-1 * var(--sh-top-h)); /* แถบบนเลื่อนหายไป เหลือแถบเมนูติดด้านบน */
	z-index: 1030;
	font-family: 'Prompt', sans-serif;
}
.sh-top { height: var(--sh-top-h); background: linear-gradient(90deg, #0b7c8e, #1fb4c9 60%, #29C7D9); color: #fff; }
.sh-top__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-top__promo { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; color: rgba(255, 255, 255, .95) !important; font-size: 13.5px; line-height: 1.2 !important; }
.sh-dot { flex: 0 0 4px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.sh-top__contact { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-size: 14px; }
.sh-top__contact a { color: #fff !important; text-decoration: none !important; font-weight: 500; }
.sh-top__contact a:hover { text-decoration: underline !important; }
.sh-top__owner { opacity: .85; }
.sh-social { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .18); font-size: 13px; transition: background .2s; }
.sh-social:hover { background: rgba(255, 255, 255, .35); text-decoration: none !important; }

.sh-main { position: relative; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(16, 42, 67, .06); transition: box-shadow .25s; }
#header.is-scrolled .sh-main { box-shadow: 0 8px 24px rgba(16, 42, 67, .1); }
.sh-main__inner { display: flex; align-items: center; gap: 24px; height: 86px; transition: height .25s; }
#header.is-scrolled .sh-main__inner { height: 68px; }
.sh-logo { flex: 0 0 auto; display: block; }
.sh-logo img { display: block; width: auto; height: 62px; transition: height .25s; }
#header.is-scrolled .sh-logo img { height: 48px; }

.sh-nav { margin-left: auto; }
.sh-nav ul { list-style: none; margin: 0; padding: 5px; display: flex; gap: 4px; background: #eef5f8; border-radius: 999px; }
.sh-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; color: var(--ink) !important; text-decoration: none !important; font-size: 16px; font-weight: 500; transition: background .2s, box-shadow .2s, color .2s; }
.sh-nav a i { color: var(--brand-ink); font-size: 15px; transition: color .2s; }
.sh-nav a:hover { background: #fff; box-shadow: var(--shadow-sm); }
.sh-nav a.is-active { background: var(--brand-ink); color: #fff !important; box-shadow: 0 6px 16px rgba(11, 124, 142, .3); }
.sh-nav a.is-active i { color: #fff; }
.sh-nav__calls { display: none; }

.sh-actions { display: flex; align-items: center; gap: 10px; }
.sh-cta { display: inline-flex; align-items: center; gap: 10px; padding: 6px 20px 6px 6px; border-radius: 999px; background: linear-gradient(135deg, #ff9a1f, #ff5e00); color: #fff !important; text-decoration: none !important; box-shadow: 0 8px 20px rgba(255, 106, 0, .35); transition: transform .2s, box-shadow .2s; }
.sh-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 106, 0, .45); }
.sh-cta__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); font-size: 17px; }
.sh-cta__icon i { animation: phone-ring 2.6s ease-in-out infinite; }
.sh-cta__text { display: flex; flex-direction: column; line-height: 1.15; }
.sh-cta__text small { font-size: 12px; opacity: .9; }
.sh-cta__text strong { font-size: 17px; font-weight: 600; letter-spacing: .2px; }

.sh-burger { display: none; }

@keyframes phone-ring {
	0%, 58%, 100% { transform: rotate(0); }
	62% { transform: rotate(-18deg); }
	66% { transform: rotate(16deg); }
	70% { transform: rotate(-14deg); }
	74% { transform: rotate(10deg); }
	78% { transform: rotate(-6deg); }
	82% { transform: rotate(0); }
}
@keyframes sh-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1199px) {
	.sh-nav a { padding: 10px 14px; }
	.sh-top__promo .sh-dot:last-of-type, .sh-top__promo .sh-dot:last-of-type ~ * { display: none; }
}
@media (max-width: 991px) {
	:root { --sh-top-h: 0px; }
	.sh-top { display: none; }
	.sh-main__inner { height: 68px; gap: 12px; }
	#header.is-scrolled .sh-main__inner { height: 60px; }
	.sh-logo img { height: 46px; }
	#header.is-scrolled .sh-logo img { height: 40px; }
	.sh-actions { margin-left: auto; }
	.sh-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--brand-soft); cursor: pointer; }
	.sh-burger span { display: block; height: 2px; border-radius: 2px; background: var(--brand-ink); transition: transform .25s, opacity .2s; }
	#header.menu-open .sh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	#header.menu-open .sh-burger span:nth-child(2) { opacity: 0; }
	#header.menu-open .sh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.sh-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 12px 16px 18px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(16, 42, 67, .15); }
	.sh-nav.is-open { display: block; animation: sh-drop .2s ease; }
	.sh-nav ul { flex-direction: column; gap: 4px; padding: 0; background: none; border-radius: 0; }
	.sh-nav a { display: flex; padding: 14px 16px; border-radius: 14px; font-size: 17px; }
	.sh-nav__calls { display: grid; gap: 8px; margin-top: 12px; }
	.sh-nav__call { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 14px; background: linear-gradient(135deg, #ff9a1f, #ff5e00); color: #fff !important; font-weight: 600; text-decoration: none !important; }
}
@media (max-width: 575px) {
	.sh-cta { padding: 3px; }
	.sh-cta__text { display: none; }
}

/* =====================================================================
   ปุ่มโทร (widget-btn-contact.php และแถบด้านข้างหน้ารายละเอียดผลงาน)
   ===================================================================== */
.call-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: 'Prompt', sans-serif; }
.call-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; width: 100%; }
.call-btn {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-width: 300px;
	padding: 10px 22px 10px 10px;
	border-radius: 999px;
	text-decoration: none !important;
	font-family: 'Prompt', sans-serif;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1.2), box-shadow .25s, background-position .6s;
}
.call-btn--hot {
	color: #fff !important;
	background: linear-gradient(120deg, #ff3d3d, #ff7a00, #ffb000, #ff3d3d);
	background-size: 300% 100%;
	box-shadow: 0 10px 28px rgba(255, 70, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
	animation: call-gradient 6s ease infinite;
}
.call-btn--light {
	color: var(--ink) !important;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 10px 26px rgba(8, 60, 80, .22);
}
/* แสงวิ่งผ่านปุ่ม */
.call-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	z-index: -1;
	width: 45%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg);
	animation: call-shine 3.6s ease-in-out infinite;
}
.call-btn--light::before { background: linear-gradient(100deg, transparent, rgba(41, 199, 217, .25), transparent); animation-delay: 1.8s; }
.call-btn:hover { transform: translateY(-4px) scale(1.03); }
.call-btn--hot:hover { box-shadow: 0 16px 36px rgba(255, 70, 20, .55); }
.call-btn--light:hover { box-shadow: 0 16px 34px rgba(8, 60, 80, .3); }
.call-btn:active { transform: translateY(-1px) scale(.99); }
.call-btn__icon { position: relative; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; }
.call-btn--hot .call-btn__icon { background: #fff; color: #ff4d1a; }
.call-btn--light .call-btn__icon { background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; }
.call-btn__icon i { animation: phone-ring 2.4s ease-in-out infinite; }
.call-btn--light .call-btn__icon i { animation-delay: 1.2s; }
/* วงคลื่นรอบไอคอน */
.call-btn__icon::before, .call-btn__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .8);
	animation: call-wave 2.4s ease-out infinite;
}
.call-btn__icon::after { animation-delay: 1.2s; }
.call-btn--light .call-btn__icon::before, .call-btn--light .call-btn__icon::after { border-color: rgba(41, 199, 217, .6); }
.call-btn__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.call-btn__text small { font-size: 13px; opacity: .92; }
.call-btn__text strong { font-size: 25px; font-weight: 700; letter-spacing: .5px; }
.call-btn__arrow { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: rgba(255, 255, 255, .22); transition: transform .25s; }
.call-btn--light .call-btn__arrow { background: var(--brand-soft); color: var(--brand-ink); }
.call-btn:hover .call-btn__arrow { transform: translateX(4px); }
.call-btn--block { display: flex; width: 100%; min-width: 0; margin-top: 10px; }
.call-btn--block .call-btn__text strong { font-size: 20px; }
.call-btn--block .call-btn__icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 18px; }

.call-cta__note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff !important; font-size: 14px; line-height: 1.4 !important; }
.call-cta__live { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #3dff7a; box-shadow: 0 0 0 0 rgba(61, 255, 122, .7); animation: live-dot 1.8s infinite; }

@keyframes call-gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes call-shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes call-wave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(61, 255, 122, .7); } 70% { box-shadow: 0 0 0 10px rgba(61, 255, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 122, 0); } }

@media (max-width: 575px) {
	.call-btn { min-width: 0; width: 100%; }
	.call-btn__text strong { font-size: 22px; }
}

/* =====================================================================
   หน้ารายละเอียดผลงาน (page-portfolio-detail.php)
   ===================================================================== */
.pd { padding: 40px 0 64px; background: linear-gradient(180deg, #f2fbfd 0%, #fff 420px); font-family: 'Prompt', sans-serif; }
.pd-admin { text-align: right; margin-bottom: 16px; }
.pd-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.pd-empty p { margin-bottom: 16px !important; font-size: 18px; }
.pd-empty .pf-btn--light { border: 1px solid var(--line); }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.pd-main { min-width: 0; }
.pd-cover { margin: 0 0 -40px; position: relative; z-index: 1; }
.pd-zoom { position: relative; display: block; overflow: hidden; border-radius: 20px; box-shadow: var(--shadow-md); background: var(--brand-soft); }
.pd-zoom img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; transition: transform .6s ease; }
.pd-zoom:hover img { transform: scale(1.03); }
.pd-zoom__hint { position: absolute; right: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 30, 45, .6); color: #fff; font-size: 13px; backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.pd-zoom:hover .pd-zoom__hint, .pd-zoom:focus-visible .pd-zoom__hint { opacity: 1; }
.pd-body { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 64px 28px 26px; box-shadow: var(--shadow-sm); }
.pd-main > .pd-body:first-child { padding-top: 26px; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.pd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 500; }
.pd-content { color: #34424f; font-size: 16px; }
.pd-content p { color: #34424f; line-height: 1.85 !important; margin-bottom: 12px !important; }
.pd-content img { max-width: 100%; height: auto; border-radius: 12px; }
.pd-h2 { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.pd-h2 i { color: var(--brand-ink); }
.pd-h2 span { font-size: 14px; color: var(--muted); font-weight: 400; }
.pd-gallery { margin-top: 8px; }
.pd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); }
.pd-share__label { font-size: 14px; color: var(--muted); margin-right: 4px; }
.pd-share__btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid transparent; font: 500 14px 'Prompt', sans-serif; color: #fff !important; text-decoration: none !important; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.pd-share__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pd-share__btn.is-fb { background: #1877f2; }
.pd-share__btn.is-line { background: #06c755; }
.pd-share__btn.is-copy { background: #fff; color: var(--ink) !important; border-color: #d6e2e9; }
.pd-share__btn.is-copy.is-done { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.pd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.pd-pager__link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pd-pager__link:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pd-pager__link small { color: var(--brand-ink); font-size: 13px; }
.pd-pager__link strong { color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.45; }
.pd-pager__link.is-next { text-align: right; grid-column: 2; }

.pd-side { position: sticky; top: 92px; display: grid; gap: 20px; }
.pd-cta { padding: 24px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .22), transparent 45%), linear-gradient(140deg, #0b7c8e, #29C7D9); box-shadow: var(--shadow-md); }
.pd-cta h2 { margin: 0 0 4px; color: #fff; font-size: 22px; font-weight: 600; letter-spacing: 0; }
.pd-cta > p { color: rgba(255, 255, 255, .92) !important; font-size: 14px; }
.pd-cta__list { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; gap: 8px; }
.pd-cta__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.pd-cta__list i { margin-top: 3px; color: #b6ffcf; }
.pd-cta .call-btn--light { background: rgba(255, 255, 255, .96); }
.pd-more { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.pd-more h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.pd-more__item { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 12px; text-decoration: none !important; transition: background .2s; }
.pd-more__item:hover { background: #f3f9fb; }
.pd-more__item img { flex: 0 0 84px; width: 84px; height: 64px; object-fit: cover; border-radius: 10px; }
.pd-more__item strong { display: block; color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.pd-more__item small { color: var(--muted); font-size: 12.5px; }
.pd-more__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--brand-ink) !important; font-weight: 500; text-decoration: none !important; }

@media (max-width: 991px) {
	.pd-layout { grid-template-columns: 1fr; }
	.pd-side { position: static; }
}
@media (max-width: 575px) {
	.pd { padding-top: 24px; }
	.pd-cover { margin-bottom: -24px; }
	.pd-body { padding: 44px 18px 20px; border-radius: 16px; }
	.pd-pager { grid-template-columns: 1fr; }
	.pd-pager__link.is-next { grid-column: auto; }
}

/* =====================================================================
   หน้าติดต่อเรา (page-contact.php)
   ===================================================================== */
.ct { padding: 56px 0 48px; background: linear-gradient(180deg, #f2fbfd 0%, #fff 420px); font-family: 'Prompt', sans-serif; }
.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.ct-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); text-decoration: none !important; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ct-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.ct-card--wide { grid-column: 1 / -1; }
.ct-card__icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--brand-ink), var(--brand)); }
.ct-card.is-call .ct-card__icon { background: linear-gradient(135deg, #ff9a1f, #ff5e00); }
.ct-card.is-call .ct-card__icon i { animation: phone-ring 2.6s ease-in-out infinite; }
.ct-card.is-line .ct-card__icon { background: #06c755; font-size: 26px; }
.ct-card.is-whatsapp .ct-card__icon { background: #25d366; font-size: 26px; }
.ct-card.is-fb .ct-card__icon { background: #1877f2; }
.ct-card.is-mail .ct-card__icon { background: linear-gradient(135deg, #6a5cff, #9b7bff); }
.ct-card.is-map .ct-card__icon { background: linear-gradient(135deg, #ea4335, #ff7a59); }
.ct-card__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ct-card__text small { color: var(--muted); font-size: 13.5px; }
.ct-card__text strong { color: var(--ink); font-size: 21px; font-weight: 600; word-break: break-word; }
.ct-card--wide .ct-card__text strong { font-size: 17px; font-weight: 500; }
.ct-card__text em { margin-top: 6px; font-style: normal; font-size: 13.5px; color: var(--brand-ink); }
.ct-card__text em i { transition: transform .2s; }
.ct-card:hover .ct-card__text em i { transform: translateX(4px); }

.ct-steps { margin-top: 26px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.ct-steps .pd-h2 { margin-top: 0; }
.ct-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; counter-reset: none; }
.ct-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ct-steps li > span { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 17px; }
.ct-steps strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.ct-steps li p { color: var(--muted) !important; font-size: 14px; line-height: 1.6 !important; }

.ct-side { position: sticky; top: 92px; display: grid; gap: 20px; }
.ct-map { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: linear-gradient(135deg, #e6f8fb, #f7fbfc); }
.ct-map::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(11, 124, 142, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 124, 142, .08) 1px, transparent 1px); background-size: 28px 28px; }
.ct-map__placeholder { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.ct-map__placeholder > i { font-size: 44px; color: #ea4335; animation: map-bounce 2.2s ease-in-out infinite; }
.ct-map__placeholder p { color: var(--ink) !important; font-size: 15px; line-height: 1.6 !important; }
.ct-map__placeholder small { color: var(--muted); font-size: 12px; }
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ct-why { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.ct-why .pd-h2 { margin: 0 0 6px; font-size: 18px; }
.ct-why .pd-cta__list { margin: 8px 0 0; }
.ct-why .pd-cta__list li { color: #3d4b58; }
.ct-why .pd-cta__list i { color: var(--accent); }

.ct-gallery { padding: 40px 0 56px; background: #f7fafc; font-family: 'Prompt', sans-serif; }
.ct-gallery #gallery-2 { margin-top: 8px; }
.ct-tags, .sf-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.ct-tags__label { margin-right: 4px; color: var(--muted); font-size: 14px; }
.ct-tags .badge { margin: 0 !important; padding: 7px 14px; border-radius: 999px; font-size: 13.5px !important; font-weight: 400 !important; background: #fff !important; color: var(--brand-ink) !important; border: 1px solid #d6e2e9; transition: all .2s; }
.ct-tags .badge:hover { background: var(--brand-ink) !important; border-color: var(--brand-ink); color: #fff !important; }

@keyframes map-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 991px) {
	.ct-layout { grid-template-columns: 1fr; }
	.ct-side { position: static; }
}
@media (max-width: 575px) {
	.ct { padding-top: 36px; }
	.ct-cards, .ct-steps ol { grid-template-columns: 1fr; }
	.ct-card__text strong { font-size: 19px; }
}

/* =====================================================================
   ส่วนท้ายเว็บ (_footer.php)
   ===================================================================== */
.site-footer { position: relative; margin-top: 0; color: rgba(255, 255, 255, .78); font-family: 'Prompt', sans-serif; background: #0d2b38; }
.sf-wave { position: absolute; left: 0; right: 0; top: -69px; height: 70px; line-height: 0; pointer-events: none; }
.sf-wave svg { width: 100%; height: 100%; }
.sf-wave path { fill: #0d2b38; }
.sf-main { padding: 36px 0 28px; background: radial-gradient(circle at 10% 0%, rgba(41, 199, 217, .16), transparent 40%), radial-gradient(circle at 95% 100%, rgba(9, 162, 3, .12), transparent 40%); }
.sf-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.15fr 1fr; gap: 36px; }
.sf-logo { display: inline-block; padding: 10px 14px; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.sf-logo img { display: block; width: auto; height: 54px; }
.site-footer p { color: rgba(255, 255, 255, .75) !important; font-size: 14.5px; line-height: 1.75 !important; }
.sf-brand p { margin-top: 16px !important; }
.sf-social { display: flex; gap: 10px; margin-top: 16px; }
.sf-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff !important; transition: background .2s, transform .2s; }
.sf-social a:hover { background: var(--brand); transform: translateY(-2px); text-decoration: none !important; }
.sf-like { margin-top: 14px; min-height: 0; }
.sf-title { position: relative; margin: 6px 0 18px; padding-bottom: 10px; color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.sf-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #3dff7a); }
.sf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sf-links a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .78) !important; font-size: 15px; text-decoration: none !important; transition: color .2s, transform .2s; }
.sf-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .6; transition: opacity .2s; }
.sf-links a:hover { color: #fff !important; transform: translateX(4px); }
.sf-links a:hover::before { opacity: 1; }
.sf-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sf-contact li { display: flex; gap: 12px; align-items: flex-start; }
.sf-contact__icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(41, 199, 217, .15); color: var(--brand); }
.sf-contact small { display: block; color: rgba(255, 255, 255, .55); font-size: 12.5px; }
.sf-contact a, .sf-contact span { color: #fff !important; font-size: 15px; line-height: 1.5; text-decoration: none !important; }
.sf-contact a + a::before { content: ", "; color: rgba(255, 255, 255, .5); }
.sf-contact a:hover { color: var(--brand) !important; }
.sf-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sf-stats li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.sf-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.sf-stats strong { color: #fff; font-size: 17px; font-weight: 600; }
.sf-total { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(41, 199, 217, .3), rgba(9, 162, 3, .25)); }
.sf-total span { font-size: 14px; color: #fff; }
.sf-total strong { color: #fff; font-size: 20px; font-weight: 700; }
.sf-tags { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sf-tags__label { margin-right: 4px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.site-footer .sf-tags .badge { margin: 0 !important; padding: 6px 12px; border-radius: 999px; font-size: 13px !important; font-weight: 400 !important; background: rgba(255, 255, 255, .07) !important; color: rgba(255, 255, 255, .8) !important; transition: all .2s; }
.site-footer .sf-tags .badge:hover { background: var(--brand-ink) !important; color: #fff !important; }
.sf-bottom { background: rgba(0, 0, 0, .25); border-top: 1px solid rgba(255, 255, 255, .06); }
.sf-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 18px; padding-bottom: 18px; }
.sf-bottom p { font-size: 14px; }
.sf-bottom a { color: #fff !important; }
.site-footer .footer-legal { margin-left: 0; font-size: 14px; }

@media (max-width: 991px) {
	.sf-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 575px) {
	.sf-wave { top: -39px; height: 40px; }
	.sf-grid { grid-template-columns: 1fr; gap: 28px; }
	.sf-bottom__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.sh-cta__icon i, .call-btn, .call-btn::before, .call-btn__icon i, .call-btn__icon::before, .call-btn__icon::after,
	.call-cta__live, .ct-card.is-call .ct-card__icon i, .ct-map__placeholder > i { animation: none; }
}

/* เว้นที่ให้คลื่นด้านบนของ footer และปุ่มติดต่อลอยมุมขวา */
.pf-cta, .pd, .policy, .ct-gallery { padding-bottom: 96px; }
@media (min-width: 768px) { .sf-bottom__inner { padding-right: 250px; } }

@media (max-width: 575px) { .sf-links { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   แกลเลอรีภาพผลงาน + lightbox (js/gallery.js)
   ===================================================================== */
.mg { columns: 3 200px; column-gap: 12px; }
.mg[data-count="1"] { columns: 1; max-width: 560px; }
.mg[data-count="2"] { columns: 2; }
.mg__item {
	position: relative;
	display: block;
	margin: 0 0 12px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--brand-soft);
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	box-shadow: var(--shadow-sm);
	transform: translateZ(0);
	animation: pf-in .5s ease both;
}
.mg__item img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.mg__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 40, 52, .55)); opacity: 0; transition: opacity .3s; }
.mg__zoom {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 17px;
	background: rgba(255, 255, 255, .22);
	border: 1px solid rgba(255, 255, 255, .5);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transform: scale(.7);
	transition: opacity .3s, transform .3s;
}
.mg__item:hover img, .mg__item:focus-visible img { transform: scale(1.06); }
.mg__item:hover::after, .mg__item:focus-visible::after { opacity: 1; }
.mg__item:hover .mg__zoom, .mg__item:focus-visible .mg__zoom { opacity: 1; transform: scale(1); }
.mg__item:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 575px) { .mg { columns: 2; column-gap: 8px; } .mg__item { margin-bottom: 8px; border-radius: 10px; } }
@media (hover: none) { .mg__zoom { opacity: .9; transform: scale(.8); left: auto; top: auto; right: 8px; bottom: 8px; margin: 0; width: 34px; height: 34px; font-size: 13px; } }

html.mg-open { overflow: hidden; }
.mg-lb {
	position: fixed;
	inset: 0;
	z-index: 1080;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 72px;
	grid-template-rows: 60px minmax(0, 1fr) auto;
	background: rgba(6, 18, 24, .94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	font-family: 'Prompt', sans-serif;
	animation: mg-fade .25s ease both;
}
.mg-lb[hidden], .mg-lb [hidden] { display: none !important; }
.mg-lb__bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.mg-lb__count { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; letter-spacing: .5px; }
.mg-lb__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.mg-lb__btn:hover { background: rgba(255, 255, 255, .2); }
.mg-lb__btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.mg-lb__close { margin-left: auto; }
.mg-lb__nav { align-self: center; justify-self: center; }
.mg-lb__nav.is-prev:hover { transform: translateX(-3px); }
.mg-lb__nav.is-next:hover { transform: translateX(3px); }
.mg-lb__stage { grid-column: 2; grid-row: 2; margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.mg-lb__img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: opacity .2s; }
.mg-lb__img.is-loading { opacity: .25; }
.mg-lb__img.is-in-right { animation: mg-in-right .35s cubic-bezier(.2, .8, .2, 1); }
.mg-lb__img.is-in-left { animation: mg-in-left .35s cubic-bezier(.2, .8, .2, 1); }
.mg-lb__cap { max-width: 720px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .8); }
.mg-lb__strip { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: thin; }
.mg-lb__thumb { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; opacity: .5; cursor: pointer; transition: opacity .2s, border-color .2s, transform .2s; }
.mg-lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-lb__thumb:hover { opacity: .85; }
.mg-lb__thumb.is-active { opacity: 1; border-color: var(--brand); transform: translateY(-2px); }

@keyframes mg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mg-in-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes mg-in-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
	.mg-lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
	.mg-lb__stage { padding: 0 8px; }
	.mg-lb__nav { position: fixed; top: 50%; margin-top: -23px; z-index: 1; background: rgba(0, 0, 0, .35); }
	.mg-lb__nav.is-prev { left: 8px; }
	.mg-lb__nav.is-next { right: 8px; }
	.mg-lb__thumb { flex-basis: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	.mg__item, .mg-lb, .mg-lb__img.is-in-right, .mg-lb__img.is-in-left { animation: none; }
	.mg__item img { transition: none; }
}

/* แบนเนอร์หน้าแรก (_slider.php) — แสดงรูปเต็มตามสัดส่วน ไม่ครอปตามความสูงจอ */
.hero-banner { background: #29B9D4; line-height: 0; }
.hero-banner img { display: block; width: 100%; height: auto; }

/* =====================================================================
   เอฟเฟกต์แสดงเมื่อเลื่อนถึง (js/reveal.js) — ซ่อนเฉพาะเมื่อมี JS (Modernizr ใส่คลาส .js)
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.pf-grid--reveal .pf-card { animation: none; }
.js .pf-card.reveal.is-visible:hover { transform: translateY(-4px); transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   หน้าแรก: เกี่ยวกับเรา + บริการของเรา
   ===================================================================== */
.svc { padding: 72px 0; background: radial-gradient(circle at 0% 0%, rgba(41, 199, 217, .12), transparent 40%), linear-gradient(180deg, #f4fafc, #fff); font-family: 'Prompt', sans-serif; }
.svc-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.svc-title { margin: 14px 0 14px; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.35; color: var(--ink); font-weight: 600; letter-spacing: 0; }
.svc-intro__text p { color: #46545f !important; font-size: 16px; line-height: 1.85 !important; margin-bottom: 10px !important; }
.svc-fabrics { list-style: none; padding: 0; margin: 16px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-fabrics li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #d6e9ef; color: var(--brand-ink); font-size: 14px; }
.svc-fabrics li::before { content: "\2713"; margin-right: 6px; color: var(--accent); font-weight: 700; }
.svc-pay { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #fff7e6; color: #9a5b00 !important; font-weight: 500; }

.svc-steps { position: relative; padding: 26px 26px 22px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .2), transparent 45%), linear-gradient(150deg, #0b7c8e, #29C7D9); box-shadow: var(--shadow-md); }
.svc-steps__title { margin: 0 0 16px; color: #fff; font-size: 20px !important; line-height: 1.4 !important; font-weight: 600; letter-spacing: 0; }
.svc-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.svc-steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; counter-increment: step; }
.svc-steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: -12px; width: 2px; background: rgba(255, 255, 255, .3); }
.svc-steps__icon { position: relative; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); font-size: 17px; }
.svc-steps__icon::after { content: counter(step); position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-ink); font-size: 11px; font-weight: 700; }
.svc-steps strong { display: block; font-size: 16px; font-weight: 600; }
.svc-steps small { display: block; color: rgba(255, 255, 255, .85); font-size: 13.5px; line-height: 1.5; }

.svc-subtitle { margin: 56px 0 22px; text-align: center; color: var(--ink); font-size: clamp(22px, 2.8vw, 28px) !important; line-height: 1.4 !important; font-weight: 600; letter-spacing: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card { position: relative; overflow: hidden; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.svc-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand-ink), var(--brand), #3dd68c); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.js .svc-card.reveal.is-visible:hover, .svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; transition-delay: 0ms; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; font-size: 24px; color: var(--brand-ink); background: var(--brand-soft); transition: background .3s, color .3s, transform .4s; }
.svc-card:hover .svc-card__icon { background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; transform: rotate(-8deg) scale(1.05); }
.svc-card__title { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.svc-card p { color: var(--muted) !important; font-size: 14.5px; line-height: 1.65 !important; }

@media (max-width: 991px) {
	.svc-intro { grid-template-columns: 1fr; gap: 28px; }
	.svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
	.svc { padding: 48px 0; }
	.svc-grid { grid-template-columns: 1fr; gap: 14px; }
	.svc-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 18px; }
	.svc-card__icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; font-size: 21px; }
}

/* ---------- หน้าแรก: จุดเด่น (รูป 3 ใบ) ---------- */
.hl { position: relative; padding: 64px 0 72px; overflow: hidden; background: linear-gradient(135deg, #0b7c8e 0%, #1fb4c9 55%, #29C7D9 100%); font-family: 'Prompt', sans-serif; }
.hl::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 22px 22px; pointer-events: none; }
.hl__title { position: relative; margin: 0 0 30px; text-align: center; color: #fff; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: 0; }
.hl-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hl-card { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 22px; box-shadow: 0 18px 40px rgba(4, 40, 52, .35); background: #0b5c6a; isolation: isolate; }
.hl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); z-index: -1; }
.hl-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(5, 35, 45, .85) 100%); transition: opacity .4s; }
.hl-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; transform: translateY(6px); transition: transform .4s ease; }
.hl-card__tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hl-card strong { display: block; font-size: 20px; line-height: 1.4; font-weight: 600; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.hl-card:hover img { transform: scale(1.08); }
.hl-card:hover figcaption { transform: translateY(0); }
@media (max-width: 767px) {
	.hl { padding: 48px 0 56px; }
	.hl-grid { grid-template-columns: 1fr; }
	.hl-card { aspect-ratio: 16 / 11; }
}

/* ---------- หน้าแรก: อัตราค่าบริการ ---------- */
.price { padding: 72px 0; background: #fff; font-family: 'Prompt', sans-serif; }
.price-group { display: flex; align-items: center; gap: 10px; margin: 8px 0 16px; color: var(--ink); font-size: 19px !important; line-height: 1.4 !important; font-weight: 600; letter-spacing: 0; }
.price-group i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 15px; }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; }
.price-card { position: relative; overflow: hidden; padding: 26px 24px; border-radius: 22px; background: linear-gradient(180deg, #fff, #f6fbfc); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.price-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(41, 199, 217, .18), transparent 70%); transition: transform .5s; }
.js .price-card.reveal.is-visible:hover, .price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand); transition-delay: 0ms; }
.price-card:hover::after { transform: scale(1.4); }
.price-card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--brand-ink), var(--brand)); box-shadow: 0 8px 18px rgba(11, 124, 142, .3); }
.price-card__name { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.price-card__from { color: var(--muted) !important; font-size: 13px; }
.price-card__amount { color: var(--ink) !important; }
.price-card__amount strong { font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--brand-ink); letter-spacing: -.5px; }
.price-card__amount span { font-size: 15px; color: var(--muted); }
.price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.price-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: #f7fafc; border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .2s; }
.price-row:hover { background: #fff; border-color: var(--brand); }
.price-row__icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-ink); font-size: 18px; box-shadow: var(--shadow-sm); }
.price-row__name { flex: 1; color: var(--ink); font-size: 16px; font-weight: 500; }
.price-row__amount { color: var(--muted); font-size: 14px; white-space: nowrap; text-align: right; }
.price-row__amount small { font-size: 12px; }
.price-row__amount strong { color: var(--brand-ink); font-size: 18px; font-weight: 700; }
.price-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 32px; padding: 22px 26px; border-radius: 22px; background: linear-gradient(120deg, #fff7ec, #ffeede); border: 1px solid #ffd9b3; }
.price-cta strong { display: block; color: #8a3b00; font-size: 19px; font-weight: 600; }
.price-cta p { color: #9a5b2e !important; font-size: 15px; }
.price-cta .call-btn { min-width: 0; }
@media (max-width: 991px) { .price-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) {
	.price { padding: 48px 0; }
	.price-cards, .price-list { grid-template-columns: 1fr; }
	.price-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; padding: 18px; }
	.price-card__icon { grid-row: span 3; margin: 0; }
	.price-card__name { margin: 0; }
	.price-card__amount strong { font-size: 24px; }
	.price-row { flex-wrap: wrap; }
	.price-cta .call-btn { width: 100%; }
}

/* ---------- หน้าแรก: ผลงานของเรา ---------- */
.home-works { padding: 72px 0 96px; background: linear-gradient(180deg, #f2fbfd, #fff 60%); font-family: 'Prompt', sans-serif; }
.home-works__admin { text-align: right; margin-bottom: 16px; }
.home-works__more { margin-top: 32px; text-align: center; }
.pf-btn--brand { background: var(--brand-ink); color: #fff !important; box-shadow: 0 10px 24px rgba(11, 124, 142, .3); }
.pf-btn--brand:hover { background: #086676; }
.pf-btn--brand i { transition: transform .2s; }
.pf-btn--brand:hover i { transform: translateX(4px); }
@media (max-width: 575px) { .home-works { padding: 48px 0 96px; } }
@media print { .js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- ตารางรูปแบบ bento (_photo_grid.php: $grid_layout = "bento") ---------- */
.mg--bento { columns: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.mg--bento .mg__item { margin: 0; aspect-ratio: 1 / 1; }
.mg--bento .mg__item:first-child { grid-column: span 2; grid-row: span 2; }
.mg--bento .mg__item img { width: 100%; height: 100%; object-fit: cover; }
.mg__item.is-extra { display: none; }
.mg__more { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; font-size: 14px; background: rgba(8, 40, 52, .62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: background .3s; }
.mg__more strong { font-size: 34px; font-weight: 700; line-height: 1; }
.mg__item.has-more:hover .mg__more { background: rgba(11, 124, 142, .75); }
.mg__item.has-more::after { display: none; }
@media (max-width: 991px) { .mg--bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .mg--bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .mg__more strong { font-size: 26px; } }

/* ---------- หน้าแรก: บรรยากาศการทำงาน ---------- */
.photos { padding: 72px 0; background: #fff; font-family: 'Prompt', sans-serif; }
@media (max-width: 575px) { .photos { padding: 48px 0; } }
.mg--bento .mg__item:first-child { aspect-ratio: auto; }

/* ---------- เมนูแอดมินในส่วนหัว (เฉพาะตอนเข้าสู่ระบบ) ---------- */
.sh-admin { position: relative; }
.sh-admin__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: #fff3dc; color: #8a4b00; font: 500 16px 'Prompt', sans-serif; cursor: pointer; transition: background .2s, box-shadow .2s; }
.sh-admin__toggle:hover, .sh-admin.is-open .sh-admin__toggle { background: #ffe6b8; box-shadow: var(--shadow-sm); }
.sh-admin__toggle.is-active { background: #f59e0b; color: #fff; }
.sh-admin__caret { font-size: 11px; transition: transform .2s; }
.sh-admin.is-open .sh-admin__caret { transform: rotate(180deg); }
.sh-nav .sh-admin__menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; min-width: 230px; margin: 0; padding: 8px; list-style: none; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(16, 42, 67, .18); }
.sh-admin.is-open .sh-admin__menu { display: flex; animation: sh-drop .18s ease; }
.sh-nav .sh-admin__menu a { display: flex; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 15px; white-space: nowrap; }
.sh-nav .sh-admin__menu a i { width: 18px; text-align: center; color: #b86e00; }
.sh-nav .sh-admin__menu a:hover { background: #fff6e5; box-shadow: none; }
.sh-nav .sh-admin__menu a.is-current { background: #fff3dc; color: #8a4b00 !important; box-shadow: none; }
.sh-nav .sh-admin__menu a.is-logout { color: #c62828 !important; }
.sh-nav .sh-admin__menu a.is-logout i { color: #c62828; }
@media (max-width: 991px) {
	.sh-admin { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
	.sh-admin__toggle { width: 100%; justify-content: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 17px; }
	.sh-admin__caret { margin-left: auto; }
	.sh-nav .sh-admin__menu { position: static; min-width: 0; margin-top: 6px; padding: 4px; box-shadow: none; border-radius: 14px; }
}
