/* Pagecraft Builder — สไตล์หน้าเว็บ (ใช้ทั้งหน้าจริงและโหมดแก้ไข) */

.pcb-region {
	container: pcb / inline-size;
	position: relative;
	font-family: var(--pcb-font-body);
	font-size: var(--pcb-fs);
	color: var(--pcb-text);
	background: var(--pcb-bg);
	line-height: 1.65;
	-webkit-text-size-adjust: 100%;
}
.pcb-region *,
.pcb-region *::before,
.pcb-region *::after { box-sizing: border-box; }
.pcb-region img { max-width: 100%; height: auto; }
.pcb-region a { color: var(--pcb-primary); }
.pcb-site { position: relative; }

/* ---------- ตำแหน่ง Header ---------- */
.pcb-region-header { z-index: 60; }
.pcb-region-header:has(.pcb-nav-sticky) { position: sticky; top: 0; }
.pcb-region-header:has(.pcb-navbar[data-overlap="1"]) { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.pcb-region-header:has(.pcb-navbar[data-overlap="1"][data-sticky="1"]) { position: fixed; }
body.admin-bar .pcb-region-header:has(.pcb-nav-sticky) { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .pcb-region-header:has(.pcb-nav-sticky) { top: 46px; }
}

/* ---------- โครงหน้า ---------- */
.pcb-section { position: relative; padding: 80px 0; }
.pcb-section[id] { scroll-margin-top: 84px; }
.pcb-section::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
@container pcb (max-width: 640px) {
	.pcb-section { padding-block: 48px; }
}
.pcb-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	margin-inline: auto;
	padding-inline: 20px;
}
.pcb-w-boxed { max-width: calc(var(--pcb-container) * 1px + 40px); }
.pcb-w-wide { max-width: 1400px; }
.pcb-w-full { max-width: none; padding-inline: 0; }
.pcb-center,
.pcb-center .pcb-inner { text-align: center; }
.pcb-center .pcb-buttons { justify-content: center; }
.pcb-center .pcb-inner > .pcb-icon,
.pcb-center .pcb-column > .pcb-icon { align-self: center; }

.pcb-columns {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pcb-column {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

/* ---------- ตัวอักษร ---------- */
.pcb-heading {
	margin: 0;
	font-family: var(--pcb-font-head);
	color: var(--pcb-h, var(--pcb-heading));
	line-height: 1.25;
	font-weight: 700;
	overflow-wrap: anywhere;
}
h1.pcb-heading { font-size: clamp(2rem, 5.2cqw, 3.6rem); }
h2.pcb-heading { font-size: clamp(1.6rem, 3.8cqw, 2.6rem); }
h3.pcb-heading { font-size: clamp(1.3rem, 2.6cqw, 1.75rem); }
h4.pcb-heading { font-size: 1.25rem; }
h5.pcb-heading { font-size: 1.1rem; }
h6.pcb-heading { font-size: 1rem; }
.pcb-heading.pcb-eyebrow {
	font-size: .82rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--pcb-eb, var(--pcb-primary));
}
.pcb-text > :first-child { margin-top: 0; }
.pcb-text > :last-child { margin-bottom: 0; }
.pcb-text p { margin: 0 0 .9em; }

/* ---------- ปุ่ม ---------- */
.pcb-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.pcb-region .pcb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .75em 1.6em;
	border: 2px solid var(--pcb-primary);
	border-radius: var(--pcb-radius);
	background: var(--pcb-primary);
	color: #fff;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s, transform .15s, background-color .15s, color .15s;
}
.pcb-region .pcb-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pcb-region .pcb-btn-outline { background: transparent; color: var(--pcb-primary); }
.pcb-region .pcb-btn-light { background: #fff; border-color: #fff; color: var(--pcb-primary); }
.pcb-region .pcb-btn-l { padding: .95em 2.1em; font-size: 1.1em; }
.pcb-btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- รูปภาพ ---------- */
.pcb-image { margin: 0; }
.pcb-image img { display: inline-block; vertical-align: top; }

/* ---------- การ์ด ---------- */
.pcb-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 1px solid #e3e8ef;
	border-radius: var(--pcb-radius);
	background: #fff;
	color: var(--pcb-text);
	--pcb-h: var(--pcb-heading);
	--pcb-eb: var(--pcb-primary);
}

/* ---------- รายการ ---------- */
.pcb-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding-left: 1.3em;
	text-align: left;
}
.pcb-list-check { list-style: none; padding-left: 0; }
.pcb-list-check li { position: relative; padding-left: 1.6em; }
.pcb-list-check li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--pcb-primary);
}

/* ---------- รายการไอคอน ---------- */
.pcb-region ul.pcb-iconlist { display: flex; flex-direction: column; gap: var(--pcb-il-gap, 16px); list-style: none; margin: 0; padding: 0; }
.pcb-region ul.pcb-iconlist > li { margin: 0; padding: 0; min-width: 0; max-width: 100%; }
.pcb-il-in { display: flex; gap: var(--pcb-il-igap, 14px); align-items: flex-start; text-align: left; }
.pcb-region a.pcb-il-in { color: inherit; text-decoration: none; }
.pcb-region a.pcb-il-in:hover .pcb-il-t { text-decoration: underline; }
.pcb-il-ic { display: inline-flex; flex: none; color: var(--pcb-il-c, var(--pcb-primary)); transition: color .2s ease; }
.pcb-il-ic svg { display: block; width: var(--pcb-il-size, 20px); height: var(--pcb-il-size, 20px); }
.pcb-il-item:hover .pcb-il-ic { color: var(--pcb-il-ch, var(--pcb-il-c, var(--pcb-primary))); }
.pcb-il-t { min-width: 0; overflow-wrap: anywhere; }
.pcb-il-ymiddle .pcb-il-in { align-items: center; }
.pcb-il-ybottom .pcb-il-in { align-items: flex-end; }
.pcb-il-v.pcb-il-xleft { align-items: flex-start; }
.pcb-il-v.pcb-il-xcenter { align-items: center; }
.pcb-il-v.pcb-il-xright { align-items: flex-end; }
.pcb-region ul.pcb-iconlist.pcb-il-h { flex-direction: row; flex-wrap: wrap; }
.pcb-il-h.pcb-il-xcenter { justify-content: center; }
.pcb-il-h.pcb-il-xright { justify-content: flex-end; }
.pcb-il-v.pcb-il-div > li { align-self: stretch; }
.pcb-il-v.pcb-il-div.pcb-il-xcenter .pcb-il-in { justify-content: center; }
.pcb-il-v.pcb-il-div.pcb-il-xright .pcb-il-in { justify-content: flex-end; }
.pcb-region ul.pcb-il-v.pcb-il-div > li + li { border-top: 1px solid var(--pcb-il-dc, #e3e8ef); padding-top: var(--pcb-il-gap, 16px); }
.pcb-region ul.pcb-il-h.pcb-il-div > li + li { border-left: 1px solid var(--pcb-il-dc, #e3e8ef); padding-left: var(--pcb-il-gap, 16px); }
.pcb-region .pcb-site-h, .pcb-region .pcb-page-h { margin: 0; }
.pcb-region .pcb-site-h a { color: inherit; text-decoration: none; }
.pcb-region .pcb-site-desc { margin: 4px 0 0; opacity: .75; }

/* ---------- ราคา ---------- */
.pcb-price {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	border: 1px solid #e3e8ef;
	border-radius: calc(var(--pcb-radius) * 1.4);
	background: #fff;
	color: var(--pcb-text);
	text-align: left;
	--pcb-h: var(--pcb-heading);
}
.pcb-price.is-featured { border-color: var(--pcb-primary); box-shadow: 0 12px 32px rgba(15, 23, 42, .12); }
.pcb-price-badge {
	position: absolute;
	top: -12px;
	left: 28px;
	padding: 2px 12px;
	border-radius: 999px;
	background: var(--pcb-primary);
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
}
.pcb-price-name { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--pcb-heading); }
.pcb-price-desc { margin: 0; opacity: .8; }
.pcb-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.pcb-price-row del { opacity: .5; }
.pcb-price-amount { font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--pcb-heading); }
.pcb-price-list {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pcb-price-list li { position: relative; padding-left: 1.6em; }
.pcb-price-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--pcb-primary);
}
.pcb-price .pcb-btn { text-align: center; }

/* ---------- FAQ ---------- */
.pcb-accordion { display: flex; flex-direction: column; border-top: 1px solid #e3e8ef; text-align: left; }
.pcb-acc-item { border-bottom: 1px solid #e3e8ef; }
.pcb-acc-item summary {
	position: relative;
	padding: 18px 36px 18px 0;
	list-style: none;
	cursor: pointer;
	font-weight: 600;
	color: var(--pcb-h, var(--pcb-heading));
}
.pcb-acc-item summary::-webkit-details-marker { display: none; }
.pcb-acc-item summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--pcb-primary);
}
.pcb-acc-item[open] summary::after { content: "−"; }
.pcb-acc-body { padding: 0 0 18px; opacity: .9; }

/* ================= แถบเมนู (Header) ================= */
.pcb-navbar {
	position: relative;
	background: #fff;
	border-bottom: 1px solid #e8ecf2;
	color: var(--pcb-text);
	transition: background-color .25s, box-shadow .25s, color .25s;
}
.pcb-navbar[data-overlap="1"] { background: transparent; border-bottom-color: transparent; }
.pcb-navbar.pcb-stuck { box-shadow: 0 2px 18px rgba(15, 23, 42, .14); }
.pcb-nav-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "brand menu act";
	align-items: center;
	column-gap: 28px;
	row-gap: 10px;
	padding-block: 16px;
}
.pcb-nav-panel { display: contents; }
.pcb-brand { grid-area: brand; }
.pcb-nav-panel .pcb-menu { grid-area: menu; justify-self: end; }
.pcb-nav-actions { grid-area: act; display: flex; align-items: center; gap: 10px; }
.pcb-nav-actions:empty { display: none; }
.pcb-nav-l-left3 .pcb-menu { justify-self: center; }
.pcb-nav-l-split { grid-template-columns: 1fr auto 1fr; grid-template-areas: "menu brand act"; }
.pcb-nav-l-split .pcb-menu { justify-self: start; }
.pcb-nav-l-split .pcb-nav-actions { justify-self: end; }
.pcb-nav-l-stack { grid-template-columns: 1fr; grid-template-areas: "brand" "menu" "act"; justify-items: center; }
.pcb-nav-l-stack .pcb-menu { justify-self: center; }
.pcb-nav-l-leftstack { grid-template-columns: auto 1fr; grid-template-areas: "brand act" "menu menu"; }
.pcb-nav-l-leftstack .pcb-menu { justify-self: start; }
.pcb-nav-l-leftstack .pcb-nav-actions { justify-self: end; }

.pcb-region .pcb-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
.pcb-brand img { display: block; width: auto; max-width: 100%; height: var(--pcb-logo-h, 40px); object-fit: contain; }
.pcb-logo-wrap { display: inline-flex; align-items: center; justify-content: center; }
.pcb-logo-circle {
	box-sizing: border-box;
	width: calc(var(--pcb-logo-h, 40px) + 36px);
	height: calc(var(--pcb-logo-h, 40px) + 36px);
	padding: 10px;
	border-radius: 50%;
	background: var(--pcb-logo-bg, #fff);
	color: var(--pcb-logo-fg, var(--pcb-primary));
	text-align: center;
	font-size: .95rem;
	line-height: 1.1;
	overflow: hidden;
}
.pcb-logo-circle img { height: var(--pcb-logo-h, 40px); max-height: 100%; }

.pcb-burger {
	position: relative;
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	border: 1px solid currentColor;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: .9;
}
.pcb-burger span,
.pcb-burger span::before,
.pcb-burger span::after { content: ""; position: absolute; height: 2px; border-radius: 2px; background: currentColor; }
.pcb-burger span { top: 20px; left: 11px; right: 11px; }
.pcb-burger span::before { top: -7px; left: 0; right: 0; }
.pcb-burger span::after { top: 7px; left: 0; right: 0; }

/* เมนู (shortcode pcb_menu / WP nav menu) */
.pcb-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pcb-menu li { position: relative; margin: 0; }
.pcb-region .pcb-menu a {
	display: block;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
	color: inherit;
	font-weight: 500;
	text-decoration: none;
	transition: color .15s, border-color .15s, background-color .15s;
}
.pcb-menu-v { flex-direction: column; align-items: flex-start; }
.pcb-mh-underline li:hover > a,
.pcb-mh-underline .current-menu-item > a,
.pcb-mh-underline .current_page_item > a,
.pcb-mh-underline .current-menu-ancestor > a,
.pcb-mh-underline li.is-active > a { border-bottom-color: currentColor; }
.pcb-mh-pill a { padding: 6px 14px; border-radius: 999px; }
.pcb-mh-pill li:hover > a,
.pcb-mh-pill .current-menu-item > a,
.pcb-mh-pill .current_page_item > a,
.pcb-mh-pill li.is-active > a { background: color-mix(in srgb, var(--pcb-primary) 16%, transparent); border-bottom-color: transparent; }
.pcb-menu .menu-item-has-children > a::after,
.pcb-menu .page_item_has_children > a::after { content: "▾"; margin-left: 6px; font-size: .7em; opacity: .75; }
.pcb-menu .sub-menu,
.pcb-menu .children {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	display: none;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	border: 1px solid #e3e8ef;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}
.pcb-menu li:hover > .sub-menu,
.pcb-menu li:focus-within > .sub-menu,
.pcb-menu li:hover > .children,
.pcb-menu li:focus-within > .children { display: block; }
.pcb-region .pcb-menu .sub-menu a,
.pcb-region .pcb-menu .children a { padding: 8px 12px; border-bottom: 0; border-radius: 6px; color: #1f2937; }
.pcb-region .pcb-menu .sub-menu a:hover,
.pcb-region .pcb-menu .children a:hover { background: #f1f5f9; color: var(--pcb-primary); }
.pcb-menu-v .sub-menu,
.pcb-menu-v .children { position: static; display: block; min-width: 0; padding: 0 0 0 14px; border: 0; background: transparent; box-shadow: none; }

@container pcb (max-width: 880px) {
	.pcb-nav-inner { display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; justify-content: space-between; column-gap: 16px; }
	.pcb-burger { display: block; }
	.pcb-nav-panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 40;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 18px 20px 22px;
		border-bottom: 1px solid #e8ecf2;
		background: var(--pcb-pbg, #fff);
		color: var(--pcb-pcolor, #1f2937);
		box-shadow: 0 14px 24px rgba(15, 23, 42, .1);
	}
	.pcb-navbar.is-open .pcb-nav-panel { display: flex; }
	.pcb-region .pcb-navbar .pcb-nav-panel .pcb-menu { flex-direction: column; align-items: stretch; gap: 2px; justify-self: stretch; }
	.pcb-region .pcb-navbar .pcb-nav-panel .pcb-menu a { color: var(--pcb-pcolor, #1f2937); padding: 10px 4px; }
	.pcb-nav-panel .pcb-menu .sub-menu,
	.pcb-nav-panel .pcb-menu .children { position: static; display: block; min-width: 0; padding: 0 0 0 14px; border: 0; background: transparent; box-shadow: none; }
	.pcb-nav-panel .pcb-menu .menu-item-has-children > a::after { display: none; }
	.pcb-nav-actions { flex-wrap: wrap; }
}

/* ================= บล็อก / โพสต์ ================= */
.pcb-posts { display: flex; flex-direction: column; gap: 36px; text-align: left; }
.pcb-pgrid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcb-pcols-1 { grid-template-columns: minmax(0, 1fr); }
.pcb-pcols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcb-pcols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container pcb (max-width: 1024px) {
	.pcb-pcols-3, .pcb-pcols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container pcb (max-width: 640px) {
	.pcb-pgrid { grid-template-columns: minmax(0, 1fr); }
	.pcb-plist .pcb-post { flex-direction: column; }
	.pcb-plist .pcb-post-img { width: 100%; }
}
.pcb-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e3e8ef;
	border-radius: var(--pcb-radius);
	background: #fff;
	color: var(--pcb-text);
}
.pcb-plist .pcb-post { flex-direction: row; }
.pcb-plist .pcb-post-img { width: 34%; flex: none; }
.pcb-post-img, .pcb-post-fig { display: block; position: relative; margin: 0; overflow: hidden; background: #eef2f7; }
.pcb-post-img { aspect-ratio: 16 / 9; }
.pcb-pr-169 { aspect-ratio: 16 / 9; }
.pcb-pr-43 { aspect-ratio: 4 / 3; }
.pcb-pr-32 { aspect-ratio: 3 / 2; }
.pcb-pr-11 { aspect-ratio: 1 / 1; }
.pcb-pr-219 { aspect-ratio: 21 / 9; }
.pcb-post-img img, .pcb-post-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcb-post-fig { background: transparent; border-radius: var(--pcb-radius); }
.pcb-post-noimg { position: absolute; inset: 0; background: linear-gradient(135deg, #e8eef7, #d6e0ee); }
.pcb-post-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px; }
.pcb-region .pcb-post-cat a { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.pcb-post-title { margin: 0; font-family: var(--pcb-font-head); font-size: 1.15rem; line-height: 1.35; }
.pcb-region .pcb-post-title a { color: var(--pcb-heading); text-decoration: none; }
.pcb-region .pcb-post-title a:hover { color: var(--pcb-primary); }
.pcb-post-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .86rem; opacity: .75; }
.pcb-post-ex { margin: 0; opacity: .88; }
.pcb-region .pcb-post-more { margin-top: auto; font-weight: 600; text-decoration: none; }
.pcb-posts-empty { margin: 0; padding: 24px; border: 1px dashed #cbd5e1; border-radius: var(--pcb-radius); text-align: center; opacity: .7; }
.pcb-pg-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; }
.pcb-pg-head .pcb-pg-title { margin: 0; }
.pcb-pg-title { margin: 0 0 14px; font-family: var(--pcb-font-head); font-size: 1.5rem; color: var(--pcb-heading); }
.pcb-region .pcb-pg-title a { color: inherit; text-decoration: none; }
.pcb-ptabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pcb-ptab {
	padding: 8px 18px;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #fff;
	color: var(--pcb-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.pcb-ptab.is-on { border-color: var(--pcb-primary); background: var(--pcb-primary); color: #fff; }
/* รูปทรงปุ่มแท็บกลุ่ม (ค่าปกติ = แคปซูล) */
.pcb-tsh-pill .pcb-ptabs { gap: 10px; }
.pcb-tsh-pill .pcb-ptab {
	min-width: 112px; padding: 10px 28px; border: 0; border-radius: 999px; line-height: 1.4;
	background: #eef2f7; background: color-mix(in srgb, var(--pcb-primary) 9%, #fff);
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pcb-tsh-pill .pcb-ptab:where(:hover:not(.is-on)) { background: #e2e8f0; background: color-mix(in srgb, var(--pcb-primary) 18%, #fff); color: var(--pcb-primary); transform: translateY(-1px); }
.pcb-tsh-pill .pcb-ptab.is-on {
	background: var(--pcb-primary) linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); color: #fff;
	box-shadow: 0 6px 16px rgba(15, 23, 42, .18); box-shadow: 0 6px 16px color-mix(in srgb, var(--pcb-primary) 38%, transparent);
}
@media (prefers-reduced-motion: reduce) { .pcb-tsh-pill .pcb-ptab { transition: none; transform: none; } }
.pcb-tsh-round .pcb-ptab { border-radius: 8px; }
.pcb-tsh-circle .pcb-ptab { min-width: 56px; aspect-ratio: 1 / 1; padding: 8px; border-radius: 50%; line-height: 1.2; }
.pcb-tsh-square .pcb-ptab { border-radius: 0; }
.pcb-tsh-line .pcb-ptab { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; }
.pcb-tsh-line .pcb-ptab.is-on { border-bottom-color: var(--pcb-primary); background: transparent; color: var(--pcb-primary); }
.pcb-ppane { display: none; }
.pcb-ppane.is-on { display: block; }
.pcb-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pcb-pager .page-numbers { display: block; min-width: 38px; padding: 7px 12px; border: 1px solid #cbd5e1; border-radius: 8px; text-align: center; text-decoration: none; }
.pcb-pager .current { background: var(--pcb-primary); border-color: var(--pcb-primary); color: #fff; }

/* ฟิลด์ของโพสต์ (Single Post) */
.pcb-post-h { margin: 0; }
.pcb-post-content { line-height: 1.85; overflow-wrap: anywhere; }
.pcb-post-content > :first-child { margin-top: 0; }
.pcb-post-content img { height: auto; border-radius: 8px; }
.pcb-post-content h2, .pcb-post-content h3 { margin: 1.6em 0 .6em; font-family: var(--pcb-font-head); color: var(--pcb-heading); line-height: 1.3; }
.pcb-post-content p { margin: 0 0 1.1em; }
.pcb-post-content blockquote { margin: 1.2em 0; padding: .4em 1.1em; border-left: 4px solid var(--pcb-primary); opacity: .9; }
.pcb-post-nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid #e3e8ef; }
.pcb-region .pcb-post-nav a { display: flex; flex-direction: column; gap: 4px; max-width: 48%; color: var(--pcb-heading); font-weight: 600; text-decoration: none; }
.pcb-post-nav small { color: var(--pcb-primary); font-weight: 500; }
.pcb-pn-next { margin-left: auto; text-align: right; }

/* ================= วิดีโอ ================= */
.pcb-vid { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--pcb-radius); background: #000; }
.pcb-vr-43 { aspect-ratio: 4 / 3; }
.pcb-vr-11 { aspect-ratio: 1 / 1; }
.pcb-vr-219 { aspect-ratio: 21 / 9; }
.pcb-vr-916 { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.pcb-vid iframe, .pcb-vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.pcb-bgvideo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pcb-bgvideo video { width: 100%; height: 100%; object-fit: cover; }
.pcb-bgvideo iframe { position: absolute; top: 50%; left: 50%; width: 100vw; min-width: 177.78vh; height: 56.25vw; min-height: 100%; border: 0; transform: translate(-50%, -50%); }

/* ================= ไอคอน ================= */
.pcb-icon { display: flex; color: var(--pcb-ic, var(--pcb-primary)); transition: color .25s ease; }
.pcb-icon:hover, .pcb-iconbox:not(.pcb-hv-icon):hover > .pcb-icon { color: var(--pcb-ich, var(--pcb-ic, var(--pcb-primary))); }
.pcb-icon-in { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.pcb-icon-in { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pcb-icon-in svg { display: block; width: var(--pcb-isize, 48px); height: var(--pcb-isize, 48px); }
.pcb-ishape-circle, .pcb-ishape-circle-fill, .pcb-ishape-soft, .pcb-ishape-rounded, .pcb-ishape-rounded-fill {
	box-sizing: content-box;
	padding: calc(var(--pcb-isize, 48px) * .42);
}
.pcb-ishape-circle { border: 2px solid currentColor; border-radius: 50%; }
.pcb-ishape-circle-fill { border-radius: 50%; background: currentColor; }
.pcb-ishape-circle-fill svg, .pcb-ishape-rounded-fill svg { color: #fff; }
.pcb-ishape-soft { border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); }
.pcb-ishape-rounded { border: 2px solid currentColor; border-radius: calc(var(--pcb-isize, 48px) * .3); }
.pcb-ishape-rounded-fill { border-radius: calc(var(--pcb-isize, 48px) * .3); background: currentColor; }
.pcb-icon-al-center { justify-content: center; }
.pcb-icon-al-right { justify-content: flex-end; }

.pcb-iconbox { display: flex; gap: 18px; align-items: flex-start; padding: 8px; text-align: left; }
.pcb-ib-top { flex-direction: column; }
.pcb-ib-center { flex-direction: column; align-items: center; text-align: center; }
.pcb-ib-right { flex-direction: row-reverse; text-align: right; }
.pcb-ib-body { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.pcb-ib-body .pcb-heading { color: var(--pcb-ibh, var(--pcb-h, var(--pcb-heading))); }
.pcb-ib-text > :first-child { margin-top: 0; }
.pcb-ib-text p { margin: 0; }

/* ================= สไลด์โชว์ ================= */
.pcb-slider { position: relative; height: 520px; overflow: hidden; background: #0f172a; color: #fff; --pcb-h: #fff; --pcb-eb: #fff; }
@container pcb (max-width: 1024px) { .pcb-slider { height: var(--pcb-slh-t, 440px); } }
@container pcb (max-width: 640px) { .pcb-slider { height: var(--pcb-slh-m, 380px); } }
.pcb-sl-track { display: flex; height: 100%; transition: transform .6s ease; }
.pcb-slide { position: relative; display: flex; flex: 0 0 100%; align-items: center; justify-content: center; min-width: 0; height: 100%; overflow: hidden; }
.pcb-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pcb-slide-ov { position: absolute; inset: 0; background: var(--pcb-slov, rgba(0, 0, 0, .35)); }
.pcb-slide-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 820px; padding: 24px 64px; text-align: center; }
.pcb-sa-left .pcb-slide-in { align-items: flex-start; margin-right: auto; margin-left: max(0px, calc((100% - var(--pcb-container) * 1px) / 2)); text-align: left; }
.pcb-sa-right .pcb-slide-in { align-items: flex-end; margin-left: auto; margin-right: max(0px, calc((100% - var(--pcb-container) * 1px) / 2)); text-align: right; }
.pcb-sv-top .pcb-slide { align-items: flex-start; padding-top: 40px; }
.pcb-sv-bottom .pcb-slide { align-items: flex-end; padding-bottom: 56px; }
.pcb-slide-in p { margin: 0; }
.pcb-sl-fade .pcb-sl-track { position: relative; display: block; }
.pcb-sl-fade .pcb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.pcb-sl-fade .pcb-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.pcb-sl-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 46px;
	height: 46px;
	transform: translateY(-50%);
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .38);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.pcb-sl-arrow:hover { background: rgba(0, 0, 0, .6); }
.pcb-sl-prev { left: 14px; }
.pcb-sl-next { right: 14px; }
.pcb-sl-dots { position: absolute; right: 0; bottom: 14px; left: 0; z-index: 3; display: flex; justify-content: center; gap: 9px; }
.pcb-sl-dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.pcb-sl-dot.is-on { background: #fff; transform: scale(1.25); }

/* จัดกึ่งกลางหัวข้อ/ข้อความแบบไล่สี (width: fit-content) */
.pcb-center .pcb-inner > .pcb-heading,
.pcb-center .pcb-column > .pcb-heading { margin-inline: auto; }

/* ================= v0.3: Section extras ================= */
.pcb-section > .pcb-inner { position: relative; z-index: 2; }
.pcb-ovlap { z-index: 3; }
.pcb-ovbg { position: absolute; left: 0; right: 0; bottom: 0; top: var(--pcb-ovh, 0); z-index: 0; pointer-events: none; }
.pcb-ovl { position: absolute; left: 0; right: 0; bottom: 0; top: var(--pcb-ovh, 0); z-index: 0; pointer-events: none; }
.pcb-dv { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; line-height: 0; overflow: hidden; }
.pcb-dv-t { top: var(--pcb-ovh, 0); }
.pcb-dv-b { bottom: 0; }
.pcb-dv svg { display: block; width: 100%; height: 100%; }

/* appearance effect */
.pcb-js .pcb-fx:not(.pcb-in) { opacity: 0; }
.pcb-js .pcb-fx { transition: opacity var(--fxd, .8s) ease var(--fxl, 0s), transform var(--fxd, .8s) ease var(--fxl, 0s); }
.pcb-js .pcb-fx-up:not(.pcb-in) { transform: translateY(40px); }
.pcb-js .pcb-fx-down:not(.pcb-in) { transform: translateY(-40px); }
.pcb-js .pcb-fx-left:not(.pcb-in) { transform: translateX(-60px); }
.pcb-js .pcb-fx-right:not(.pcb-in) { transform: translateX(60px); }
.pcb-js .pcb-fx-zoom:not(.pcb-in) { transform: scale(.85); }
.pcb-js .pcb-fx-flip:not(.pcb-in) { transform: perspective(800px) rotateX(35deg); }
.pcb-js .pcb-fx-upbig:not(.pcb-in) { transform: translateY(120px); }
.pcb-js .pcb-fx-rise:not(.pcb-in) { transform: translateY(50px) scale(.94); }
.pcb-js .pcb-fx-skew:not(.pcb-in) { transform: translateX(-70px) skewX(12deg); }
.pcb-js .pcb-fx-zoomout:not(.pcb-in) { transform: scale(1.18); }
.pcb-js .pcb-fx-flipy:not(.pcb-in) { transform: perspective(800px) rotateY(40deg); }
.pcb-js .pcb-fx-rotate:not(.pcb-in) { transform: rotate(-8deg) scale(.9); }
.pcb-js .pcb-fx-blur:not(.pcb-in) { filter: blur(14px); transform: scale(1.03); }
.pcb-js .pcb-fx-blur { transition: opacity var(--fxd, .8s) ease var(--fxl, 0s), transform var(--fxd, .8s) ease var(--fxl, 0s), filter var(--fxd, .8s) ease var(--fxl, 0s); }
.pcb-js .pcb-fx-wipel:not(.pcb-in) { opacity: 1; clip-path: inset(0 100% 0 0); }
.pcb-js .pcb-fx-wipeu:not(.pcb-in) { opacity: 1; clip-path: inset(100% 0 0 0); }
.pcb-js .pcb-fx-wipel, .pcb-js .pcb-fx-wipeu { transition: clip-path var(--fxd, .8s) cubic-bezier(.65, 0, .35, 1) var(--fxl, 0s); clip-path: inset(0 0 0 0); }
.pcb-js .pcb-fx-bounce:not(.pcb-in) { transform: scale(.7); }
.pcb-js .pcb-fx-bounce { transition: opacity calc(var(--fxd, .8s) * .5) ease var(--fxl, 0s), transform var(--fxd, .8s) cubic-bezier(.34, 1.56, .64, 1) var(--fxl, 0s); }
.pcb-js .pcb-fx-elastic:not(.pcb-in) { transform: translateY(60px) scaleY(1.2); }
.pcb-js .pcb-fx-elastic { transition: opacity calc(var(--fxd, .8s) * .4) ease var(--fxl, 0s), transform var(--fxd, .8s) cubic-bezier(.68, -.6, .32, 1.6) var(--fxl, 0s); }
@media (prefers-reduced-motion: reduce) { .pcb-js .pcb-fx:not(.pcb-in) { opacity: 1; transform: none; filter: none; clip-path: none; } }

/* FAQ v2 */
.pcb-acc2 .pcb-acc-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 0; }
.pcb-acc2 .pcb-acc-item summary::after { content: none; }
.pcb-ti-l .pcb-acc-item summary { flex-direction: row-reverse; justify-content: flex-end; }
.pcb-ti-l .pcb-acc-q { flex: 1; }
.pcb-ti { display: inline-flex; flex: none; color: var(--pcb-primary); }
.pcb-ti svg { width: 22px; height: 22px; }
.pcb-ti .o { display: none; }
.pcb-acc-item[open] .pcb-ti .c { display: none; }
.pcb-acc-item[open] .pcb-ti .o { display: block; }
.pcb-media { display: flex; gap: 20px; align-items: flex-start; }
.pcb-media-right { flex-direction: row-reverse; }
.pcb-media-top { flex-direction: column; }
.pcb-media-imgs { display: flex; flex-direction: column; gap: 10px; width: var(--pcb-iw, 320px); max-width: 100%; flex: none; }
.pcb-media-top .pcb-media-imgs { max-width: 100%; }
.pcb-media-i { width: 100%; max-width: 100%; height: var(--pcb-ih, auto); object-fit: var(--pcb-if, cover); border-radius: var(--pcb-radius); display: block; }
.pcb-media-t { flex: 1; min-width: 0; }
@container pcb (max-width:640px) { .pcb-media { flex-direction: column; } .pcb-media-imgs { width: min(100%, var(--pcb-iw, 320px)); } }
/* เอฟเฟกต์เนื้อหาคำตอบ FAQ */
.pcb-afx .pcb-acc-item[open] > .pcb-acc-body { animation-duration: var(--pcb-afd, 600ms); animation-fill-mode: both; animation-timing-function: ease; }
.pcb-afx-fadeIn .pcb-acc-item[open] > .pcb-acc-body { animation-name: pcb-a-fade; }
.pcb-afx-fadeInUp .pcb-acc-item[open] > .pcb-acc-body { animation-name: pcb-a-up; }
.pcb-afx-fadeInDown .pcb-acc-item[open] > .pcb-acc-body { animation-name: pcb-a-down; }
.pcb-afx-fadeInLeft .pcb-acc-item[open] > .pcb-acc-body { animation-name: pcb-a-left; }
.pcb-afx-fadeInRight .pcb-acc-item[open] > .pcb-acc-body { animation-name: pcb-a-right; }
.pcb-afx-zoomIn .pcb-acc-item[open] > .pcb-acc-body { animation-name: pcb-a-zoom; }
.pcb-afx-slideDown .pcb-acc-item[open] > .pcb-acc-body { animation-name: pcb-a-slide; overflow: hidden; }
.pcb-afx-flipInX .pcb-acc-item[open] > .pcb-acc-body { animation-name: pcb-a-flipx; transform-origin: top; }
.pcb-afx-bounceIn .pcb-acc-item[open] > .pcb-acc-body { animation-name: pcb-a-bounce; }
.pcb-afx-blurIn .pcb-acc-item[open] > .pcb-acc-body { animation-name: pcb-a-blur; }
@keyframes pcb-a-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pcb-a-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pcb-a-down { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes pcb-a-left { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes pcb-a-right { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes pcb-a-zoom { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes pcb-a-slide { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 1200px; } }
@keyframes pcb-a-flipx { from { opacity: 0; transform: perspective(600px) rotateX(-80deg); } to { opacity: 1; transform: none; } }
@keyframes pcb-a-bounce { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.04); } 100% { transform: none; } }
@keyframes pcb-a-blur { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }
/* เอฟเฟกต์ตอนปิดคำตอบ: เอฟเฟกต์ใน 60% แรก แล้วม้วนความสูงเก็บ (เวลาตั้งได้ที่ --pcb-cfd) */
.pcb-acc2 .pcb-acc-item.pcb-closing[open] > .pcb-acc-body { box-sizing: border-box; overflow: hidden; animation: 0s none; animation-duration: var(--pcb-cfd, 400ms); animation-timing-function: ease; animation-fill-mode: both; }
.pcb-acc2 .pcb-acc-item.pcb-closing .pcb-ti .c { display: block; }
.pcb-acc2 .pcb-acc-item.pcb-closing .pcb-ti .o { display: none; }
.pcb-acc2[data-cfx="fadeOut"] .pcb-closing[open] > .pcb-acc-body { animation-name: pcb-c-fade; }
.pcb-acc2[data-cfx="slideUp"] .pcb-closing[open] > .pcb-acc-body { animation-name: pcb-c-slide; }
.pcb-acc2[data-cfx="fadeOutUp"] .pcb-closing[open] > .pcb-acc-body { animation-name: pcb-c-up; }
.pcb-acc2[data-cfx="fadeOutDown"] .pcb-closing[open] > .pcb-acc-body { animation-name: pcb-c-down; }
.pcb-acc2[data-cfx="zoomOut"] .pcb-closing[open] > .pcb-acc-body { animation-name: pcb-c-zoom; }
.pcb-acc2[data-cfx="blurOut"] .pcb-closing[open] > .pcb-acc-body { animation-name: pcb-c-blur; }
@keyframes pcb-c-fade { 0% { opacity: 1; height: var(--pcb-ch); } 60% { opacity: 0; height: var(--pcb-ch); } 100% { opacity: 0; height: 0; padding-bottom: 0; } }
@keyframes pcb-c-slide { 0% { opacity: 1; height: var(--pcb-ch); } 100% { opacity: 0; height: 0; padding-bottom: 0; } }
@keyframes pcb-c-up { 0% { opacity: 1; transform: none; height: var(--pcb-ch); } 60% { opacity: 0; transform: translateY(-24px); height: var(--pcb-ch); } 100% { opacity: 0; transform: translateY(-24px); height: 0; padding-bottom: 0; } }
@keyframes pcb-c-down { 0% { opacity: 1; transform: none; height: var(--pcb-ch); } 60% { opacity: 0; transform: translateY(24px); height: var(--pcb-ch); } 100% { opacity: 0; transform: translateY(24px); height: 0; padding-bottom: 0; } }
@keyframes pcb-c-zoom { 0% { opacity: 1; transform: none; height: var(--pcb-ch); } 60% { opacity: 0; transform: scale(.85); height: var(--pcb-ch); } 100% { opacity: 0; transform: scale(.85); height: 0; padding-bottom: 0; } }
@keyframes pcb-c-blur { 0% { opacity: 1; filter: none; height: var(--pcb-ch); } 60% { opacity: 0; filter: blur(10px); height: var(--pcb-ch); } 100% { opacity: 0; filter: blur(10px); height: 0; padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .pcb-afx .pcb-acc-item[open] > .pcb-acc-body, .pcb-acc2 .pcb-closing[open] > .pcb-acc-body { animation: none; } }

/* Tabs */
.pcb-tabs { --pcb-tab: var(--pcb-primary); }
.pcb-tabs-nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #e3e8ef; }
.pcb-tabs-acenter .pcb-tabs-nav { justify-content: center; }
.pcb-tabs-aright .pcb-tabs-nav { justify-content: flex-end; }
.pcb-tabs-nav button { appearance: none; background: none; border: 0; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; color: inherit; opacity: .75; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pcb-tabs-nav button.on { opacity: 1; color: var(--pcb-tab); border-bottom-color: var(--pcb-tab); }
.pcb-tabs-pills .pcb-tabs-nav { border: 0; gap: 10px; }
.pcb-tabs-pills .pcb-tabs-nav button {
	min-width: 112px; margin: 0; padding: 10px 28px; border: 0; border-radius: 999px; line-height: 1.4; opacity: 1;
	background: #eef2f7; background: color-mix(in srgb, var(--pcb-tab) 9%, #fff);
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pcb-tabs-pills .pcb-tabs-nav button:where(:hover:not(.on)) { background: #e2e8f0; background: color-mix(in srgb, var(--pcb-tab) 18%, #fff); color: var(--pcb-tab); transform: translateY(-1px); }
.pcb-tabs-pills .pcb-tabs-nav button.on {
	background: var(--pcb-tab) linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); color: #fff;
	box-shadow: 0 6px 16px rgba(15, 23, 42, .18); box-shadow: 0 6px 16px color-mix(in srgb, var(--pcb-tab) 38%, transparent);
}
@media (prefers-reduced-motion: reduce) { .pcb-tabs-pills .pcb-tabs-nav button { transition: none; transform: none; } }
/* มน / กลม / เหลี่ยม — ทรงเดียวกับแท็บของบล็อก */
:is(.pcb-tabs-round, .pcb-tabs-circle, .pcb-tabs-square) .pcb-tabs-nav { align-items: center; gap: 8px; border: 0; }
:is(.pcb-tabs-round, .pcb-tabs-circle, .pcb-tabs-square) .pcb-tabs-nav button { margin: 0; padding: 8px 18px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; opacity: 1; }
:is(.pcb-tabs-round, .pcb-tabs-circle, .pcb-tabs-square) .pcb-tabs-nav button.on { border-color: var(--pcb-tab); background: var(--pcb-tab); color: #fff; }
.pcb-tabs-circle .pcb-tabs-nav button { min-width: 72px; aspect-ratio: 1 / 1; padding: 8px; border-radius: 50%; line-height: 1.2; }
.pcb-tabs-square .pcb-tabs-nav button { border-radius: 0; }
.pcb-tabs-box .pcb-tabs-nav button { border: 0; margin: 0; background: #eef1f6; border-radius: 6px 6px 0 0; }
.pcb-tabs-box .pcb-tabs-nav button.on { background: var(--pcb-tab); color: #fff; }
.pcb-tabs-panel { display: none; padding: 24px 0; }
.pcb-tabs-panel.on { display: block; }
.pcb-tabs-panel > .pcb-tabpane > * + * { margin-top: 16px; }
.pcb-tabs-panel > * + .pcb-tabpane { margin-top: 16px; }

/* Map / Search */
.pcb-mapwrap { width: 100%; overflow: hidden; border-radius: var(--pcb-radius); background: #e8ecf2; }
.pcb-mapwrap iframe { display: block; width: 100%; height: 100%; border: 0; }
.pcb-searchform { display: flex; width: 100%; max-width: 560px; }
.pcb-searchform input[type=search] { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid #cfd6e1; border-right: 0; border-radius: var(--pcb-radius) 0 0 var(--pcb-radius); font: inherit; background: #fff; color: #1f2937; }
.pcb-searchform button { appearance: none; border: 0; padding: 0 20px; cursor: pointer; background: var(--pcb-primary); color: #fff; font: inherit; font-weight: 600; border-radius: 0 var(--pcb-radius) var(--pcb-radius) 0; display: inline-flex; align-items: center; justify-content: center; }
/* หน้า 404: จัดช่องค้นหาให้อยู่กลาง */
.pcb-region[data-pcb-key="tpl_404"] .pcb-searchform { margin-left: auto; margin-right: auto; }

/* Social */
.pcb-social { display: flex; flex-wrap: wrap; align-items: center; }
.pcb-soc { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .15s, opacity .15s; --soc: var(--pcb-primary); }
.pcb-soc:hover { transform: translateY(-2px); opacity: .9; }
.pcb-soc-facebook { --soc: #1877f2; } .pcb-soc-youtube { --soc: #ff0000; } .pcb-soc-line { --soc: #06c755; }
.pcb-soc-x { --soc: #111111; } .pcb-soc-instagram { --soc: #e4405f; } .pcb-soc-tiktok { --soc: #111111; }
.pcb-soc-linkedin { --soc: #0a66c2; } .pcb-soc-email { --soc: #6b7280; } .pcb-soc-phone { --soc: #16a34a; }
.pcb-social.pcb-soc-circle .pcb-soc { border-radius: 50%; }
.pcb-social.pcb-soc-round .pcb-soc { border-radius: 10px; }
.pcb-social.pcb-soc-solid .pcb-soc, .pcb-social.pcb-soc-mono .pcb-soc { background: var(--soc); color: #fff; }
.pcb-social.pcb-soc-outline .pcb-soc { border: 2px solid var(--soc); color: var(--soc); }
.pcb-social.pcb-soc-plain .pcb-soc { color: var(--soc); }

/* Gallery / Collage / Lightbox */
.pcb-gallery { display: grid; }
.pcb-gal-it { margin: 0; overflow: hidden; border-radius: var(--pcb-radius); }
.pcb-gal-it img { display: block; width: 100%; height: auto; transition: transform .3s; }
.pcb-gal-it a { display: block; }
.pcb-gal-zoom .pcb-gal-it:hover img { transform: scale(1.06); }
.pcb-gal-it figcaption { padding: 6px 2px; font-size: .875rem; opacity: .8; }
.pcb-collage { position: relative; width: 100%; }
.pcb-col-it { position: absolute; box-sizing: border-box; }
.pcb-col-it img { display: block; width: 100%; height: auto; }
.pcb-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; }
.pcb-lb img { max-width: 92vw; max-height: 88vh; border-radius: 4px; }
.pcb-lb button { position: absolute; appearance: none; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 32px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; line-height: 1; }
.pcb-lb-x { top: 16px; right: 16px; } .pcb-lb-p { left: 16px; top: 50%; } .pcb-lb-n { right: 16px; top: 50%; }
.pcb-lb-pl { bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 22px !important; padding-left: 3px; }
.pcb-lb-ct { position: absolute; top: 24px; left: 20px; color: #fff; font-size: .875rem; opacity: .8; font-variant-numeric: tabular-nums; }

/* ================= ลิงก์ (Link) ================= */
.pcb-link { display: flex; }
.pcb-link.pcb-link-al-center { justify-content: center; }
.pcb-link.pcb-link-al-right { justify-content: flex-end; }
.pcb-lnk { display: inline-flex; align-items: center; gap: .4em; color: var(--pcb-primary); text-decoration: none; transition: color .2s ease; }
.pcb-lnk svg { width: 1.1em; height: 1.1em; flex: none; }
.pcb-lnk-u-always { text-decoration: underline; }
.pcb-lnk-u-hover:hover { text-decoration: underline; }

/* ปุ่ม "ดูโพสต์ทั้งหมด" ของแต่ละกลุ่ม */
.pcb-vall { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1px solid var(--pcb-primary); border-radius: 999px; color: var(--pcb-primary); font-size: .9rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.pcb-vall::after { content: '→'; }
.pcb-vall:hover { background: var(--pcb-primary); color: #fff; }
.pcb-vall[hidden] { display: none; }
.pcb-vall-t { margin-left: auto; align-self: center; }
.pcb-ptabs { align-items: center; }

/* ตัวเลื่อนหน้า (ปรับสไตล์ได้) */
.pcb-pager { margin-top: 28px; }
.pcb-pager.pcb-pga-left ul { justify-content: flex-start; }
.pcb-pager.pcb-pga-right ul { justify-content: flex-end; }
.pcb-pager .page-numbers { color: var(--pcb-primary); font-size: 1rem; line-height: 1.2; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.pcb-pager a.page-numbers:hover { background: var(--pcb-primary); border-color: var(--pcb-primary); color: #fff; }
.pcb-pager .page-numbers.current { color: #fff; }
.pcb-pager .dots { border-color: transparent; color: #64748b; }
.pcb-pgs-circle .page-numbers { border-radius: 999px; min-width: 40px; padding-left: 0; padding-right: 0; }
.pcb-pgs-circle .page-numbers.prev, .pcb-pgs-circle .page-numbers.next { padding: 7px 14px; }
.pcb-pgs-square .page-numbers { border-radius: 0; }
.pcb-pgs-line .page-numbers { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; }
.pcb-pgs-line .page-numbers.current { background: transparent; color: var(--pcb-primary); border-bottom-color: var(--pcb-primary); }
.pcb-pgs-line a.page-numbers:hover { background: transparent; color: var(--pcb-primary); border-bottom-color: var(--pcb-primary); }

/* ---------- ฟอร์มติดต่อ (Pagecraft) ---------- */
.pcb-cf { width: 100%; }
.pcb-cf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 20px; }
.pcb-cf-w100 { grid-column: span 6; }
.pcb-cf-w50 { grid-column: span 3; }
.pcb-cf-w33 { grid-column: span 2; }
.pcb-cf-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcb-cf-f label { font-size: .875em; font-weight: 600; }
.pcb-cf-req { color: #d92d20; }
.pcb-cf input, .pcb-cf select, .pcb-cf textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #cfd6e1; border-radius: var(--pcb-radius); font: inherit; background: #fff; color: #1f2937; }
.pcb-cf input:focus, .pcb-cf select:focus, .pcb-cf textarea:focus { outline: 2px solid var(--pcb-primary); outline-offset: 1px; border-color: var(--pcb-primary); }
.pcb-cf textarea { resize: vertical; min-height: 120px; }
.pcb-cf-f.is-bad input, .pcb-cf-f.is-bad select, .pcb-cf-f.is-bad textarea { border-color: #d92d20; }
.pcb-dt-wrap { position: relative; display: flex; gap: 8px; align-items: stretch; }
.pcb-dt-wrap > input[type="text"] { flex: 1 1 auto; min-width: 0; }
.pcb-dt-btn { flex: 0 0 auto; padding: 0 12px; border: 1px solid #cfd6e1; border-radius: var(--pcb-radius); background: #fff; cursor: pointer; font-size: 1.1em; line-height: 1; }
.pcb-dt-btn:focus-visible { outline: 2px solid var(--pcb-primary); outline-offset: 1px; }
.pcb-cf-hint { color: #667085; font-size: .8125em; }
.pcb-cf input[type="file"] { padding: 9px 12px; cursor: pointer; }
.pcb-cf-err { color: #d92d20; font-size: .8125em; min-height: 0; }
.pcb-cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pcb-cf-captcha { margin-top: 16px; }
.pcb-cf-msg { margin-top: 12px; font-size: .9375em; }
.pcb-cf-msg:empty { display: none; }
.pcb-cf-msg.is-ok { color: #067647; background: #ecfdf3; border: 1px solid #abefc6; padding: 10px 14px; border-radius: var(--pcb-radius); }
.pcb-cf-msg.is-bad { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; padding: 10px 14px; border-radius: var(--pcb-radius); }
.pcb-cf-btn { margin-top: 16px; cursor: pointer; border: 0; font: inherit; }
.pcb-cf-btn[disabled] { opacity: .6; cursor: progress; }
.pcb-editing .pcb-contactform form { pointer-events: none; }
@container pcb (max-width: 640px) { .pcb-cf-w50, .pcb-cf-w33 { grid-column: span 6; } }

/* ================= v0.7.0 ================= */
.pcb-acc-body a, .pcb-tabs-panel > a, .pcb-tabs-panel > .pcb-media a { color: var(--pcb-primary); text-decoration: underline; overflow-wrap: anywhere; }
.pcb-ib-body .pcb-list { margin: 0; }
.pcb-nav-actions .pcb-btn svg + * { margin-left: 0; }
