/* ==========================================================================
   site-extra.css — floating contact buttons, cookie consent (PDPA),
   FAQ, admin menu, policy pages.  Loaded after custom.css.
   ========================================================================== */
:root {
	--iws-primary: #0088cc;
	--iws-ink: #1d2733;
	--iws-muted: #66717d;
	--iws-radius: 16px;
	--iws-shadow: 0 10px 30px rgba(16, 32, 52, .16), 0 2px 6px rgba(16, 32, 52, .08);
	--iws-phone: linear-gradient(135deg, #ff9a2e, #ff6a00);
	--iws-phone2: linear-gradient(135deg, #ff6f61, #e8384f);
	--iws-line: linear-gradient(135deg, #22d16b, #06b04b);
	--iws-msg: linear-gradient(135deg, #00b2ff, #7a5cff 60%, #ff5cae);
}

.skip-link { position: absolute; left: -999px; top: 0; z-index: 10000; background: #fff; color: var(--iws-ink); padding: 8px 14px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Floating contact buttons (always open) ---------- */
.iws-fab {
	position: fixed; right: 18px; bottom: 64px; z-index: 1040;
	display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
	font-family: 'Prompt', sans-serif;
}
.iws-fab__item {
	display: flex; align-items: center; gap: 10px;
	min-width: 196px; padding: 7px 16px 7px 7px;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 999px; box-shadow: var(--iws-shadow);
	color: var(--iws-ink); text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease;
	animation: iws-fab-in .45s cubic-bezier(.2, .9, .3, 1.2) both;
	animation-delay: calc(var(--i, 0) * 70ms + 300ms);
}
.iws-fab__item:hover, .iws-fab__item:focus-visible {
	transform: translateX(-4px); color: var(--iws-ink);
	box-shadow: 0 14px 36px rgba(16, 32, 52, .22), 0 3px 8px rgba(16, 32, 52, .1);
}
.iws-fab__item:focus-visible { outline: 3px solid rgba(0, 136, 204, .45); outline-offset: 2px; }
.iws-fab__icon {
	flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center; color: #fff; font-size: 19px;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.fab-phone  .iws-fab__icon { background: var(--iws-phone); }
.fab-phone2 .iws-fab__icon { background: var(--iws-phone2); }
.fab-line   .iws-fab__icon { background: var(--iws-line); font-size: 23px; }
.fab-msg    .iws-fab__icon { background: var(--iws-msg); }
.fab-phone .iws-fab__icon i { animation: iws-ring 3.2s ease-in-out infinite 2s; }
.iws-fab__text { display: flex; flex-direction: column; line-height: 1.2; }
.iws-fab__label { font-size: 14px; font-weight: 600; }
.iws-fab__sub { font-size: 13px; color: var(--iws-muted); letter-spacing: .2px; }
.iws-fab__short { display: none; }

@keyframes iws-fab-in { from { opacity: 0; transform: translateX(30px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes iws-ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-18deg); } 91% { transform: rotate(16deg); } 94% { transform: rotate(-10deg); } 97% { transform: rotate(6deg); } }

/* mobile: contact bar along the bottom edge */
@media (max-width: 767.98px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.iws-fab {
		left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; align-items: stretch;
		background: rgba(255, 255, 255, .96);
		-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
		box-shadow: 0 -6px 20px rgba(16, 32, 52, .12);
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	}
	.iws-fab__item {
		flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; justify-content: center;
		padding: 4px 2px; background: none; border: 0; box-shadow: none; border-radius: 12px;
		-webkit-backdrop-filter: none; backdrop-filter: none; animation-name: iws-fab-up;
	}
	.iws-fab__item:hover { transform: none; box-shadow: none; }
	.iws-fab__item:active { background: rgba(0, 0, 0, .05); }
	.iws-fab__icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 16px; }
	.fab-line .iws-fab__icon { font-size: 20px; }
	.iws-fab__text { display: none; }
	.iws-fab__short { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; }
	html .scroll-to-top { bottom: calc(68px + env(safe-area-inset-bottom)); }
	@keyframes iws-fab-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
	.iws-fab__item, .fab-phone .iws-fab__icon i, .iws-cc__box { animation: none !important; transition: none !important; }
}
@media print { .iws-fab, .iws-cc { display: none !important; } }

/* ---------- Cookie consent ---------- */
.iws-cc {
	position: fixed; left: 18px; bottom: 18px; z-index: 1060;
	width: min(440px, calc(100vw - 36px)); font-family: 'Prompt', sans-serif;
}
.iws-cc__box {
	background: #fff; color: var(--iws-ink); border-radius: var(--iws-radius);
	box-shadow: 0 20px 50px rgba(16, 32, 52, .25); padding: 18px 18px 16px;
	border: 1px solid #e8edf2;
	opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease;
}
.iws-cc.is-open .iws-cc__box { opacity: 1; transform: none; }
.iws-cc__head { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 6px; }
.iws-cc__emoji { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff4e0; color: #e08a00; }
.iws-cc__text { font-size: 14px; line-height: 1.6; color: #44505c; margin: 0 0 12px; }
.iws-cc__text a { color: var(--iws-primary); text-decoration: underline; }
.iws-cc__prefs { border-top: 1px solid #eef1f4; margin: 4px 0 12px; }
.iws-cc__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eef1f4; margin: 0; cursor: pointer; }
.iws-cc__row span { display: flex; flex-direction: column; font-size: 14px; }
.iws-cc__row small { color: var(--iws-muted); font-size: 12.5px; line-height: 1.45; }
.iws-cc__row input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--iws-primary); }
.iws-cc__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.iws-cc__btn { border: 0; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-family: inherit; cursor: pointer; transition: background .15s, color .15s; }
.iws-cc__btn--ghost { background: #f1f4f7; color: var(--iws-ink); }
.iws-cc__btn--ghost:hover { background: #e3e8ee; }
.iws-cc__btn--primary { background: var(--iws-primary); color: #fff; font-weight: 600; }
.iws-cc__btn--primary:hover { background: #0072ab; }
.iws-cc__btn:focus-visible { outline: 3px solid rgba(0, 136, 204, .45); outline-offset: 2px; }
@media (max-width: 767.98px) {
	.iws-cc { left: 10px; right: 10px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
	.iws-cc__actions .iws-cc__btn { flex: 1 1 auto; }
}
.cc-needs-marketing { display: inline-block; font-size: 13px; color: var(--iws-muted); text-decoration: underline; }
html.cc-marketing .cc-needs-marketing { display: none; }

/* ---------- FAQ (home page) ---------- */
.iws-faq { max-width: 900px; margin: 0 auto; }
.iws-faq details { background: #fff; border: 1px solid #e6ebf0; border-radius: 12px; margin-bottom: 10px; transition: box-shadow .2s; }
.iws-faq details[open] { box-shadow: 0 8px 24px rgba(16, 32, 52, .08); }
.iws-faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative; font-size: 17px; font-weight: 600; color: var(--iws-ink); }
.iws-faq summary::-webkit-details-marker { display: none; }
.iws-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--iws-primary); transition: transform .2s; }
.iws-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.iws-faq .iws-faq__a { padding: 0 18px 16px; color: #44505c; line-height: 1.7; margin: 0; }

.iws-services h3 { font-size: 1rem; margin: 0 0 2px; color: #0d6efd; font-weight: 700; line-height: 1.4; }
.iws-lead { font-size: 1.15rem; line-height: 1.8; color: #333; text-indent: 2em; }

/* ---------- Admin menu in the top nav ---------- */
#header .iws-admin-nav > a.dropdown-item { background: rgba(255, 193, 7, .22); border-radius: 6px; }
#header .iws-admin-nav .dropdown-menu a i { width: 20px; text-align: center; margin-right: 4px; }
.iws-admin-bar { background: #1d2733; color: #fff; font-size: 13px; font-family: 'Prompt', sans-serif; }
.iws-admin-bar a { color: #ffd34d; margin-left: 12px; }
.iws-admin-bar a:hover { color: #fff; }

/* ---------- Policy pages ---------- */
.iws-policy { max-width: 900px; margin: 0 auto; font-size: 16px; line-height: 1.85; color: #333; }
.iws-policy h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; color: var(--iws-ink); font-weight: 700; }
.iws-policy h3 { font-size: 1.1rem; margin: 1.2rem 0 .4rem; font-weight: 700; }
.iws-policy table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 14.5px; }
.iws-policy th, .iws-policy td { border: 1px solid #dde3e9; padding: 8px 10px; vertical-align: top; }
.iws-policy th { background: #f4f7fa; }
.iws-policy .iws-policy__meta { color: var(--iws-muted); font-size: 14px; }
.footer-policy-links a { color: #cfd6dd; margin-right: 14px; }
.footer-policy-links a:hover { color: #fff; }

/* ---------- Services page (บริการของเรา) ---------- */
.svc-page { padding: 48px 0 64px; background: linear-gradient(180deg, #f3f8fc 0%, #ffffff 340px); }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 36px; max-width: 980px; }
.svc-chip {
	display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
	background: #fff; color: #1f7a4d; border: 1px solid #d6e9df; text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(16, 32, 52, .05); transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.svc-chip:hover, .svc-chip:focus-visible { background: #1f9d5c; color: #fff; border-color: #1f9d5c; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(31, 157, 92, .25); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.svc-card {
	display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
	border: 1px solid #e8eef3; box-shadow: 0 6px 22px rgba(16, 32, 52, .07);
	transition: transform .3s ease, box-shadow .3s ease; scroll-margin-top: 120px;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16, 32, 52, .14); }
.svc-card:target { outline: 3px solid #1f9d5c; outline-offset: 3px; }
.svc-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #eef3f7; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .6s ease; }
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(10, 30, 50, .45) 100%); pointer-events: none; }
.svc-card__code {
	position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 6px 14px; border-radius: 999px;
	background: linear-gradient(135deg, #22b36b, #13894f); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .3px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.svc-card__num {
	position: absolute; right: 12px; top: 10px; z-index: 1; font-size: 13px; font-weight: 700; color: #1d2733;
	background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border-radius: 999px; padding: 3px 10px;
}
.svc-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; border-top: 4px solid #1f9d5c; }
.svc-card__title { margin: 0; font-size: 1.12rem; line-height: 1.45; font-weight: 700; color: #1f7a4d; letter-spacing: 0; }
.svc-card__title span { display: block; font-size: .92rem; font-weight: 500; color: #5b6b78; }
.svc-card__desc { margin: 0; font-size: 15px; line-height: 1.75; color: #45525e; }
.svc-banner { margin: 44px 0 0; }
.svc-banner img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 14px 40px rgba(16, 32, 52, .14); display: block; }
@media (max-width: 991.98px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 575.98px) {
	.svc-page { padding: 28px 0 44px; }
	.svc-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -15px 24px; padding: 2px 15px 8px; scrollbar-width: none; }
	.svc-chips::-webkit-scrollbar { display: none; }
	.svc-chip { flex: 0 0 auto; }
	.svc-grid { grid-template-columns: 1fr; gap: 18px; }
	.svc-card__body { padding: 16px 18px 20px; }
}

/* ---------- Contact page (ติดต่อเรา) ---------- */
.ct-page { --ct-green: #1f9d5c; --ct-green-d: #1f7a4d; --ct-red: #c8102e; color: #2b3640; }
.ct-page figure { margin: 0; }
.ct-title { font-size: 1.6rem; font-weight: 700; color: var(--ct-green-d); line-height: 1.4; margin: 0 0 20px; display: flex; align-items: center; gap: 12px; letter-spacing: 0; }
.ct-kicker { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #e6f5ec; color: var(--ct-green); font-size: 19px; }

.ct-team { padding: 52px 0 40px; background: linear-gradient(180deg, #f3f8fc 0%, #ffffff 100%); }
.ct-team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ct-person {
	background: #fff; border: 1px solid #e8eef3; border-radius: 22px; padding: 28px 24px 24px; text-align: center;
	box-shadow: 0 8px 26px rgba(16, 32, 52, .07); display: flex; flex-direction: column; align-items: center;
	transition: transform .3s ease, box-shadow .3s ease;
}
.ct-person:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(16, 32, 52, .13); }
.ct-person__photo { position: relative; display: block; width: 200px; height: 200px; border-radius: 22px; padding: 4px; background: linear-gradient(135deg, #22c06f, #0088cc); margin-bottom: 18px; }
/* images are LINE QR codes: keep them square and uncropped so they still scan */
.ct-person__photo img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 18px; padding: 8px; display: block; }
.ct-person__line { position: absolute; right: -10px; bottom: -10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #06c755; color: #fff; font-size: 22px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.18); transition: transform .2s; }
.ct-person__photo:hover .ct-person__line { transform: scale(1.12); }
.ct-person__role { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #0a6aa0; background: #e3f2fb; padding: 4px 12px; border-radius: 999px; }
.ct-person__name { font-size: 1.2rem; font-weight: 700; margin: 10px 0 14px; color: #1d2733; line-height: 1.4; letter-spacing: 0; }
.ct-person__list { list-style: none; padding: 0; margin: 0 0 18px; width: 100%; text-align: left; display: grid; gap: 10px; }
.ct-person__list li { display: flex; align-items: center; gap: 12px; background: #f6f9fb; border-radius: 12px; padding: 10px 12px; font-size: 15px; word-break: break-word; }
.ct-person__list small { display: block; font-size: 12px; color: #7a8692; font-weight: 600; letter-spacing: .3px; }
.ct-person__list a { color: #1d2733; font-weight: 600; }
.ct-person__list a:hover { color: var(--ct-green); }
.ct-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #e3f2fb; color: #0088cc; }
.ct-ico--hot { background: #fff1e5; color: #ff6a00; }
.ct-person__actions { display: flex; gap: 10px; width: 100%; margin-top: auto; }
.ct-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; border-radius: 999px; font-weight: 700; font-size: 15px; color: #fff !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s, filter .2s; }
.ct-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.ct-btn--call { background: linear-gradient(135deg, #ff9a2e, #ff6a00); box-shadow: 0 6px 16px rgba(255, 106, 0, .28); }
.ct-btn--line { flex: 0 0 auto; padding: 11px 18px; background: linear-gradient(135deg, #22d16b, #06b04b); box-shadow: 0 6px 16px rgba(6, 176, 75, .28); }

.ct-benefits { padding: 56px 0; background: #fff; }
.ct-benefits__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ct-benefits__img img, .ct-wide img, .ct-office__img img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 14px 40px rgba(16, 32, 52, .14); }
.ct-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ct-checks li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: 1px solid #e6eef2; border-radius: 14px; font-size: 16px; line-height: 1.55; box-shadow: 0 3px 10px rgba(16, 32, 52, .04); transition: border-color .2s, transform .2s; }
.ct-checks li:hover { border-color: #bfe3cf; transform: translateX(4px); }
.ct-checks__ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #22b36b, #13894f); color: #fff; font-size: 17px; }
.ct-slogan { margin: 52px auto 26px; max-width: 960px; text-align: center; padding: 26px 28px; border-radius: 20px; background: linear-gradient(135deg, #fff3f4, #fff); border: 1px solid #f6d3d8; }
.ct-slogan h2 { margin: 0; font-size: 1.55rem; line-height: 1.5; font-weight: 700; color: var(--ct-red); letter-spacing: 0; }
.ct-wide { max-width: 960px; margin: 0 auto; }

.ct-office { padding: 56px 0 72px; background: linear-gradient(180deg, #ffffff 0%, #f3f8fc 100%); }
.ct-office__wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 36px; align-items: center; }
.ct-office__card { background: #fff; border: 1px solid #e8eef3; border-radius: 22px; padding: 30px 28px; box-shadow: 0 8px 26px rgba(16, 32, 52, .07); }
.ct-office__company { font-size: 1.15rem; font-weight: 700; color: #1d2733; margin: 0 0 16px; }
.ct-office__card .ct-person__list { margin: 0; }


@media (max-width: 991.98px) {
	.ct-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ct-benefits__wrap, .ct-office__wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 575.98px) {
	.ct-team { padding: 32px 0 28px; }
	.ct-team__grid { grid-template-columns: 1fr; gap: 20px; }
	.ct-title { font-size: 1.3rem; }
	.ct-slogan h2 { font-size: 1.2rem; }
	.ct-benefits, .ct-office { padding: 36px 0; }
}

/* entrance animation for services/contact pages: CSS only, always ends visible */
@keyframes iws-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.svc-card, .ct-reveal { animation: iws-rise .6s ease backwards; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .svc-card, .ct-reveal { animation: none; } }

/* ---------- Bootstrap 5 compatibility (keep the Bootstrap 4 look of the theme) ---------- */
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.container, .row { --bs-gutter-x: 30px; }
@media (min-width: 1400px) { .container { max-width: 1140px; } }
#header .header-nav-main nav > ul > li.dropdown:focus-within > .dropdown-menu { opacity: 1; visibility: visible; top: 100%; }
html .scroll-to-top { z-index: 1030; }
html .scroll-to-top:hover { text-decoration: none; }

/* ---------- Image slider (own code, no pan / zoom) ---------- */
.iws-slider { position: relative; overflow: hidden; border-radius: 14px; background: #eef2f5; box-shadow: 0 12px 34px rgba(16, 32, 52, .14); max-width: 1200px; margin-left: auto; margin-right: auto; outline: none; }
.iws-slider:focus-visible { box-shadow: 0 0 0 3px rgba(0, 136, 204, .5), 0 12px 34px rgba(16, 32, 52, .14); }
.iws-slider__track { position: relative; aspect-ratio: 959 / 546; }
.iws-slider__slide { margin: 0; position: absolute; inset: 0; }
.iws-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* fade effect */
.iws-slider.is-fade .iws-slider__slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.iws-slider.is-fade .iws-slider__slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; z-index: 1; }
/* slide effect */
.iws-slider.is-slide .iws-slider__track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.iws-slider.is-slide .iws-slider__slide { position: relative; flex: 0 0 100%; }
/* before JS runs: only the first slide shows */
.iws-slider:not(.is-fade):not(.is-slide) .iws-slider__slide:not(:first-child) { display: none; }
.iws-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: rgba(255, 255, 255, .85); color: #1d2733; font-size: 18px; display: grid; place-items: center; cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .25s, background .2s;
}
.iws-slider__nav--prev { left: 14px; } .iws-slider__nav--next { right: 14px; }
.iws-slider:hover .iws-slider__nav, .iws-slider:focus-within .iws-slider__nav { opacity: 1; }
.iws-slider__nav:hover { background: #fff; }
.iws-slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.iws-slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer; transition: width .3s, background .3s; }
.iws-slider__dot.is-active { width: 28px; background: #fff; }
@media (hover: none) { .iws-slider__nav { opacity: 1; width: 38px; height: 38px; font-size: 15px; } }

/* ---------- Gallery grid (own code) ---------- */
.iws-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.iws-gallery__item { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: #eef2f5; text-decoration: none !important; }
.iws-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.iws-gallery__item::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; color: #fff; background: rgba(182, 3, 17, .6); opacity: 0; transition: opacity .25s; }
.iws-gallery__item:hover::after, .iws-gallery__item:focus-visible::after { opacity: 1; }
.iws-gallery__item:hover img { transform: scale(1.05); }
.iws-gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 8px 6px; font-size: 12px; line-height: 1.35; color: #fff; text-align: left; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.iws-gallery__item:hover .iws-gallery__cap, .iws-gallery__item:focus-visible .iws-gallery__cap { opacity: 1; transform: none; }
@media (max-width: 575.98px) { .iws-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ---------- Lightbox ---------- */
html.iws-lb-open { overflow: hidden; }
.iws-lb { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 14, 20, .92); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.iws-lb.is-open { opacity: 1; }
.iws-lb__figure { margin: 0; max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); display: flex; flex-direction: column; align-items: center; }
.iws-lb__img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); transition: opacity .2s; }
.iws-lb.is-loading .iws-lb__img { opacity: .3; }
.iws-lb__cap { color: #fff; font-family: 'Prompt', sans-serif; font-size: 15px; margin-top: 12px; text-align: center; }
.iws-lb__count { position: absolute; top: 18px; left: 20px; color: rgba(255, 255, 255, .8); font-size: 14px; font-family: 'Prompt', sans-serif; }
.iws-lb__close, .iws-lb__nav { position: absolute; border: 0; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; cursor: pointer; transition: background .2s; }
.iws-lb__close:hover, .iws-lb__nav:hover { background: rgba(255, 255, 255, .25); }
.iws-lb__close:focus-visible, .iws-lb__nav:focus-visible { outline: 3px solid rgba(255, 255, 255, .6); }
.iws-lb__close { top: 12px; right: 14px; }
.iws-lb__nav { top: 50%; transform: translateY(-50%); }
.iws-lb__nav--prev { left: 14px; } .iws-lb__nav--next { right: 14px; }
.iws-lb.is-single .iws-lb__nav { display: none; }
@media (max-width: 575.98px) {
	.iws-lb__figure { max-width: 100vw; padding: 0 8px; }
	.iws-lb__nav { top: auto; bottom: 16px; transform: none; }
}
/* logo: keep it in normal flow (the old theme set its height from JS) */
html.sticky-header-enabled #header .header-logo-sticky-change img { position: relative; }
#header .header-logo img { height: 90px; width: auto; max-width: 100%; }

/* ---------- Portfolio page (ผลงานของเรา) ---------- */
.pf-page { padding: 44px 0 64px; background: linear-gradient(180deg, #f3f8fc 0%, #ffffff 320px); }
.pf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.pf-stats { display: flex; gap: 12px; }
.pf-stat { display: flex; align-items: baseline; gap: 8px; background: #fff; border: 1px solid #e3ecf2; border-radius: 14px; padding: 10px 18px; box-shadow: 0 4px 14px rgba(16, 32, 52, .05); }
.pf-stat strong { font-size: 1.6rem; line-height: 1; color: #c8102e; font-weight: 700; }
.pf-stat span { font-size: 14px; color: #5b6b78; }
.pf-search { position: relative; flex: 0 1 360px; margin: 0; }
.pf-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8a96a3; pointer-events: none; }
.pf-search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid #d9e3ea; background: #fff; padding: 0 18px 0 44px; font: inherit; font-size: 15px; color: #1d2733; box-shadow: 0 4px 14px rgba(16, 32, 52, .05); transition: border-color .2s, box-shadow .2s; }
.pf-search input:focus { outline: none; border-color: #0088cc; box-shadow: 0 0 0 4px rgba(0, 136, 204, .15); }
.pf-grid.iws-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pf-grid .iws-gallery__item.pf-card { aspect-ratio: auto; display: flex; flex-direction: column; background: #fff; border: 1px solid #e8eef3; border-radius: 16px; box-shadow: 0 6px 20px rgba(16, 32, 52, .07); transition: transform .3s ease, box-shadow .3s ease; animation: iws-rise .55s ease backwards; animation-delay: var(--d, 0ms); }
.pf-grid .pf-card[hidden] { display: none; }
.pf-grid .pf-card::after { content: none; }
.pf-grid .pf-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(16, 32, 52, .14); }
.pf-grid .pf-card:focus-visible { outline: 3px solid rgba(0, 136, 204, .5); outline-offset: 3px; }
.pf-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f5; }
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.pf-card:hover .pf-card__media img { transform: scale(1.05); }
.pf-card__media::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #c8102e; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; }
.pf-card:hover .pf-card__media::after, .pf-card:focus-visible .pf-card__media::after { opacity: 1; transform: none; }
.pf-card__name { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px 14px; font-size: 14.5px; line-height: 1.45; color: #1d2733; font-weight: 600; flex: 1; border-top: 3px solid #c8102e; }
.pf-card__name i { color: #c8102e; margin-top: 3px; font-size: 13px; }
.pf-card__name span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-empty { text-align: center; color: #66717d; padding: 40px 0; font-size: 16px; }
@media (max-width: 1199.98px) { .pf-grid.iws-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
	.pf-page { padding: 28px 0 44px; }
	.pf-toolbar { flex-direction: column; align-items: stretch; }
	.pf-search { flex-basis: auto; }
	.pf-stats { justify-content: center; }
	.pf-grid.iws-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pf-card__name { font-size: 13px; padding: 10px 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .pf-grid .pf-card { animation: none; } }

/* ---------- Tag pages (/tag/...) ---------- */
.tg-page { color: #2b3640; }
.tg-page figure { margin: 0; }
.tg-hero { padding: 48px 0 56px; background: radial-gradient(1200px 400px at 85% 0%, #e7f3fb 0%, rgba(231, 243, 251, 0) 60%), linear-gradient(180deg, #f6fafd 0%, #ffffff 100%); }
.tg-hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 44px; align-items: center; }
.tg-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #c8102e; background: #fdecee; border-radius: 999px; padding: 6px 14px; letter-spacing: .3px; }
.tg-hero__title { font-size: 2.3rem; line-height: 1.3; font-weight: 700; color: #1d2733; margin: 14px 0 6px; letter-spacing: 0; }
.tg-hero__title span { display: block; font-size: 1.3rem; font-weight: 600; color: #1f7a4d; margin-top: 6px; }
.tg-hero__en { color: #5b6b78; font-size: 15px; margin: 0 0 14px; font-weight: 500; }
.tg-hero__lead { font-size: 1.1rem; line-height: 1.85; color: #3a4651; margin: 0 0 12px; }
.tg-hero__lead strong { color: #c8102e; }
.tg-hero__lead--sm { font-size: 1rem; color: #5b6b78; }
.tg-hero__img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; box-shadow: 0 22px 50px rgba(16, 32, 52, .18); display: block; }
.tg-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: transform .2s, box-shadow .2s, background .2s; }
.tg-btn:hover { transform: translateY(-2px); }
.tg-btn--call { color: #fff !important; background: linear-gradient(135deg, #ff9a2e, #ff6a00); box-shadow: 0 8px 18px rgba(255, 106, 0, .28); }
.tg-btn--line { color: #fff !important; background: linear-gradient(135deg, #22d16b, #06b04b); box-shadow: 0 8px 18px rgba(6, 176, 75, .28); }
.tg-btn--ghost { color: #1d2733 !important; background: #fff; border: 1px solid #d9e3ea; }
.tg-btn--ghost:hover { border-color: #0088cc; color: #0088cc !important; }
.tg-btn--light { color: #c8102e !important; background: #fff; }
.tg-like { margin-top: 16px; }
.tg-section { padding: 56px 0; background: #fff; }
.tg-section--alt { background: #f4f8fb; }
.tg-h2 { font-size: 1.6rem; font-weight: 700; color: #1d2733; text-align: center; margin: 0 auto 30px; max-width: 820px; line-height: 1.45; letter-spacing: 0; }
.tg-h3 { font-size: 1.05rem; font-weight: 700; color: #1d2733; margin: 0 0 12px; letter-spacing: 0; }
.tg-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tg-benefits li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid #e6eef2; border-radius: 16px; padding: 18px; font-size: 15.5px; line-height: 1.55; box-shadow: 0 4px 14px rgba(16, 32, 52, .05); animation: iws-rise .55s ease backwards; animation-delay: var(--d, 0ms); }
.tg-benefits__ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; color: #fff; background: linear-gradient(135deg, #22b36b, #13894f); }
.tg-gallery.iws-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tg-gallery .iws-gallery__item { aspect-ratio: 4 / 3; border-radius: 14px; }
.tg-link { font-weight: 700; color: #0088cc; }
.tg-standards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
.tg-std { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #e3ecf2; text-decoration: none !important; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tg-std:hover { border-color: #1f9d5c; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 32, 52, .08); }
.tg-std strong { color: #1f7a4d; font-size: 15.5px; }
.tg-std span { color: #5b6b78; font-size: 13.5px; line-height: 1.5; }
.tg-tags { text-align: center; }
.tg-tags .badge { font-size: 13px; font-weight: 500; padding: 7px 12px; margin: 0 4px 8px 0; }
.tg-contact { padding: 0 0 64px; background: #fff; }
.tg-contact__box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px 36px; border-radius: 24px; background: linear-gradient(135deg, #c8102e, #8f0a20); color: #fff; box-shadow: 0 20px 44px rgba(200, 16, 46, .25); }
.tg-contact__box h2 { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; letter-spacing: 0; line-height: 1.4; }
.tg-contact__box p { margin: 0; color: rgba(255, 255, 255, .85); }
.tg-contact__box .tg-cta { margin-top: 0; }
@media (max-width: 991.98px) {
	.tg-hero__grid { grid-template-columns: 1fr; gap: 28px; }
	.tg-hero__img { order: -1; }
	.tg-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-standards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tg-gallery.iws-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
	.tg-hero { padding: 28px 0 40px; }
	.tg-hero__title { font-size: 1.75rem; }
	.tg-section { padding: 40px 0; }
	.tg-h2 { font-size: 1.3rem; }
	.tg-benefits, .tg-standards { grid-template-columns: 1fr; }
	.tg-gallery.iws-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.tg-cta .tg-btn { flex: 1 1 auto; justify-content: center; }
	.tg-contact__box { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { .tg-benefits li { animation: none; } }
.iws-slider__slide > a { display: block; height: 100%; }

/* ---------- Admin: slider editor ---------- */
.sa-form { max-width: 1000px; margin: 0 auto; }
.sa-card { background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 5px 20px #e1e1e1; margin-bottom: 22px; }
.sa-h2 { font-size: 1.2rem; font-weight: 700; color: #1d2733; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; letter-spacing: 0; }
.sa-h2 i { color: #0088cc; }
.sa-count { font-size: 13px; font-weight: 600; color: #fff; background: #0088cc; border-radius: 999px; padding: 2px 10px; }
.sa-note { font-size: 13.5px; color: #66717d; }
.sa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sa-item { display: grid; grid-template-columns: 240px 1fr auto; gap: 18px; align-items: start; padding: 14px; border: 1px solid #e3ecf2; border-radius: 14px; background: #fbfdfe; transition: opacity .2s, border-color .2s; }
.sa-item.is-off { opacity: .55; }
.sa-item.is-del { border-color: #e8384f; background: #fff5f6; opacity: .6; }
.sa-thumb { position: relative; aspect-ratio: 959 / 546; border-radius: 10px; overflow: hidden; background: #eef2f5; }
.sa-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: #1b2530; }
.sa-num { position: absolute; left: 8px; top: 8px; min-width: 28px; height: 28px; border-radius: 999px; background: rgba(29, 39, 51, .85); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.sa-missing { display: grid; place-items: center; height: 100%; color: #c8102e; font-size: 14px; }
.sa-path { font-size: 12px; color: #8a96a3; margin-bottom: 6px; word-break: break-all; }
.sa-fields .form-label { font-size: 13.5px; margin-bottom: 4px; }
.sa-checks { display: flex; gap: 22px; margin-top: 10px; flex-wrap: wrap; }
.sa-del .form-check-label { color: #c8102e; }
.sa-move { display: flex; flex-direction: column; gap: 8px; }
.sa-btn-icon { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #d9e3ea; background: #fff; color: #1d2733; cursor: pointer; }
.sa-btn-icon:hover { border-color: #0088cc; color: #0088cc; }
.sa-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sa-preview img { width: 160px; aspect-ratio: 959 / 546; object-fit: contain; background: #1b2530; border-radius: 8px; border: 1px solid #e3ecf2; }
.sa-actions { display: flex; justify-content: flex-end; gap: 12px; align-items: center; position: sticky; bottom: 12px; background: rgba(255, 255, 255, .92); padding: 12px; border-radius: 14px; box-shadow: 0 6px 20px rgba(16, 32, 52, .12); }
@media (max-width: 767.98px) {
	.sa-item { grid-template-columns: 1fr; }
	.sa-move { flex-direction: row; }
	.sa-actions { bottom: 76px; }
}

/* ---------- Footer ---------- */
#footer.ft { background: #0f1b29; box-shadow: none; font-size: 15px; color: #b8c4d0; margin-top: 0; border-top: 0; font-family: 'Prompt', sans-serif; }
.ft-main { position: relative; padding: 64px 0 28px; background: radial-gradient(900px 320px at 0% 0%, rgba(0, 136, 204, .18), transparent 60%), radial-gradient(700px 300px at 100% 100%, rgba(200, 16, 46, .14), transparent 60%); }
.ft-main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #c8102e, #ff6a00 35%, #0088cc 70%, #1f9d5c); }
.ft-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.25fr 1fr; gap: 40px; }
.ft-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 18px; letter-spacing: .2px; position: relative; padding-bottom: 10px; }
.ft-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: #c8102e; }
.ft-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; }
.ft-logo img { display: block; height: 56px; width: auto; }
.ft-desc { font-size: 14.5px; line-height: 1.8; color: #a9b6c3; margin: 0 0 18px; }
.ft-social { display: flex; gap: 10px; flex-wrap: wrap; }
.ft-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); font-size: 16px; text-decoration: none !important; transition: background .2s, transform .2s, border-color .2s; }
.ft-social a:hover { background: #c8102e; border-color: #c8102e; transform: translateY(-3px); }
.ft-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ft-links a { color: #c9d3dd; text-decoration: none !important; display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s; }
.ft-links a i { font-size: 10px; color: #c8102e; }
.ft-links a:hover { color: #fff; transform: translateX(4px); }
.ft-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ft-info li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.ft-info small { display: block; font-size: 12px; color: #7f8fa0; letter-spacing: .3px; }
.ft-info a { color: #fff; font-weight: 500; text-decoration: none !important; word-break: break-word; }
.ft-info a:hover { color: #ff8a3d; }
.ft-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(200, 16, 46, .16); color: #ff5a6e; font-size: 14px; }
.ft-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ft-stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px 12px; }
.ft-stat strong { display: block; color: #fff; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.ft-stat span { font-size: 12.5px; color: #8e9cab; }
.ft-total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #c8102e, #8f0a20); color: #fff; }
.ft-total span { font-size: 13.5px; opacity: .9; }
.ft-total strong { font-size: 1.3rem; }
.ft-tags { display: flex; gap: 14px; align-items: flex-start; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ft-tags__label { flex: 0 0 auto; color: #fff; font-weight: 600; font-size: 14px; padding-top: 4px; }
.ft-tags__list .badge { background: rgba(255, 255, 255, .07) !important; color: #c9d3dd !important; border: 1px solid rgba(255, 255, 255, .1); font-weight: 400; font-size: 13px; padding: 6px 12px; margin: 0 4px 8px 0; transition: background .2s, color .2s; }
.ft-tags__list .badge:hover { background: #0088cc !important; color: #fff !important; text-decoration: none; }
.ft-bottom { background: #0a131d; padding: 18px 0; font-size: 14px; color: #8e9cab; }
.ft-bottom__row { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.ft-copy a { color: #fff; }
.ft-policy { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ft-policy a { color: #a9b6c3; }
.ft-policy a:hover { color: #fff; }
@media (max-width: 1199.98px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) {
	.ft-main { padding: 44px 0 20px; }
	.ft-grid { grid-template-columns: 1fr; gap: 32px; }
	.ft-tags { flex-direction: column; gap: 10px; }
	.ft-bottom__row { flex-direction: column; text-align: center; }
	.ft-policy { justify-content: center; }
}

/* ---------- Admin: portfolio editor ---------- */
.pa-form { max-width: 1140px; }
.pa-tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.pa-search { flex: 0 1 340px; }
.pa-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pa-item { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid #e3ecf2; border-radius: 14px; background: #fbfdfe; transition: opacity .2s, border-color .2s; }
.pa-item[hidden] { display: none; }
.pa-item.is-off { opacity: .55; }
.pa-item.is-del { border-color: #e8384f; background: #fff5f6; opacity: .6; }
.pa-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eef2f5; }
.pa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-move { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.pa-move .sa-btn-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .92); font-size: 13px; }
.pa-checks { display: flex; gap: 16px; font-size: 14px; }

/* slider: show each image whole at its own ratio (height set by js/site.js) */
.iws-slider.is-fit .iws-slider__track { aspect-ratio: auto; transition: height .5s ease; background: #1b2530; }
.iws-slider.is-fit .iws-slider__slide { overflow: hidden; }
.iws-slider.is-fit .iws-slider__slide::before {
	content: ""; position: absolute; inset: -30px; z-index: 0;
	background: var(--bg) center / cover no-repeat; filter: blur(26px) brightness(.75) saturate(1.1);
}
.iws-slider.is-fit .iws-slider__slide > img,
.iws-slider.is-fit .iws-slider__slide > a { position: relative; z-index: 1; }
.iws-slider.is-fit .iws-slider__slide img { object-fit: contain; }
.iws-slider.is-fit.is-slide .iws-slider__slide { height: 100%; }
@media (prefers-reduced-motion: reduce) { .iws-slider.is-fit .iws-slider__track { transition: none; } }

/* ---------- Home: services grid ---------- */
.hs-section { padding: 64px 0 60px; background: radial-gradient(900px 300px at 50% 0%, #e8f3fb 0%, rgba(232, 243, 251, 0) 70%), #f6f9fc; }
.hs-head { text-align: center; margin-bottom: 34px; }
.hs-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #c8102e; background: #fdecee; padding: 6px 14px; border-radius: 999px; }
.hs-title { margin: 14px 0 0; font-size: 2rem; font-weight: 700; color: #c8102e; line-height: 1.35; letter-spacing: 0; }
.hs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hs-card {
	position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 20px 20px 20px 18px;
	background: #fff; border: 1px solid #e5edf3; border-radius: 18px; color: inherit; text-decoration: none !important;
	box-shadow: 0 4px 16px rgba(16, 32, 52, .05); overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	animation: iws-rise .55s ease backwards; animation-delay: var(--d, 0ms);
}
.hs-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #0088cc, #1f9d5c); opacity: 0; transition: opacity .25s; }
.hs-card:hover, .hs-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 32, 52, .12); border-color: #cfe2ee; }
.hs-card:hover::before, .hs-card:focus-visible::before { opacity: 1; }
.hs-card:focus-visible { outline: 3px solid rgba(0, 136, 204, .45); outline-offset: 2px; }
.hs-card__icon { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, #1aa0e6, #0068a8); box-shadow: 0 8px 18px rgba(0, 136, 204, .28); transition: transform .25s; }
.hs-card:nth-child(3n+2) .hs-card__icon { background: linear-gradient(135deg, #22b36b, #13894f); box-shadow: 0 8px 18px rgba(31, 157, 92, .28); }
.hs-card:nth-child(3n+3) .hs-card__icon { background: linear-gradient(135deg, #f0465b, #c8102e); box-shadow: 0 8px 18px rgba(200, 16, 46, .26); }
.hs-card:hover .hs-card__icon { transform: rotate(-6deg) scale(1.05); }
.hs-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.hs-card__code { margin: 0; font-size: 1.12rem; font-weight: 700; color: #0d4f7a; line-height: 1.3; letter-spacing: 0; }
.hs-card__th { font-size: 15px; color: #2b3640; line-height: 1.55; }
.hs-card__en { font-size: 13px; color: #7a8692; line-height: 1.45; }
.hs-card__go { flex: 0 0 auto; align-self: center; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #0088cc; background: #eef6fb; font-size: 13px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.hs-card:hover .hs-card__go, .hs-card:focus-visible .hs-card__go { opacity: 1; transform: none; }
.hs-more { text-align: center; margin-top: 30px; }
.hs-more__btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px; font-weight: 600; color: #fff !important; background: linear-gradient(135deg, #c8102e, #8f0a20); box-shadow: 0 10px 22px rgba(200, 16, 46, .25); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.hs-more__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(200, 16, 46, .32); }
@media (max-width: 1199.98px) { .hs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
	.hs-section { padding: 44px 0 40px; }
	.hs-title { font-size: 1.5rem; }
	.hs-grid { grid-template-columns: 1fr; gap: 12px; }
	.hs-card { padding: 16px; gap: 14px; }
	.hs-card__icon { flex-basis: 46px; width: 46px; height: 46px; font-size: 19px; border-radius: 14px; }
	.hs-card__go { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hs-card { animation: none; } }

/* header: the desktop menu shows from 992px, so hide the mobile menu grid from 992px too
   (it used to stay visible until 1280px, showing two menus on laptop screens) */
@media (min-width: 992px) { #header .hide-on-desktop { display: none !important; } }
