/*
 * site.css — สไตล์ส่วนที่เขียนขึ้นใหม่ของเว็บไซต์
 * (สีหลัก --c1 / --c2 กำหนดใน _css.php)
 */

/* ===================================================================
 * Bootstrap 5 + ธีม Porto (เดิมสร้างบน Bootstrap 4) ให้หน้าตาเหมือนเดิม
 * =================================================================== */
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.container, .container-fluid, .row { --bs-gutter-x: 30px; }
@media (min-width: 1400px) {
	.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1140px; }
}
label { margin-bottom: .5rem; }
.badge-sm { font-size: 85%; }
#header .header-nav-main nav > ul > li > a.dropdown-item { width: auto; white-space: nowrap; }
#header .header-btn-collapse-nav { cursor: pointer; }
/* AOS fade-left/right เลื่อนองค์ประกอบออกนอกจอก่อนแสดง ทำให้มือถือเลื่อนซ้ายขวาได้ */
.body { overflow-x: clip; }

/* ===================================================================
 * Hero slider (แทน LayerSlider)
 * =================================================================== */
.hero-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #111;
	isolation: isolate;
}
.hs-viewport {
	position: relative;
	aspect-ratio: 16 / 9;
	touch-action: pan-y;
	user-select: none;
}
.hs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility 0s linear .9s;
}
.hs-slide.is-active,
.hs-slide.is-leaving { visibility: visible; transition: opacity .9s ease, visibility 0s; }
.hs-slide.is-active { opacity: 1; z-index: 2; }
.hs-slide.is-leaving { z-index: 1; }
.hs-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1);
	transform-origin: 50% 50%;
	-webkit-user-drag: none;
}
/* Ken Burns: ซูมช้า ๆ ขณะแสดงภาพ */
.hs-slide.is-active img { transform: scale(1.07); transition: transform calc(var(--hs-interval) + 1.5s) linear; }
.hs-slide.is-leaving img { transform: scale(1.07); }

.hs-caption {
	position: absolute;
	left: 50%;
	bottom: clamp(44px, 7%, 80px);
	transform: translate(-50%, 16px);
	width: min(94%, 1100px);
	padding: clamp(10px, 1.6vw, 26px) clamp(14px, 2vw, 28px);
	border-radius: 14px;
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	text-align: center;
	font-size: clamp(14px, 2.1vw, 30px);
	line-height: 1.45;
	font-weight: 500;
	opacity: 0;
	transition: opacity .7s ease .5s, transform .7s ease .5s;
}
.hs-slide.is-active .hs-caption { opacity: 1; transform: translate(-50%, 0); }

.hs-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: #222;
	font-size: 18px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.hs-prev { left: 16px; transform: translateX(-10px); }
.hs-next { right: 16px; transform: translateX(10px); }
.hero-slider:hover .hs-arrow,
.hero-slider:focus-within .hs-arrow { opacity: 1; transform: none; }
.hs-arrow:hover { background: #fff; color: var(--c1); }

.hs-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	pointer-events: none;
}
.hs-dots { display: flex; gap: 8px; pointer-events: auto; }
.hs-dot {
	position: relative;
	width: 34px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, .45);
	overflow: hidden;
	cursor: pointer;
	transition: width .3s ease, background .3s ease;
}
.hs-dot[aria-current] { width: 56px; background: rgba(255, 255, 255, .55); }
.hs-dot-fill {
	position: absolute;
	inset: 0;
	transform: scaleX(0);
	transform-origin: left center;
	background: linear-gradient(90deg, var(--c1), var(--c2));
}
.hs-dot[aria-current] .hs-dot-fill { transform: scaleX(1); }
.hero-slider.is-playing .hs-dot[aria-current] .hs-dot-fill { animation: hs-progress var(--hs-interval) linear forwards; }
.hero-slider.is-hover .hs-dot-fill { animation-play-state: paused !important; }
@keyframes hs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hs-toggle {
	pointer-events: auto;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 11px;
	cursor: pointer;
}
.hs-toggle:hover { background: var(--c1); }

@media (max-width: 767px) {
	.hs-arrow { width: 36px; height: 36px; margin-top: -18px; font-size: 14px; opacity: 1; transform: none; }
	.hs-prev { left: 8px; }
	.hs-next { right: 8px; }
	.hs-caption { bottom: 30px; border-radius: 10px; }
	.hs-controls { bottom: 8px; }
	.hs-dot { width: 20px; height: 5px; }
	.hs-dot[aria-current] { width: 34px; }
	.hs-toggle { width: 24px; height: 24px; font-size: 9px; }
}

/* ===================================================================
 * Gallery แบบ justified + lightbox (แทน unitegallery)
 * =================================================================== */
.site-gallery {
	--sg-row-h: 140px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
/* ตัวเติมแถวสุดท้าย ไม่ให้ภาพแถวสุดท้ายยืดจนใหญ่เกิน */
.site-gallery::after { content: ""; flex-grow: 999999; }
.sg-item {
	position: relative;
	display: block;
	min-width: 0;
	max-height: calc(var(--sg-row-h) * 2);
	border-radius: 10px;
	overflow: hidden;
	background: #e9ecef;
	cursor: zoom-in;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.sg-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.sg-item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	transition: opacity .3s ease;
}
.sg-item::after {
	content: "\f00e";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background: #fff;
	color: var(--c1);
	font-size: 17px;
	line-height: 44px;
	text-align: center;
	opacity: 0;
	transform: scale(.6);
	transition: opacity .3s ease, transform .3s ease;
}
.sg-item:hover img, .sg-item:focus-visible img { transform: scale(1.08); }
.sg-item:hover::before, .sg-item:focus-visible::before { opacity: 1; }
.sg-item:hover::after, .sg-item:focus-visible::after { opacity: 1; transform: scale(1); }
@media (max-width: 575px) {
	.site-gallery { --sg-row-h: 100px !important; gap: 4px; }
	.sg-item { border-radius: 8px; }
}

html.sg-locked { overflow: hidden; padding-right: var(--sg-scrollbar, 0); }
.sg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 12, 14, .92);
	opacity: 0;
	transition: opacity .25s ease;
	touch-action: none;
}
.sg-lightbox[hidden] { display: none; }
.sg-lightbox.is-open { opacity: 1; }
.sg-lb-figure {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 64px 72px 72px;
}
.sg-lb-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	transform: scale(.97);
	opacity: 1;
	transition: opacity .25s ease, transform .3s ease;
	user-select: none;
	-webkit-user-drag: none;
}
.sg-lightbox.is-open .sg-lb-img { transform: scale(1); }
.sg-lightbox.is-loading .sg-lb-img { opacity: .25; }
.sg-lb-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22px;
	padding: 0 20px;
	color: rgba(255, 255, 255, .85);
	font-family: 'Noto Sans Thai', sans-serif;
	font-size: 14px;
	text-align: center;
}
.sg-lb-spinner {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 42px;
	height: 42px;
	margin: -21px 0 0 -21px;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	animation: sg-spin .8s linear infinite;
}
.sg-lightbox.is-loading .sg-lb-spinner { opacity: 1; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
.sg-lb-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	color: #fff;
	font-family: 'Noto Sans Thai', sans-serif;
	font-size: 15px;
}
.sg-lb-btn {
	z-index: 2;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.sg-lb-btn:hover { background: rgba(255, 255, 255, .25); transform: scale(1.06); }
.sg-lb-prev, .sg-lb-next { position: absolute; top: 50%; margin-top: -23px; }
.sg-lb-prev { left: 14px; }
.sg-lb-next { right: 14px; }
.sg-lightbox.is-single .sg-lb-prev, .sg-lightbox.is-single .sg-lb-next { display: none; }
@media (max-width: 767px) {
	.sg-lb-figure { padding: 60px 8px 64px; }
	.sg-lb-prev, .sg-lb-next { top: auto; bottom: 10px; margin-top: 0; }
	.sg-lb-caption { bottom: 70px; font-size: 13px; }
}

/* ===================================================================
 * Center carousel แบบ coverflow (_slider_center.php)
 * =================================================================== */
.center-carousel {
	--cc-w: clamp(230px, 30vw, 400px);
	position: relative;
	padding: 10px 0 6px;
}
.cc-track {
	display: flex;
	align-items: center;
	gap: clamp(8px, 1.5vw, 20px);
	padding: 24px calc(50% - var(--cc-w) / 2) 30px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	outline: none;
}
.cc-track::-webkit-scrollbar { display: none; }
.cc-slide {
	--cc-d: 1;
	position: relative;
	flex: 0 0 var(--cc-w);
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	overflow: hidden;
	scroll-snap-align: center;
	background: #e9ecef;
	transform: scale(calc(1 - min(var(--cc-d), 1.5) * .14));
	opacity: calc(1 - min(var(--cc-d), 1.5) * .35);
	filter: saturate(calc(1 - min(var(--cc-d), 1) * .35));
	box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
	transition: box-shadow .4s ease;
	cursor: pointer;
}
.cc-slide.is-active {
	box-shadow: 0 22px 50px rgba(0, 0, 0, .28), 0 0 0 4px #fff, 0 0 0 7px var(--c1);
	cursor: zoom-in;
}
.cc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; -webkit-user-drag: none; }
.cc-slide.is-active:hover img { transform: scale(1.06); }
.cc-zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--c1);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s ease, transform .3s ease;
}
.cc-slide.is-active .cc-zoom { opacity: 1; transform: none; }
.cc-arrow {
	position: absolute;
	top: calc(50% - 14px);
	z-index: 2;
	width: 50px;
	height: 50px;
	margin-top: -25px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--c1);
	font-size: 18px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}
.cc-arrow:hover { background: var(--c1); color: #fff; transform: scale(1.08); }
.cc-prev { left: max(12px, calc(50% - var(--cc-w) / 2 - 80px)); }
.cc-next { right: max(12px, calc(50% - var(--cc-w) / 2 - 80px)); }
.cc-dots { display: flex; justify-content: center; gap: 8px; }
.cc-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #cfd8d6;
	cursor: pointer;
	transition: width .3s ease, background .3s ease;
}
.cc-dot[aria-current] { width: 32px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
@media (max-width: 767px) {
	.center-carousel { --cc-w: 72vw; }
	.cc-arrow { width: 38px; height: 38px; margin-top: -19px; font-size: 14px; }
	.cc-prev { left: 6px; }
	.cc-next { right: 6px; }
}

/* ===================================================================
 * ปุ่มติดต่อ (widget-btn-contact.php)
 * =================================================================== */
.contact-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	margin-bottom: 1rem;
}
.cta-btn {
	--cta-from: #ff3b3b;
	--cta-to: #c40000;
	--cta-glow: rgba(220, 0, 0, .45);
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1 1 300px;
	max-width: 400px;
	padding: 14px 26px 14px 14px;
	border-radius: 999px;
	background: linear-gradient(120deg, var(--cta-from), var(--cta-to));
	background-size: 160% 160%;
	color: #fff !important;
	text-decoration: none !important;
	text-align: left;
	font-family: 'Noto Sans Thai', sans-serif;
	box-shadow: 0 10px 24px var(--cta-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
	overflow: hidden;
	isolation: isolate;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1.2), box-shadow .25s ease, background-position .5s ease;
}
.cta-line { --cta-from: #2fe07a; --cta-to: #06a94d; --cta-glow: rgba(6, 199, 85, .45); }
/* แสงวิ่งผ่านปุ่ม */
.cta-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	z-index: -1;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg);
	animation: cta-shine 3.2s ease-in-out infinite;
}
.cta-line::before { animation-delay: 1.6s; }
@keyframes cta-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.cta-btn:hover {
	transform: translateY(-4px) scale(1.02);
	background-position: 100% 0;
	box-shadow: 0 16px 34px var(--cta-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cta-btn:active { transform: translateY(0) scale(.98); }
.cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--cta-glow); }
.cta-icon {
	position: relative;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #fff;
	color: var(--cta-to);
	font-size: 26px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.cta-line .cta-icon { font-size: 32px; }
/* วงคลื่นรอบไอคอน */
.cta-icon::after {
	content: "";
	position: absolute;
	inset: -5px;
	border: 2px solid rgba(255, 255, 255, .8);
	border-radius: 50%;
	animation: cta-ring 2s ease-out infinite;
}
@keyframes cta-ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
.cta-phone .cta-icon i { animation: cta-wiggle 2.4s ease-in-out infinite; }
@keyframes cta-wiggle {
	0%, 50%, 100% { transform: rotate(0); }
	5%, 15%, 25% { transform: rotate(-16deg); }
	10%, 20%, 30% { transform: rotate(16deg); }
}
.cta-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.cta-text small { font-size: 16px; font-weight: 500; opacity: .95; }
.cta-text strong {
	font-size: clamp(24px, 3vw, 31px);
	font-weight: 800;
	letter-spacing: .5px;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 6px rgba(0, 0, 0, .2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cta-arrow { margin-left: auto; font-size: 18px; opacity: .8; transition: transform .25s ease; }
.cta-btn:hover .cta-arrow { transform: translateX(5px); opacity: 1; }

/* ===================================================================
 * ปุ่มติดต่อลอย (widget-phone-btn.php) — แสดงข้อมูลตลอด
 * =================================================================== */
.fab-dock {
	position: fixed;
	right: 16px;
	bottom: 20px;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	font-family: 'Noto Sans Thai', sans-serif;
}
.fab-item {
	--fab-color: #06c755;
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, .06);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
	color: #1d1d1f !important;
	text-decoration: none !important;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1.2), box-shadow .25s ease;
	animation: fab-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.fab-item:nth-child(2) { animation-delay: .08s; }
.fab-item:nth-child(3) { animation-delay: .16s; }
@keyframes fab-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.fab-item:hover { transform: translateX(-4px) scale(1.03); box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.fab-phone { --fab-color: #e60012; }
.fab-map { --fab-color: #1a73e8; }
.fab-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--fab-color);
	color: #fff;
	font-size: 19px;
	flex: 0 0 auto;
}
.fab-line .fab-icon { font-size: 24px; }
.fab-phone .fab-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--fab-color);
	z-index: -1;
	animation: fab-pulse 1.8s ease-out infinite;
}
@keyframes fab-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.fab-phone .fab-icon i { animation: cta-wiggle 2.4s ease-in-out infinite; }
.fab-text { display: flex; flex-direction: column; line-height: 1.15; }
.fab-text small { font-size: 12px; color: #6b6b70; }
.fab-text strong { font-size: 15px; font-weight: 700; color: var(--fab-color); font-variant-numeric: tabular-nums; }

.fab-top {
	position: fixed;
	right: 22px;
	bottom: 210px;
	z-index: 9990;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #2b2b2b;
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background .2s ease;
	cursor: pointer;
}
.fab-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease, background .2s ease; }
.fab-top:hover { background: var(--c1); }

/* มือถือ: แถบปุ่มติดต่อด้านล่างหน้าจอ */
@media (max-width: 767px) {
	body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.fab-dock {
		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, .94);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
	}
	.fab-item {
		flex: 1 1 0;
		min-width: 0;
		gap: 7px;
		padding: 5px 8px 5px 5px;
		border-radius: 14px;
		background: color-mix(in srgb, var(--fab-color) 9%, #fff);
		box-shadow: none;
		animation-name: fab-up;
	}
	@keyframes fab-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
	.fab-item:hover { transform: none; box-shadow: none; }
	.fab-icon { width: 36px; height: 36px; font-size: 16px; }
	.fab-line .fab-icon { font-size: 21px; }
	.fab-text { min-width: 0; }
	.fab-text small { font-size: 11px; }
	.fab-text strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.fab-top { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 40px; height: 40px; }
}

/* ===================================================================
 * Cookie consent (PDPA)
 * =================================================================== */
.cookie-banner {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99999;
	width: min(560px, calc(100% - 40px));
	padding: 18px 20px;
	border-radius: 18px;
	background: #fff;
	color: #333;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
	border: 1px solid rgba(0, 0, 0, .06);
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .3s ease, transform .3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner-body { display: flex; gap: 14px; }
.cookie-banner-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--c1) 14%, #fff);
	color: var(--c1);
	font-size: 22px;
}
.cookie-banner-title { display: block; font-size: 17px; color: #111; margin-bottom: 2px; }
.cookie-banner-text { margin: 0 !important; font-size: 14px; line-height: 1.6 !important; color: #555; }
.cookie-banner-text a, .cookie-dialog a { color: var(--c1); text-decoration: underline; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ck-btn {
	padding: 9px 18px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-family: 'Noto Sans Thai', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.ck-btn:active { transform: scale(.97); }
.ck-btn-primary { background: linear-gradient(120deg, var(--c1), var(--c2)); color: #fff; }
.ck-btn-primary:hover { filter: brightness(1.05); }
.ck-btn-outline { background: #fff; color: #333; border-color: #d6d6d6; }
.ck-btn-outline:hover { border-color: var(--c1); color: var(--c1); }
.ck-btn-ghost { background: transparent; color: #555; text-decoration: underline; padding-left: 8px; padding-right: 8px; margin-right: auto; }
.ck-btn-ghost:hover { color: var(--c1); }
@media (max-width: 767px) {
	.cookie-banner { left: 10px; right: 10px; width: auto; bottom: calc(78px + env(safe-area-inset-bottom)); padding: 14px; }
	.cookie-banner-icon { display: none; }
	.cookie-banner-actions .ck-btn { flex: 1 1 auto; }
	.ck-btn-ghost { flex-basis: 100% !important; order: 3; margin: 0; }
}

.cookie-dialog {
	width: min(560px, calc(100% - 24px));
	max-height: calc(100% - 24px);
	padding: 0;
	border: 0;
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	color: #333;
}
.cookie-dialog::backdrop { background: rgba(0, 0, 0, .5); backdrop-filter: blur(2px); }
.cookie-dialog-inner { padding: 22px 22px 16px; }
.cookie-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cookie-dialog-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: #111; }
.cookie-dialog-head h2 i { color: var(--c1); }
.cookie-dialog-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f1f1; color: #444; cursor: pointer; }
.cookie-dialog-close:hover { background: #e4e4e4; }
.cookie-dialog-intro { margin: 0 0 14px !important; font-size: 14px; line-height: 1.6 !important; color: #555; }
.cookie-cat { padding: 14px 16px; margin-bottom: 10px; border: 1px solid #ececec; border-radius: 14px; background: #fafafa; }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-cat-head strong { font-size: 15px; color: #111; }
.cookie-cat p { margin: 6px 0 0 !important; font-size: 13px; line-height: 1.6 !important; color: #666; }
.cookie-cat-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c1) 14%, #fff); color: var(--c1); font-size: 11px; font-weight: 600; }
.cookie-cat .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.cookie-cat .form-check-input:checked { background-color: var(--c1); border-color: var(--c1); }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.cookie-dialog-foot { margin: 12px 0 0 !important; font-size: 12px; color: #888; text-align: center; }
@media (max-width: 575px) {
	.cookie-dialog-actions .ck-btn { flex: 1 1 100%; }
}

/* แผนที่ / เนื้อหาภายนอกที่รอความยินยอม */
.consent-embed { position: relative; background: #eef2f1; }
.consent-embed iframe { display: block; }
.consent-embed.is-loaded .consent-embed-placeholder { display: none; }
.consent-embed-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 320px;
	padding: 40px 20px;
	text-align: center;
	color: #555;
	background:
		radial-gradient(circle at 20% 20%, rgba(0, 172, 156, .12), transparent 45%),
		radial-gradient(circle at 80% 80%, rgba(0, 179, 137, .12), transparent 45%),
		#f4f7f6;
}
.consent-embed-placeholder > i { font-size: 46px; color: var(--c1); }
.consent-embed-placeholder p { max-width: 520px; color: #555; }
.consent-embed-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.consent-embed-btn {
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(120deg, var(--c1), var(--c2));
	color: #fff;
	font-weight: 600;
	box-shadow: 0 8px 20px rgba(0, 172, 156, .35);
	cursor: pointer;
	transition: transform .2s ease;
}
.consent-embed-btn:hover { transform: translateY(-2px); }
.consent-embed-link { align-self: center; color: var(--c1); font-weight: 600; }
.consent-embed-placeholder small a { color: #777; text-decoration: underline; }

/* ===================================================================
 * ส่วนท้าย: ลิงก์นโยบาย
 * =================================================================== */
.footer-policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.footer-policy-links a, .footer-cookie-btn { color: #fff !important; font-size: 14px; text-decoration: underline; }
.footer-cookie-btn { padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
.footer-cookie-btn:hover, .footer-policy-links a:hover { opacity: .85; }

/* ===================================================================
 * เมนูผู้ดูแลระบบใน navbar
 * =================================================================== */
#header .header-nav-main nav > ul > li.nav-admin { position: relative; }
#header .header-nav-main nav > ul > li.nav-admin > a.nav-admin-toggle {
	gap: 6px;
	background: color-mix(in srgb, var(--c1) 12%, #fff) !important;
	color: var(--c1) !important;
	font-weight: 600;
}
#header .header-nav-main nav > ul > li.nav-admin > a.nav-admin-toggle::after { display: none; }
.nav-admin-caret { font-size: 11px; transition: transform .2s ease; }
.nav-admin-toggle[aria-expanded="true"] .nav-admin-caret { transform: rotate(180deg); }
#header .header-nav-main nav > ul > li.nav-admin > .nav-admin-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: auto;
	z-index: 1050;
	min-width: 280px;
	margin: 0;
	padding: 8px;
	border: 0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
	opacity: 1;
	visibility: visible;
	transform: none;
}
#header .header-nav-main nav > ul > li.nav-admin > .nav-admin-menu:not(.show) { display: none; }
.nav-admin-menu .dropdown-item {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 9px 12px !important;
	border-radius: 10px !important;
	color: #333 !important;
	font-size: 15px !important;
	text-transform: none !important;
	white-space: nowrap;
}
.nav-admin-menu .dropdown-item i { width: 18px; text-align: center; color: var(--c1); }
.nav-admin-menu .dropdown-item.text-danger, .nav-admin-menu .dropdown-item.text-danger i { color: #d7000b !important; }
.nav-admin-menu .dropdown-item:hover { background: color-mix(in srgb, var(--c1) 10%, #fff) !important; }
.nav-admin-badge { display: block; padding: 6px 12px 8px; font-size: 12px; color: #888; }
.nav-admin-badge i { color: #2ecc71; font-size: 8px; vertical-align: middle; margin-right: 4px; }
@media (max-width: 991px) {
	#header .header-nav-main nav > ul > li.nav-admin > .nav-admin-menu {
		position: static;
		min-width: 0;
		margin: 4px 0 8px;
		box-shadow: none;
		background: #f7f7f7;
	}
}

/* ===================================================================
 * หน้าผู้ดูแลระบบ
 * =================================================================== */
.admin-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}
.admin-card + .admin-card { margin-top: 24px; }
.admin-card h2 { font-size: 20px; margin-bottom: 14px; }
.admin-card h2 i { color: var(--c1); margin-right: 6px; }
.admin-help { font-size: 13px; color: #777; }
.admin-menu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.admin-tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	border-radius: 16px;
	background: #fff;
	color: #222 !important;
	text-decoration: none !important;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
	border: 1px solid #f0f0f0;
	transition: transform .2s ease, box-shadow .2s ease;
}
.admin-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .12); }
.admin-tile i {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(120deg, var(--c1), var(--c2));
	color: #fff;
	font-size: 22px;
}
.admin-tile strong { font-size: 17px; }
.admin-tile span { font-size: 13px; color: #777; line-height: 1.5; }
.admin-tile.is-danger i { background: linear-gradient(120deg, #ff5f5f, #d7000b); }
.og-preview {
	width: 100%;
	max-width: 600px;
	aspect-ratio: 1200 / 630;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid #e5e5e5;
	background: #f4f4f4;
}
.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.stat-chip { padding: 10px 16px; border-radius: 12px; background: #f6f8f8; font-size: 14px; }
.stat-chip b { display: block; font-size: 22px; color: var(--c1); }
.admin-table { font-size: 14px; }
.admin-table td, .admin-table th { vertical-align: middle; }
.admin-table code { font-size: 12px; color: #555; }
.consent-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.consent-tag.accept_all { background: #e3f8ee; color: #138a4a; }
.consent-tag.reject_all { background: #fde8e8; color: #c0262d; }
.consent-tag.custom { background: #e8f0fd; color: #2456b8; }

/* ===================================================================
 * หน้านโยบาย
 * =================================================================== */
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.policy-nav a {
	padding: 8px 18px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e3e3e3;
	color: #444;
	font-size: 15px;
	text-decoration: none;
}
.policy-nav a.active, .policy-nav a:hover { background: var(--c1); border-color: var(--c1); color: #fff; }
.policy-doc {
	background: #fff;
	border-radius: 18px;
	padding: clamp(20px, 4vw, 44px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
	font-size: 16px;
}
.policy-doc p, .policy-doc li { line-height: 1.85 !important; color: #333; }
.policy-doc p { margin-bottom: .9rem !important; }
.policy-doc h2 { margin: 2rem 0 .8rem; font-size: 21px; color: var(--c1); }
.policy-doc h2:first-of-type { margin-top: 0; }
.policy-doc h3 { margin: 1.2rem 0 .5rem; font-size: 17px; font-weight: 700; }
.policy-doc ul, .policy-doc ol { margin-bottom: 1rem; padding-left: 1.4rem; }
.policy-doc table { width: 100%; margin-bottom: 1rem; font-size: 14.5px; }
.policy-doc th { background: #f3f7f6; white-space: nowrap; }
.policy-doc th, .policy-doc td { padding: 10px 12px !important; border: 1px solid #e6e6e6; vertical-align: top; }
.policy-meta { display: inline-block; margin-bottom: 1.4rem; padding: 6px 14px; border-radius: 999px; background: #f3f7f6; font-size: 14px; color: #555; }
.policy-contact { padding: 16px 20px; border-radius: 14px; background: #f6f9f8; border-left: 4px solid var(--c1); }
.policy-contact p { margin: 0 !important; }

/* ===================================================================
 * ลดการเคลื่อนไหวตามการตั้งค่าของผู้ใช้
 * =================================================================== */
@media (prefers-reduced-motion: reduce) {
	.hs-slide, .hs-slide img, .hs-caption, .sg-item img, .cta-btn, .fab-item { transition: none !important; }
	.hs-slide.is-active img { transform: none; }
	.cta-btn::before, .cta-icon::after, .cta-phone .cta-icon i, .fab-phone .fab-icon::before, .fab-phone .fab-icon i, .fab-item { animation: none !important; }
}
