/* =====================================================================
   TNC Design - Modern UI
   header / ปุ่มติดต่อลอย / ผลงาน / ติดต่อเรา / FAQ / นโยบาย / คุกกี้ / แอดมิน
   ===================================================================== */
:root {
	--tn-primary: #0056dd;
	--tn-primary-dark: #0043ad;
	--tn-accent: #00b7e1;
	--tn-navy: #0b1f44;
	--tn-text: #1d2433;
	--tn-muted: #5b6475;
	--tn-line: #e3e8f2;
	--tn-soft: #f4f7fc;
	--tn-white: #ffffff;
	--tn-green: #06c755;
	--tn-messenger: #0a7cff;
	--tn-radius: 16px;
	--tn-radius-sm: 10px;
	--tn-shadow: 0 10px 30px rgba(11, 31, 68, 0.08);
	--tn-shadow-lg: 0 18px 50px rgba(11, 31, 68, 0.16);
	--tn-font: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tn-gradient: linear-gradient(120deg, #00b7e1 0%, #0056dd 100%);
}

.tn-skip {
	position: absolute; left: 12px; top: -60px; z-index: 10000;
	background: var(--tn-navy); color: #fff !important; padding: 10px 16px; border-radius: 8px;
	font-family: var(--tn-font); transition: top .2s;
}
.tn-skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.tn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border-radius: 999px;
	font-family: var(--tn-font); font-size: 15px; font-weight: 600; line-height: 1.2;
	border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
	transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
	white-space: nowrap;
}
.tn-btn:hover { transform: translateY(-1px); }
.tn-btn:focus-visible { outline: 3px solid rgba(0, 183, 225, .5); outline-offset: 2px; }
.tn-btn--sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.tn-btn--primary { background: var(--tn-gradient); color: #fff !important; box-shadow: 0 6px 18px rgba(0, 86, 221, .28); }
.tn-btn--primary:hover { box-shadow: 0 10px 24px rgba(0, 86, 221, .36); }
.tn-btn--light { background: var(--tn-soft); color: var(--tn-text) !important; border-color: var(--tn-line); }
.tn-btn--ghost { background: transparent; color: var(--tn-primary) !important; border-color: var(--tn-primary); }
.tn-btn--outline { background: #fff; color: var(--tn-primary) !important; border-color: rgba(0, 86, 221, .35); }
.tn-btn--outline:hover { border-color: var(--tn-primary); }
.tn-btn--white { background: #fff; color: var(--tn-primary) !important; }
.tn-btn--line { background: var(--tn-green); color: #fff !important; }

/* ---------- Top bar + Header ---------- */
.tn-topbar { background: var(--tn-navy); color: rgba(255,255,255,.85); font-size: 14px; }
.tn-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.tn-topbar__name { font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-topbar__links { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.tn-topbar__links a { color: rgba(255,255,255,.9) !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
.tn-topbar__links a:hover { color: #fff !important; }
.tn-topbar__links .fa-line { color: var(--tn-green); font-size: 16px; }
.tn-topbar__icon { width: 28px; height: 28px; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); }

.tn-header {
	position: sticky; top: 0; z-index: 1000;
	background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--tn-line); transition: box-shadow .25s ease;
}
.tn-header.is-scrolled { box-shadow: 0 8px 24px rgba(11, 31, 68, .08); }
.tn-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.tn-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; min-width: 0; }
.tn-brand__mark { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1px var(--tn-line); background: #fff; flex-shrink: 0; }
.tn-brand__text { height: auto; width: 250px; max-width: 100%; }

.tn-nav { display: flex; align-items: center; gap: 20px; font-family: var(--tn-font); }
.tn-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tn-nav ul a {
	position: relative; display: block; padding: 10px 14px; border-radius: 10px;
	color: var(--tn-text) !important; font-size: 16px; font-weight: 500; text-decoration: none !important;
	transition: background-color .2s, color .2s;
}
.tn-nav ul a:hover { background: var(--tn-soft); color: var(--tn-primary) !important; }
.tn-nav ul a.is-active { color: var(--tn-primary) !important; font-weight: 600; }
.tn-nav ul a.is-active::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--tn-gradient);
}
.tn-burger {
	display: none; width: 44px; height: 44px; border: 1px solid var(--tn-line); border-radius: 12px; background: #fff;
	align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; flex-shrink: 0;
}
.tn-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--tn-navy); transition: transform .25s, opacity .2s; }
.tn-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tn-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tn-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tn-nav ul a, .tn-nav__cta { white-space: nowrap; }
/* จอ 992-1199px: ย่อโลโก้/ระยะห่าง ให้เมนูอยู่บรรทัดเดียว */
@media (min-width: 992px) and (max-width: 1199px) {
	.tn-header__inner { gap: 12px; }
	.tn-brand__mark { width: 42px; height: 42px; }
	.tn-brand__text { width: 190px; }
	.tn-nav { gap: 10px; }
	.tn-nav ul a { padding: 10px 9px; font-size: 15px; }
	.tn-nav ul a.is-active::after { left: 9px; right: 9px; }
	.tn-nav__cta { padding: 9px 14px; font-size: 14px; }
}
@media (max-width: 991px) {
	.tn-header__inner { min-height: 66px; }
	.tn-brand__mark { width: 40px; height: 40px; }
	.tn-brand__text { width: 210px; }
	.tn-burger { display: inline-flex; }
	.tn-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px 18px;
		background: #fff; border-bottom: 1px solid var(--tn-line); box-shadow: 0 16px 30px rgba(11, 31, 68, .1);
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.tn-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.tn-nav ul { flex-direction: column; align-items: stretch; }
	.tn-nav ul a { padding: 13px 14px; font-size: 17px; }
	.tn-nav ul a.is-active { background: var(--tn-soft); }
	.tn-nav ul a.is-active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
	.tn-nav__cta { width: 100%; }
}
@media (max-width: 575px) {
	.tn-topbar__name { display: none; }
	.tn-topbar__inner { justify-content: center; }
	.tn-topbar__links { gap: 14px; font-size: 13px; }
	.tn-brand { gap: 8px; }
	.tn-brand__mark { width: 36px; height: 36px; }
	.tn-brand__text { width: calc(100vw - 150px); max-width: 220px; }
}

/* ---------- Page hero ---------- */
.tn-hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(1200px 400px at 85% -10%, rgba(0, 183, 225, .55), transparent 60%), linear-gradient(135deg, #0b1f44 0%, #0043ad 60%, #0056dd 100%);
	padding: 44px 0 52px;
}
.tn-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
	background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
	background-size: 44px 44px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.tn-hero .container { position: relative; z-index: 1; }
.tn-crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; }
.tn-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); }
.tn-crumbs li + li::before { content: "/"; opacity: .5; }
.tn-crumbs a { color: rgba(255,255,255,.9) !important; text-decoration: none !important; }
.tn-crumbs a:hover { color: #fff !important; text-decoration: underline !important; }
.tn-hero__title { font-family: var(--tn-font); color: #fff !important; font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; line-height: 1.25; margin: 0 0 10px; letter-spacing: 0; text-transform: none; }
.tn-hero__sub { color: rgba(255,255,255,.85) !important; font-size: 17px; max-width: 720px; line-height: 1.7 !important; }

/* ---------- Sections ---------- */
.tn-section { padding: 56px 0; background: #fff; font-family: var(--tn-font); color: var(--tn-text); }
.tn-section--soft { background: var(--tn-soft); }
.tn-section--tight { padding-top: 0; }
.tn-narrow { max-width: 880px; }
.tn-eyebrow { color: var(--tn-primary) !important; font-weight: 700; letter-spacing: .12em; font-size: 13px; margin-bottom: 6px !important; text-transform: uppercase; }
.tn-section__title { font-family: var(--tn-font); font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--tn-navy); margin: 0 0 24px; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.tn-section__title--left { margin-bottom: 8px; }
.tn-lead { font-size: 17px; color: var(--tn-muted) !important; line-height: 1.8 !important; max-width: 820px; margin-bottom: 28px !important; }
.tn-muted { color: var(--tn-muted) !important; line-height: 1.7 !important; }
.tn-card { background: #fff; border: 1px solid var(--tn-line); border-radius: var(--tn-radius); box-shadow: var(--tn-shadow); }

/* ---------- Portfolio ---------- */
.tn-works { font-family: var(--tn-font); }
.tn-works__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; }
.tn-works__title { margin: 0 auto 0 0; font-size: 22px; color: var(--tn-navy); }
.tn-search { position: relative; flex: 1 1 320px; max-width: 460px; margin: 0; }
.tn-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--tn-muted); }
.tn-search input {
	width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--tn-line); border-radius: 999px;
	background: var(--tn-soft); font-family: var(--tn-font); font-size: 15px; color: var(--tn-text); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.tn-search input:focus { outline: none; background: #fff; border-color: var(--tn-primary); box-shadow: 0 0 0 4px rgba(0, 86, 221, .12); }
.tn-works__count { color: var(--tn-muted); font-size: 15px; }
.tn-works__toolbar .tn-btn { margin-left: auto; }
.tn-works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 991px) { .tn-works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 575px) { .tn-works__grid { grid-template-columns: 1fr; } }
.tn-work { margin: 0; }
.tn-work[hidden] { display: none !important; }
.tn-work__link {
	display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--tn-line); border-radius: var(--tn-radius);
	overflow: hidden; text-decoration: none !important; color: var(--tn-text) !important; box-shadow: 0 4px 14px rgba(11, 31, 68, .05);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tn-work__link:hover, .tn-work__link:focus-visible { transform: translateY(-6px); box-shadow: var(--tn-shadow-lg); border-color: transparent; }
.tn-work__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tn-soft); }
.tn-work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tn-work__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 31, 68, .35)); opacity: 0; transition: opacity .3s; }
.tn-work__link:hover .tn-work__media img { transform: scale(1.06); }
.tn-work__link:hover .tn-work__media::after { opacity: 1; }
.tn-work__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px 20px 20px; }
.tn-work__name { font-family: var(--tn-font); font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--tn-navy); margin: 0; letter-spacing: 0; text-transform: none; }
.tn-work__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 14px; color: var(--tn-muted); }
.tn-work__more { color: var(--tn-primary); font-weight: 600; white-space: nowrap; }
.tn-work__more i { transition: transform .2s; }
.tn-work__link:hover .tn-work__more i { transform: translateX(4px); }
.tn-works__empty { text-align: center; padding: 40px 0; color: var(--tn-muted) !important; }
.tn-works__more { text-align: center; margin-top: 32px; }

/* ---------- CTA band ---------- */
.tn-cta { padding: 0 0 64px; background: #fff; font-family: var(--tn-font); }
.tn-cta__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: 36px 40px; border-radius: 24px; color: #fff; background: var(--tn-gradient); box-shadow: 0 20px 40px rgba(0, 86, 221, .25);
}
.tn-cta__title { font-family: var(--tn-font); color: #fff !important; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; margin: 0 0 6px; letter-spacing: 0; text-transform: none; }
.tn-cta__text { color: rgba(255,255,255,.9) !important; }
.tn-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 575px) { .tn-cta__inner { padding: 28px 22px; } .tn-cta__actions, .tn-cta__actions .tn-btn { width: 100%; } }

/* ---------- Contact ---------- */
.tn-contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 991px) { .tn-contact { grid-template-columns: 1fr; } }
.tn-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
@media (max-width: 575px) { .tn-channels { grid-template-columns: 1fr; } }
.tn-channel {
	--c: var(--tn-primary);
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 10px; align-items: center;
	padding: 18px; border: 1px solid var(--tn-line); border-radius: var(--tn-radius); background: #fff;
	text-decoration: none !important; color: var(--tn-text) !important; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tn-channel:hover { transform: translateY(-3px); box-shadow: var(--tn-shadow); border-color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.tn-channel--line { --c: var(--tn-green); }
.tn-channel--msg { --c: var(--tn-messenger); }
.tn-channel--fb { --c: #1877f2; }
.tn-channel--mail { --c: #ea4335; }
.tn-channel--map { --c: #f59e0b; }
.tn-channel__icon {
	width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
	font-size: 20px; color: var(--c); background: var(--tn-soft); background: color-mix(in srgb, var(--c) 12%, #fff);
}
.tn-channel__body { display: flex; flex-direction: column; min-width: 0; }
.tn-channel__body small { color: var(--tn-muted); font-size: 13px; }
.tn-channel__body strong { font-size: 17px; font-weight: 600; color: var(--tn-navy); overflow-wrap: anywhere; }
.tn-channel__go { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--c); }
.tn-contact__side { display: flex; flex-direction: column; gap: 20px; }
.tn-qr { display: flex; align-items: center; gap: 18px; padding: 20px; }
.tn-qr img { width: 132px; height: 132px; border-radius: 12px; border: 1px solid var(--tn-line); object-fit: cover; flex-shrink: 0; }
.tn-qr div { display: flex; flex-direction: column; gap: 4px; }
.tn-qr strong { font-size: 18px; color: var(--tn-navy); }
.tn-qr span { color: var(--tn-green); font-weight: 600; }
.tn-qr small { color: var(--tn-muted); line-height: 1.6; }
.tn-facts { padding: 24px; }
.tn-facts__title { font-family: var(--tn-font); font-size: 19px; font-weight: 700; color: var(--tn-navy); margin: 0 0 14px; letter-spacing: 0; text-transform: none; }
.tn-facts dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; font-size: 15px; }
.tn-facts dt { color: var(--tn-muted); font-weight: 500; }
.tn-facts dd { margin: 0; color: var(--tn-text); line-height: 1.6; }
.tn-facts ul { margin: 0; padding-left: 18px; }
@media (max-width: 400px) { .tn-facts dl { grid-template-columns: 1fr; gap: 2px; } .tn-facts dd { margin-bottom: 10px; } }

/* ---------- Consent-gated embeds (Google Maps) ---------- */
.tn-embed { position: relative; border-radius: var(--tn-radius); overflow: hidden; background: var(--tn-soft); border: 1px solid var(--tn-line); }
.tn-embed--map { height: 420px; }
.tn-embed--flush { border-radius: 0; border: 0; }
.tn-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tn-embed iframe:not([src]) { display: none; }
.tn-embed__placeholder {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center;
	background: radial-gradient(circle at 30% 20%, rgba(0, 183, 225, .12), transparent 50%), var(--tn-soft); font-family: var(--tn-font);
}
.tn-embed__placeholder i { font-size: 40px; color: var(--tn-primary); }
.tn-embed__placeholder p { color: var(--tn-muted) !important; max-width: 420px; }
.tn-embed__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tn-embed.is-loaded .tn-embed__placeholder { display: none; }

/* ---------- FAQ ---------- */
.tn-faq { display: flex; flex-direction: column; gap: 12px; }
.tn-faq__item { background: #fff; border: 1px solid var(--tn-line); border-radius: var(--tn-radius-sm); transition: box-shadow .2s, border-color .2s; }
.tn-faq__item[open] { box-shadow: var(--tn-shadow); border-color: rgba(0, 86, 221, .25); }
.tn-faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; }
.tn-faq__item summary::-webkit-details-marker { display: none; }
.tn-faq__item summary h3 { font-family: var(--tn-font); font-size: 17px; font-weight: 600; color: var(--tn-navy); margin: 0; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.tn-faq__item summary i { color: var(--tn-primary); transition: transform .25s; flex-shrink: 0; }
.tn-faq__item[open] summary i { transform: rotate(180deg); }
.tn-faq__answer { padding: 0 22px 20px; }
.tn-faq__answer p { color: var(--tn-muted) !important; line-height: 1.8 !important; }

/* ---------- Policy pages ---------- */
.tn-policy { font-family: var(--tn-font); color: var(--tn-text); font-size: 16px; }
.tn-policy h2 { font-family: var(--tn-font); font-size: 22px; font-weight: 700; color: var(--tn-navy); margin: 36px 0 12px; scroll-margin-top: 100px; letter-spacing: 0; text-transform: none; }
.tn-policy h3 { font-family: var(--tn-font); font-size: 18px; font-weight: 600; color: var(--tn-navy); margin: 20px 0 8px; letter-spacing: 0; text-transform: none; }
.tn-policy p { margin: 0 0 14px !important; line-height: 1.85 !important; color: var(--tn-text); }
.tn-policy ul, .tn-policy ol { padding-left: 22px; margin: 0 0 16px; line-height: 1.85; }
.tn-policy a { color: var(--tn-primary); }
.tn-policy__updated { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tn-soft); color: var(--tn-muted) !important; font-size: 14px; }
.tn-policy__toc { padding: 20px 24px; margin: 8px 0 28px; }
.tn-policy__toc ol { margin: 8px 0 0; columns: 2; column-gap: 32px; }
@media (max-width: 575px) { .tn-policy__toc ol { columns: 1; } }
.tn-policy__contact { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; margin-top: 8px; }
.tn-policy__contact i { width: 18px; color: var(--tn-primary); }
.tn-rights li { margin-bottom: 6px; }
.tn-table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--tn-line); border-radius: var(--tn-radius-sm); }
.tn-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.tn-table th { background: var(--tn-soft); color: var(--tn-navy); font-weight: 600; text-align: left; }
.tn-table th, .tn-table td { padding: 12px 14px; border-bottom: 1px solid var(--tn-line); vertical-align: top; line-height: 1.6; }
.tn-table tr:last-child td { border-bottom: 0; }
.tn-table code { color: var(--tn-primary-dark); background: var(--tn-soft); padding: 2px 6px; border-radius: 6px; }
.tn-table__url { max-width: 260px; overflow-wrap: anywhere; font-size: 13px; color: var(--tn-muted); }

/* ---------- Floating contact (ไม่ต้องกด toggle) ---------- */
.kc_fab_wrapper { display: none !important; }
html .scroll-to-top { right: auto !important; left: 20px; bottom: 24px; border-radius: 12px; }
@media (max-width: 767px) { html .scroll-to-top { display: none !important; } }
.tn-fab {
	position: fixed; right: 20px; bottom: 24px; z-index: 990;
	display: flex; flex-direction: column; gap: 10px; font-family: var(--tn-font);
}
.tn-fab__item {
	--c: var(--tn-primary);
	display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
	background: rgba(255,255,255,.96); border: 1px solid var(--tn-line); box-shadow: 0 8px 24px rgba(11, 31, 68, .14);
	text-decoration: none !important; color: var(--tn-text) !important; transition: transform .2s, box-shadow .2s;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tn-fab__item:hover { transform: translateX(-4px); box-shadow: 0 12px 30px rgba(11, 31, 68, .2); }
.tn-fab__item--tel { --c: #ff7a00; }
.tn-fab__item--line { --c: var(--tn-green); }
.tn-fab__item--msg { --c: var(--tn-messenger); }
.tn-fab__item--map { --c: #ea4335; }
.tn-fab__icon {
	width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--c); color: #fff; font-size: 18px; flex-shrink: 0;
}
.tn-fab__item--line .tn-fab__icon { font-size: 22px; }
.tn-fab__item--tel .tn-fab__icon { animation: tn-ring 3.2s ease-in-out infinite; }
.tn-fab__text { display: flex; flex-direction: column; line-height: 1.25; }
.tn-fab__text strong { font-size: 14px; font-weight: 700; color: var(--tn-navy); }
.tn-fab__text small { font-size: 12.5px; color: var(--tn-muted); }
/* จอขนาดกลาง: แสดงเฉพาะไอคอน เพื่อไม่บังเนื้อหา (ชื่อปุ่มยังอ่านได้ผ่าน aria-label) */
@media (min-width: 768px) and (max-width: 1279px) {
	.tn-fab { right: 14px; }
	.tn-fab__item { padding: 5px; }
	.tn-fab__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.tn-fab__icon { width: 46px; height: 46px; }
}
@keyframes tn-ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 90% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 94% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .tn-fab__item--tel .tn-fab__icon { animation: none; } }

@media (max-width: 767px) {
	body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.tn-fab {
		left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
		border-top: 1px solid var(--tn-line); box-shadow: 0 -8px 24px rgba(11, 31, 68, .08);
		-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	}
	.tn-fab__item { flex: 1 1 0; flex-direction: column; gap: 4px; padding: 4px 2px; border: 0; border-radius: 12px; background: transparent; box-shadow: none; min-width: 0; }
	.tn-fab__item:hover { transform: none; box-shadow: none; background: var(--tn-soft); }
	.tn-fab__icon { width: 34px; height: 34px; font-size: 15px; }
	.tn-fab__item--line .tn-fab__icon { font-size: 18px; }
	.tn-fab__text { align-items: center; }
	.tn-fab__text strong { font-size: 12.5px; }
	.tn-fab__text small { display: none; }
}

/* ---------- Cookie consent (PDPA) ---------- */
.tn-cc { position: fixed; left: 20px; bottom: 24px; z-index: 1100; max-width: 460px; font-family: var(--tn-font); }
.tn-cc[hidden], .tn-ccm[hidden] { display: none !important; }
.tn-cc__box { background: #fff; border: 1px solid var(--tn-line); border-radius: 20px; box-shadow: var(--tn-shadow-lg); padding: 20px 22px; animation: tn-up .35s ease; }
.tn-cc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--tn-navy); font-size: 17px; }
.tn-cc__icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff4e0; color: #d97706; }
.tn-cc__text { font-size: 14px; color: var(--tn-muted) !important; line-height: 1.7 !important; margin-bottom: 16px !important; }
.tn-cc__text a { color: var(--tn-primary); text-decoration: underline; }
.tn-cc__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tn-cc__actions .tn-btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
@keyframes tn-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
	.tn-cc { left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }
	.tn-cc__box { padding: 16px; }
	.tn-cc__actions .tn-btn { flex: 1 1 auto; }
}

.tn-ccm { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11, 31, 68, .55); font-family: var(--tn-font); }
body.tn-ccm-open { overflow: hidden; }
.tn-ccm__panel { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--tn-shadow-lg); animation: tn-up .3s ease; }
.tn-ccm__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--tn-line); }
.tn-ccm__header h2 { font-family: var(--tn-font); font-size: 20px; font-weight: 700; color: var(--tn-navy); margin: 0; letter-spacing: 0; text-transform: none; }
.tn-ccm__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tn-soft); font-size: 24px; line-height: 1; color: var(--tn-navy); cursor: pointer; }
.tn-ccm__body { padding: 18px 22px; overflow-y: auto; }
.tn-ccm__body > p { font-size: 14px; color: var(--tn-muted) !important; line-height: 1.7 !important; margin-bottom: 12px !important; }
.tn-ccm__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--tn-line); margin: 0; cursor: pointer; }
.tn-ccm__row strong { display: block; color: var(--tn-navy); font-size: 15px; }
.tn-ccm__row small { display: block; color: var(--tn-muted); font-size: 13px; line-height: 1.6; margin-top: 2px; }
.tn-ccm__always { color: var(--tn-green); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tn-ccm__footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--tn-line); }
.tn-ccm__footer .tn-btn { min-height: 40px; font-size: 14px; }
@media (max-width: 575px) { .tn-ccm__footer .tn-btn { flex: 1 1 100%; } }
.tn-switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.tn-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.tn-switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfd6e3; transition: background-color .2s; }
.tn-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.tn-switch input:checked + span { background: var(--tn-primary); }
.tn-switch input:checked + span::after { transform: translateX(20px); }
.tn-switch input:focus-visible + span { outline: 3px solid rgba(0, 183, 225, .5); outline-offset: 2px; }

/* ---------- Admin ---------- */
.tn-admin { background: var(--tn-soft); }
.tn-admin__card { padding: 24px; margin-bottom: 20px; }
.tn-admin__card h2 { font-family: var(--tn-font); font-size: 20px; font-weight: 700; color: var(--tn-navy); margin: 0 0 8px; letter-spacing: 0; text-transform: none; }
.tn-admin__card > .tn-muted { margin-bottom: 16px !important; font-size: 14px; }
.tn-field { margin-bottom: 16px; }
.tn-field label { display: block; font-weight: 600; color: var(--tn-navy); margin-bottom: 6px; font-size: 15px; }
.tn-field small { display: block; color: var(--tn-muted); margin-top: 6px; font-size: 13px; line-height: 1.6; }
.tn-field .form-control { border-radius: 10px; min-height: 44px; font-family: var(--tn-font); }
.tn-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 767px) { .tn-grid-2 { grid-template-columns: 1fr; } }
.tn-og { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 767px) { .tn-og { grid-template-columns: 1fr; } }
.tn-og__preview { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; border: 1px solid var(--tn-line); background: #fff; }
.tn-check { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.tn-admin__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin: 4px 0 24px; }
.tn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 0 20px; }
@media (max-width: 767px) { .tn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tn-stat { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.tn-stat small { color: var(--tn-muted); font-size: 14px; }
.tn-stat strong { font-size: 28px; color: var(--tn-navy); }
.tn-stat span { font-size: 13px; color: var(--tn-muted); }

/* ---------- Home: intro + services ---------- */
.tn-intro { padding: 56px 0 64px; background: #fff; font-family: var(--tn-font); color: var(--tn-text); }
.tn-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
@media (max-width: 991px) { .tn-intro__grid { grid-template-columns: 1fr; gap: 32px; } }
.tn-intro__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tn-intro__brand img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px var(--tn-line), var(--tn-shadow); background: #fff; }
.tn-intro__brand .tn-eyebrow { margin: 0 !important; padding: 6px 12px; border-radius: 999px; background: rgba(0, 86, 221, .08); letter-spacing: .02em; text-transform: none; font-size: 14px; }
.tn-intro__title { font-family: var(--tn-font); font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.3; color: var(--tn-navy); margin: 0 0 12px; letter-spacing: 0; text-transform: none; }
.tn-intro__tagline { font-size: 19px; font-weight: 500; line-height: 1.6 !important; color: var(--tn-primary) !important; margin-bottom: 16px !important; }
.tn-intro__desc { font-size: 16px; color: var(--tn-muted) !important; line-height: 1.85 !important; margin-bottom: 20px !important; }
.tn-intro__points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.tn-intro__points li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--tn-text); }
.tn-intro__points i { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: var(--tn-gradient); flex-shrink: 0; }
.tn-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tn-intro__actions { align-items: center; gap: 14px 16px; }

/* ปุ่ม CTA แบบมีลูกเล่น: ไอคอนในวงกลม, แสงวิ่งผ่าน, วงคลื่นตอนกด */
.tn-cta-btn {
	--c1: #00b7e1; --c2: #0056dd; --glow: rgba(0, 86, 221, .35);
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; gap: 12px;
	min-height: 62px; padding: 8px 24px 8px 8px; border-radius: 999px;
	background: linear-gradient(120deg, var(--c1), var(--c2)); background-size: 160% 100%; background-position: 0% 0;
	color: #fff !important; text-decoration: none !important; font-family: var(--tn-font);
	box-shadow: 0 10px 24px -6px var(--glow), inset 0 1px 0 rgba(255,255,255,.25);
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background-position .5s ease;
}
.tn-cta-btn--line { --c1: #2ee07a; --c2: #06b14c; --glow: rgba(6, 177, 76, .35); }
.tn-cta-btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
	transform: translateX(-120%);
}
.tn-cta-btn:hover, .tn-cta-btn:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 34px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.3); background-position: 100% 0; }
.tn-cta-btn:hover::before, .tn-cta-btn:focus-visible::before { transform: translateX(120%); transition: transform .8s ease; }
.tn-cta-btn:active { transform: translateY(-1px) scale(.98); }
.tn-cta-btn:focus-visible { outline: 3px solid rgba(0, 183, 225, .5); outline-offset: 3px; }
.tn-cta-btn--call::before { animation: tn-shine 4.5s ease-in-out 1.5s infinite; }
@keyframes tn-shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.tn-cta-btn--msg { --c1: #00b2ff; --c2: #7a3cff; --glow: rgba(122, 60, 255, .3); }

/* แถบปุ่มติดต่อ 3 ช่อง */
.tn-cta-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991px) { .tn-cta-row { grid-template-columns: 1fr; gap: 12px; } }
.tn-cta-row .tn-cta-btn { width: 100%; min-height: 72px; padding-right: 14px; border-radius: 22px; }
.tn-cta-row .tn-cta-btn__icon { width: 52px; height: 52px; border-radius: 16px; }
.tn-cta-row .tn-cta-btn__text { flex: 1; }
.tn-cta-row .tn-cta-btn__text strong { font-size: 19px; }
.tn-cta-btn__go {
	width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.18); font-size: 14px; transition: background-color .3s;
}
.tn-cta-btn:hover .tn-cta-btn__go { background: rgba(255,255,255,.32); }
.tn-cta-btn:hover .tn-cta-btn__go i { animation: tn-arrow .5s ease forwards; }
.tn-cta-btn--line .tn-cta-btn__icon i { transition: transform .4s; }
.tn-cta-btn--msg .tn-cta-btn__icon { color: #7a3cff; font-size: 22px; }
.tn-cta-btn--msg:hover .tn-cta-btn__icon i { animation: tn-wiggle .6s ease; }
@keyframes tn-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.1); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }

.tn-cta-btn__icon {
	position: relative; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: var(--c2); font-size: 18px; box-shadow: 0 4px 10px rgba(0,0,0,.12);
	transition: transform .4s cubic-bezier(.3,1.6,.5,1);
}
.tn-cta-btn--line .tn-cta-btn__icon { font-size: 24px; }
.tn-cta-btn:hover .tn-cta-btn__icon { transform: rotate(-12deg) scale(1.08); }
.tn-cta-btn--call .tn-cta-btn__icon::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85);
	animation: tn-pulse 2s ease-out infinite;
}
.tn-cta-btn--call .tn-cta-btn__icon i { animation: tn-ring 3.2s ease-in-out infinite; }
@keyframes tn-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }

.tn-cta-btn__text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.tn-cta-btn__text small { font-size: 12.5px; font-weight: 500; opacity: .9; letter-spacing: .01em; }
.tn-cta-btn__text strong { font-size: 18px; font-weight: 700; letter-spacing: .02em; }

.tn-ripple { position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255,255,255,.55); pointer-events: none; animation: tn-ripple .65s ease-out forwards; }
@keyframes tn-ripple { to { transform: scale(40); opacity: 0; } }

/* ลิงก์ "ดูผลงาน": เส้นใต้วิ่ง + ลูกศรในวงกลมเลื่อน */
.tn-cta-link {
	display: inline-flex; align-items: center; gap: 12px; padding: 8px 4px;
	color: var(--tn-navy) !important; font-family: var(--tn-font); font-weight: 600; font-size: 16px; text-decoration: none !important;
}
.tn-cta-link__label {
	background: linear-gradient(var(--tn-primary), var(--tn-primary)) left bottom / 0% 2px no-repeat;
	padding-bottom: 2px; transition: background-size .35s ease, color .2s;
}
.tn-cta-link__arrow {
	position: relative; overflow: hidden; width: 40px; height: 40px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	border: 2px solid rgba(0, 86, 221, .25); color: var(--tn-primary); transition: background-color .3s, border-color .3s, color .3s;
}
.tn-cta-link__arrow i { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.tn-cta-link:hover .tn-cta-link__label, .tn-cta-link:focus-visible .tn-cta-link__label { background-size: 100% 2px; color: var(--tn-primary); }
.tn-cta-link:hover .tn-cta-link__arrow, .tn-cta-link:focus-visible .tn-cta-link__arrow { background: var(--tn-primary); border-color: var(--tn-primary); color: #fff; }
.tn-cta-link:hover .tn-cta-link__arrow i { animation: tn-arrow .5s ease forwards; }
@keyframes tn-arrow { 0% { transform: translateX(0); } 49% { transform: translateX(28px); } 50% { transform: translateX(-28px); } 100% { transform: translateX(0); } }

@media (max-width: 575px) {
	.tn-intro__actions .tn-cta-btn { flex: 1 1 100%; }
	.tn-intro__actions .tn-cta-link { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.tn-cta-btn, .tn-cta-btn::before, .tn-cta-btn__icon, .tn-cta-btn__icon i, .tn-cta-btn__icon::after, .tn-cta-btn__go i, .tn-cta-link__arrow i { animation: none !important; transition: none !important; }
}

.tn-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
.tn-mosaic__item { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--tn-soft); }
.tn-mosaic__item:first-child { grid-column: span 2; grid-row: span 2; border-radius: 20px; }
.tn-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tn-mosaic__item:hover img { transform: scale(1.07); }
.tn-mosaic__item::after { content: "\f00e"; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.9); color: var(--tn-navy); font-size: 13px; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.tn-mosaic__item:hover::after { opacity: 1; transform: none; }
@media (max-width: 575px) { .tn-mosaic { grid-auto-rows: 100px; gap: 8px; } }

.tn-services { margin-top: 64px; }
.tn-services__head { text-align: center; }
.tn-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 991px) { .tn-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .tn-services__grid { grid-template-columns: 1fr; } }
.tn-service {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; overflow: hidden;
	background: #fff; border: 1px solid var(--tn-line); border-radius: var(--tn-radius); text-decoration: none !important; color: var(--tn-text) !important;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tn-service::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--tn-gradient); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.tn-service:hover { transform: translateY(-6px); box-shadow: var(--tn-shadow-lg); border-color: transparent; }
.tn-service:hover::before { transform: scaleX(1); }
.tn-service__icon { width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--tn-primary); background: rgba(0, 86, 221, .08); transition: background-color .25s, color .25s; }
.tn-service:hover .tn-service__icon { background: var(--tn-gradient); color: #fff; }
.tn-service__name { font-family: var(--tn-font); font-size: 19px; font-weight: 700; color: var(--tn-navy); margin: 6px 0 0; letter-spacing: 0; text-transform: none; line-height: 1.4; }
.tn-service__desc { font-size: 15px; color: var(--tn-muted) !important; line-height: 1.75 !important; flex: 1; }
.tn-service__more { font-size: 14px; font-weight: 600; color: var(--tn-primary); }
.tn-service__more i { transition: transform .2s; }
.tn-service:hover .tn-service__more i { transform: translateX(4px); }

/* ---------- Project detail (pfd) ---------- */
.tn-project { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 991px) { .tn-project { grid-template-columns: 1fr; } }
.tn-project__admin { margin-bottom: 16px; }
.tn-project__cover { display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--tn-shadow); background: var(--tn-soft); }
.tn-project__cover img { width: 100%; height: auto; max-height: 620px; object-fit: cover; transition: transform .6s ease; }
.tn-project__cover:hover img { transform: scale(1.02); }
.tn-project__content { margin-top: 28px; font-size: 16px; line-height: 1.9; color: var(--tn-text); }
.tn-project__content p { margin: 0 0 14px !important; line-height: 1.9 !important; }
.tn-project__content img { max-width: 100%; height: auto; border-radius: 12px; }
.tn-project__gallery { margin-top: 40px; }
.tn-project__gallery .tn-muted { font-size: 16px; font-weight: 400; }
.tn-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1199px) { .tn-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .tn-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.tn-gallery__item { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--tn-soft); }
.tn-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .2s; }
.tn-gallery__item:hover img { transform: scale(1.08); opacity: .92; }
.tn-project__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
@media (max-width: 991px) { .tn-project__side { position: static; } }
.tn-project__card { padding: 22px; }
.tn-project__card-title { font-family: var(--tn-font); font-size: 18px; font-weight: 700; color: var(--tn-navy); margin: 0 0 14px; letter-spacing: 0; text-transform: none; }
.tn-project__facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 15px; }
.tn-project__facts dt { color: var(--tn-muted); font-weight: 500; white-space: nowrap; }
.tn-project__facts dt i { width: 18px; color: var(--tn-primary); }
.tn-project__facts dd { margin: 0; color: var(--tn-text); }
.tn-project__cta { background: linear-gradient(160deg, #f2f7ff 0%, #ffffff 70%); }
.tn-project__cta p { color: var(--tn-muted) !important; font-size: 15px; line-height: 1.7 !important; margin-bottom: 14px !important; }
.tn-project__cta .tn-btn { width: 100%; margin-top: 8px; }
.tn-share { display: flex; gap: 10px; }
.tn-share__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tn-line); background: #fff; color: var(--tn-navy) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; text-decoration: none !important; transition: transform .2s, background-color .2s, color .2s; }
.tn-share__btn:hover { transform: translateY(-2px); }
.tn-share__btn--fb:hover { background: #1877f2; color: #fff !important; border-color: #1877f2; }
.tn-share__btn--line:hover { background: var(--tn-green); color: #fff !important; border-color: var(--tn-green); }
.tn-share__btn.is-copied { background: var(--tn-primary); color: #fff !important; border-color: var(--tn-primary); }

/* ---------- Lightbox ---------- */
.tn-lb { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; background: rgba(6, 14, 32, .92); font-family: var(--tn-font); }
.tn-lb[hidden] { display: none; }
.tn-lb__img { max-width: calc(100vw - 120px); max-height: calc(100vh - 120px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); object-fit: contain; }
.tn-lb__btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .2s; }
.tn-lb__btn:hover { background: rgba(255,255,255,.25); }
.tn-lb__close { top: 16px; right: 16px; font-size: 26px; }
.tn-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.tn-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.tn-lb__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 14px; }
@media (max-width: 575px) { .tn-lb__img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; } .tn-lb__prev, .tn-lb__next { top: auto; bottom: 10px; transform: none; } .tn-lb__prev { left: 16px; } .tn-lb__next { right: 16px; } }
body.tn-lb-open { overflow: hidden; }

/* ---------- Footer ---------- */
#footer.tn-footer { margin-top: 0; padding: 0; border-top: 0; background: var(--tn-navy); color: rgba(255,255,255,.75); font-family: var(--tn-font); font-size: 15px; position: relative; overflow: hidden; }
.tn-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tn-gradient); }
.tn-footer::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 183, 225, .18), transparent 65%); pointer-events: none; }
.tn-footer .container { position: relative; z-index: 1; }
.tn-footer a { color: rgba(255,255,255,.8) !important; text-decoration: none !important; transition: color .2s; }
.tn-footer a:hover { color: #fff !important; }
.tn-footer__grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
@media (max-width: 991px) { .tn-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 575px) { .tn-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 48px 0 28px; } .tn-footer__brand, .tn-footer__contact { grid-column: 1 / -1; } }
.tn-footer__logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tn-footer__logo img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 2px; }
.tn-footer__logo span { display: flex; flex-direction: column; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.4; }
.tn-footer__logo small { font-weight: 500; font-size: 11.5px; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.tn-footer__about { color: rgba(255,255,255,.7) !important; line-height: 1.8 !important; font-size: 14.5px; margin-bottom: 18px !important; }
.tn-footer__social { display: flex; gap: 10px; }
.tn-footer__social a { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); font-size: 16px; transition: background-color .2s, transform .2s; }
.tn-footer__social a:hover { background: var(--tn-primary); transform: translateY(-2px); }
.tn-footer__title { font-family: var(--tn-font); font-size: 16px; font-weight: 700; color: #fff; margin: 4px 0 18px; letter-spacing: 0; text-transform: none; }
.tn-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tn-footer__col li { line-height: 1.5; }
.tn-footer__col nav ul a, .tn-footer__col ul a { display: inline-block; }
.tn-footer__col ul a:hover { transform: translateX(3px); }
.tn-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.tn-footer__contact li i { width: 18px; margin-top: 4px; color: var(--tn-accent); text-align: center; }
.tn-footer__contact li a { overflow-wrap: anywhere; }
.tn-footer__qr { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.tn-footer__qr img { width: 72px; height: 72px; border-radius: 8px; background: #fff; }
.tn-footer__qr span { color: #fff; font-weight: 600; line-height: 1.4; }
.tn-footer__qr small { color: rgba(255,255,255,.6); font-weight: 400; }
.tn-footer__tags { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0 24px; }
.tn-footer__tags summary { list-style: none; cursor: pointer; color: rgba(255,255,255,.7); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.tn-footer__tags summary::-webkit-details-marker { display: none; }
.tn-footer__tags summary i { font-size: 11px; transition: transform .2s; }
.tn-footer__tags[open] summary i { transform: rotate(180deg); }
.tn-footer__tags div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tn-footer__tags div a { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.tn-footer__tags div a:hover { background: rgba(255,255,255,.14); }
.tn-footer__bottom { background: rgba(0,0,0,.22); padding: 18px 0; font-size: 13.5px; }
.tn-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.tn-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tn-footer__stats { color: rgba(255,255,255,.55); }
.tn-footer__stats i { margin-right: 4px; }

/* สไลด์รูปกลางหน้าแรก: ย้ายลูกศรเข้ามาในจอ (เดิมล้นขอบขวาบนมือถือ) */
.slide-center .slick-prev { left: 8px; z-index: 2; }
.slide-center .slick-next { right: 8px; z-index: 2; }
