/*
 * WOW Cha-Am theme: base, header, footer, page layouts and article content.
 * Colours and sizes come from the --wow-* tokens in the WOW Cha-Am Core plugin
 * (wow-core.css). The fallbacks below keep the theme readable without it.
 */

:root {
	--wowt-header-h: 76px;
	--wowt-logo-w: 148px;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--wowt-header-h) + 16px); }
body {
	margin: 0; background: #fff; color: var(--wow-text, #1d2b3f);
	font: 400 1rem/1.7 var(--wow-font, "Roboto", "Noto Sans Thai", system-ui, sans-serif);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--wow-navy, #0f2e5c); font-family: var(--wow-font-head, "Prompt", "Noto Sans Thai", sans-serif); font-weight: 600; line-height: 1.3; }
/* Standard heading scale (tokens from wow-core.css); components set their own sizes by class. */
h1 { font-size: var(--wow-fs-h1, 2.4rem); font-weight: 700; }
h2 { font-size: var(--wow-fs-h2, 1.9rem); font-weight: 700; }
h3 { font-size: var(--wow-fs-h3, 1.4rem); }
h4 { font-size: var(--wow-fs-h4, 1.2rem); }
h5 { font-size: var(--wow-fs-h5, 1.06rem); }
h6 { font-size: var(--wow-fs-h6, 1rem); }
small { font-size: var(--wow-fs-small, .875rem); }
p { margin: 0 0 1em; }
a { color: var(--wow-primary, #0a6cdb); }
img, video, iframe { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
::placeholder { color: var(--wow-muted, #5b6b82); opacity: 1; } /* 4.5:1 on white and soft blue */
:focus-visible { outline: 3px solid var(--wow-yellow, #ffd23f); outline-offset: 2px; }
/* Two-tone keyboard focus ring: yellow outline + navy inner ring, visible on light and dark backgrounds. */
:root :focus-visible:not(input, textarea, select) { box-shadow: 0 0 0 2px var(--wow-navy, #0f2e5c); }
:root .wowt-skip:focus-visible, :root .wowt-main:focus-visible { box-shadow: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wowt-main { display: block; min-height: 50vh; }
.wowt-main:focus { outline: none; }
.wowt-pad { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px); }
body.wowt-lock { overflow: hidden; }

.wowt-skip { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--wow-navy, #0f2e5c); color: #fff; text-decoration: none; }
.wowt-skip:focus { top: 12px; outline: 3px solid var(--wow-yellow, #ffd23f); outline-offset: 2px; }

/* Header ----------------------------------------------------------------- */
.wowt-header {
	position: sticky; top: 0; z-index: 900; background: #fff;
	box-shadow: 0 1px 0 var(--wow-line, #e3eaf3); transition: box-shadow .2s;
}
.admin-bar .wowt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wowt-header { top: 0; } }
.wowt-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 46, 92, .08); }
.wowt-header .wowt-header__inner { max-width: 1480px; }
.wowt-header__inner { display: flex; align-items: center; gap: 20px; height: var(--wowt-header-h); }

.wowt-header__brand { position: relative; flex: none; width: var(--wowt-logo-w); align-self: stretch; }
.wowt-header__brand .wowt-logo {
	position: absolute; top: 0; left: -14px; display: flex; align-items: flex-end; justify-content: center;
	width: calc(var(--wowt-logo-w) + 28px); padding: 6px 14px 12px; background: #fff;
	border-radius: 0 0 28px 28px; box-shadow: 0 10px 22px rgba(15, 46, 92, .10); transition: transform .25s;
}
.wowt-header__brand .wowt-logo img { display: block; width: 100%; height: auto; }
.wowt-header.is-scrolled .wowt-header__brand .wowt-logo { transform: scale(.82); transform-origin: top center; }
.wowt-logo img { max-height: 120px; object-fit: contain; }

/* Flat logo (WOW Header widget option): logo sits inside the bar. */
.wowt-header--flat .wowt-header__brand { display: flex; align-items: center; width: auto; }
.wowt-header--flat .wowt-header__brand .wowt-logo { position: static; width: var(--wowt-logo-w); padding: 0; background: none; border-radius: 0; box-shadow: none; }
.wowt-header--flat .wowt-header__brand .wowt-logo img { max-height: calc(var(--wowt-header-h) - 12px); width: auto; max-width: 100%; }
.wowt-header--flat.is-scrolled .wowt-header__brand .wowt-logo { transform: none; }
.wowt-header:not(.wowt-header--sticky) { position: relative; }

/* Header built with Elementor Pro Theme Builder: the location wrapper sticks. */
.elementor-location-header:has(.wowt-header--sticky) { position: sticky; top: 0; z-index: 900; }
.admin-bar .elementor-location-header:has(.wowt-header--sticky) { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header:has(.wowt-header--sticky) { top: 0; } }
.elementor-location-header .wowt-header { position: relative; top: auto; }
.elementor-widget-wowt-header, .elementor-widget-wowt-footer { width: 100%; }

/* Main menu */
.wowt-drawer { flex: 1 0 auto; }
.wowt-drawer__head, .wowt-drawer__foot { display: none; }
.wowt-nav { height: 100%; }
.wowt-menu { display: flex; align-items: center; gap: clamp(2px, .9vw, 16px); margin: 0; padding: 0 0 0 clamp(8px, 1.6vw, 28px); list-style: none; }
.wowt-menu > li { position: relative; display: flex; align-items: center; }
.wowt-menu a { display: block; color: var(--wow-text, #1d2b3f); text-decoration: none; white-space: nowrap; }
.wowt-menu > li > a { position: relative; padding: 24px 4px; font-weight: 500; font-size: .98rem; }
.wowt-menu > li > a::after {
	content: ""; position: absolute; left: 4px; right: 4px; bottom: 16px; height: 2.5px; border-radius: 2px;
	background: var(--wow-primary, #0a6cdb); transform: scaleX(0); transition: transform .2s;
}
.wowt-menu > li > a:hover, .wowt-menu > .current-menu-item > a, .wowt-menu > .current-menu-ancestor > a, .wowt-menu > .current_page_parent > a { color: var(--wow-navy, #0f2e5c); }
.wowt-menu > li > a:hover::after, .wowt-menu > .current-menu-item > a::after, .wowt-menu > .current-menu-ancestor > a::after, .wowt-menu > .current_page_parent > a::after { transform: scaleX(1); }
.wowt-menu > .current-menu-item > a, .wowt-menu > .current-menu-ancestor > a { font-weight: 600; }

.wowt-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: -2px; padding: 0; border: 0; background: none; color: var(--wow-muted, #5b6b82); cursor: pointer; }
.wowt-sub-toggle .wow-icon { width: 15px; height: 15px; transition: transform .2s; }
.wowt-menu .sub-menu {
	position: absolute; top: calc(100% - 8px); left: -14px; z-index: 10; min-width: 230px; margin: 0; padding: 8px;
	list-style: none; background: #fff; border: 1px solid var(--wow-line, #e3eaf3); border-radius: var(--wow-radius, 14px);
	box-shadow: var(--wow-shadow-lg, 0 14px 40px rgba(15, 46, 92, .14));
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.wowt-menu .sub-menu a { padding: 9px 12px; border-radius: 10px; font-size: .95rem; }
.wowt-menu .sub-menu a:hover, .wowt-menu .sub-menu .current-menu-item > a { background: var(--wow-sky-soft, #eaf4fd); color: var(--wow-primary, #0a6cdb); }
/* Menu colours from the WOW Header widget (variables, so desktop and the mobile drawer stay separate). */
@media (min-width: 1025px) {
	.wowt-menu > li > a { color: var(--wowt-menu-color, var(--wow-text, #1d2b3f)); }
	.wowt-menu > li > a:hover { color: var(--wowt-menu-hover, var(--wow-navy, #0f2e5c)); }
	.wowt-menu > .current-menu-item > a, .wowt-menu > .current-menu-ancestor > a, .wowt-menu > .current_page_parent > a { color: var(--wowt-menu-active, var(--wow-navy, #0f2e5c)); }
	.wowt-menu > li > a::after { background: var(--wowt-menu-line, var(--wow-primary, #0a6cdb)); }
	.wowt-menu > li > .wowt-sub-toggle { color: var(--wowt-menu-arrow, var(--wow-muted, #5b6b82)); }
	.wowt-menu > li:hover > .sub-menu, .wowt-menu > li:focus-within > .sub-menu, .wowt-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.wowt-menu > li:hover > .wowt-sub-toggle .wow-icon, .wowt-menu > li.is-open > .wowt-sub-toggle .wow-icon { transform: rotate(180deg); }
}

/* Header actions */
.wowt-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wowt-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--wow-navy, #0f2e5c); cursor: pointer; transition: background .2s;
}
.wowt-icon-btn:hover, .wowt-icon-btn[aria-expanded="true"] { background: var(--wow-bg-soft, #f5f9fe); }
.wowt-icon-btn .wow-icon { width: 21px; height: 21px; }
.wowt-burger { display: none; }

.wowt-trip { position: relative; }
.wowt-count {
	display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: 999px; background: var(--wow-yellow, #ffd23f); color: var(--wow-navy, #0f2e5c); font-size: .75rem; font-weight: 700; line-height: 1;
}
/* Badge: always a true circle (grows only past two digits). */
.wowt-count { box-sizing: border-box; width: 20px; min-width: 20px; padding: 0; aspect-ratio: 1; flex: none; }
.wowt-count[data-len="3"] { font-size: .6rem; }
.wowt-trip .wowt-count { position: absolute; top: -8px; right: -8px; }
/* Has places: red "liked" button. */
.wowt-trip.has-items, .wowt-trip.has-items:hover, .wowt-trip.has-items:focus-visible { background: #e5384f; border-color: #e5384f; color: #fff; }
.wowt-trip.has-items .wow-icon { fill: currentColor; }
.wowt-trip--icon .wowt-trip__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wowt-trip--icon { width: 44px; padding: 0; }
.wowt-login .wow-icon, .wowt-trip .wow-icon { width: 19px; height: 19px; }

/* Language switcher (TranslatePress or any shortcode) */
.wowt-lang { display: flex; align-items: center; min-height: 40px; padding: 0 6px; border-radius: 999px; background: var(--wow-bg-soft, #f5f9fe); font-size: .9rem; font-weight: 500; }
.wowt-lang .trp-language-switcher { width: auto !important; }
.wowt-lang .trp-language-switcher > div { border: 0 !important; background: transparent !important; padding: 6px 22px 6px 8px !important; }
.wowt-lang .trp-ls-shortcode-language { background: #fff !important; border-radius: 10px; box-shadow: var(--wow-shadow, 0 6px 22px rgba(15, 46, 92, .08)); }
.wowt-lang img.trp-flag-image { border-radius: 3px; }
.wowt-lang--wowtr { min-height: 0; padding: 0; background: none; } /* wow-translate draws its own buttons */

/* Popovers (account, accessibility) */
.wowt-pop { position: relative; }
.wowt-pop__panel {
	position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; min-width: 240px; margin: 0; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--wow-line, #e3eaf3); border-radius: var(--wow-radius, 14px); box-shadow: var(--wow-shadow-lg, 0 14px 40px rgba(15, 46, 92, .14));
}
.wowt-account__btn {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--wow-line, #e3eaf3);
	border-radius: 999px; background: #fff; color: var(--wow-navy, #0f2e5c); font-weight: 500; cursor: pointer;
}
.wowt-account__btn img { width: 34px; height: 34px; border-radius: 50%; }
.wowt-account__btn .wow-icon { width: 16px; height: 16px; color: var(--wow-muted, #5b6b82); }
.wowt-account__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v1.7: photo only by default (initial letter when there is none); the name heads the menu.
 * WOW Header → "แสดงชื่อข้างรูป" (per device) sets --wowt-acc-show / --wowt-acc-pad to show the name and arrow again. */
.wowt-avatar { position: relative; display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--wow-primary, #0a6cdb); color: #fff; font: 600 .95rem/1 var(--wow-font-head, inherit); }
.wowt-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.wowt-account__btn { padding: var(--wowt-acc-pad, 4px); }
.wowt-account__btn.wowt-account--labeled { --wowt-acc-show: inline-block; --wowt-acc-pad: 4px 12px 4px 4px; }
.wowt-account__btn > .wowt-account__name, .wowt-account__btn > .wow-icon { display: var(--wowt-acc-show, none); }
.wowt-account__who { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 8px 12px 12px; border-bottom: 1px solid var(--wow-line, #e3eaf3); }
.wowt-account__who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.wowt-account__who strong { overflow: hidden; color: var(--wow-navy, #0f2e5c); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wowt-account__who small { color: var(--wow-muted, #5b6b82); font-size: .8rem; }
.wowt-account__menu a, .wowt-drawer__account a {
	display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--wow-text, #1d2b3f); text-decoration: none; font-size: .95rem;
}
.wowt-account__menu a:hover, .wowt-drawer__account a:hover { background: var(--wow-sky-soft, #eaf4fd); color: var(--wow-primary, #0a6cdb); }
.wowt-account__menu .wow-icon, .wowt-drawer__account .wow-icon { width: 18px; height: 18px; color: var(--wow-primary, #0a6cdb); }

.wowt-a11y-dock { position: fixed; right: 0; top: 50%; z-index: 890; transform: translateY(-50%); }
.wowt-a11y-btn {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 48px; padding: 0; border: 0; border-radius: 12px 0 0 12px;
	background: var(--wow-navy, #0f2e5c); color: #fff; box-shadow: var(--wow-shadow, 0 6px 22px rgba(15, 46, 92, .2)); cursor: pointer;
}
.wowt-a11y-btn:hover, .wowt-a11y-btn[aria-expanded="true"] { background: var(--wow-primary, #0a6cdb); }
.wowt-a11y-btn .wow-icon { width: 24px; height: 24px; }
.wowt-a11y-dock .wowt-pop__panel { top: 50%; right: calc(100% + 8px); transform: translateY(-50%); }
.wowt-a11y { padding: 14px; }
.wowt-a11y__title { margin: 0 0 10px; font-weight: 600; color: var(--wow-navy, #0f2e5c); }
.wowt-a11y__row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: .9rem; }
.wowt-a11y__row span { flex: 1; }
.wowt-a11y button { min-width: 40px; height: 36px; border: 1px solid var(--wow-line, #e3eaf3); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; }
.wowt-a11y button:hover, .wowt-a11y button[aria-pressed="true"] { border-color: var(--wow-primary, #0a6cdb); color: var(--wow-primary, #0a6cdb); background: var(--wow-sky-soft, #eaf4fd); }
.wowt-a11y__contrast { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.wowt-a11y__contrast .wow-icon { width: 18px; height: 18px; }

/* Search panel */
.wowt-search { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; padding: 16px 0; background: #fff; border-top: 1px solid var(--wow-line, #e3eaf3); box-shadow: 0 16px 30px rgba(15, 46, 92, .10); }
.wowt-search__form, .wowt-search-inline { display: flex; align-items: center; gap: 10px; }
.wowt-search__form > .wow-icon, .wowt-search-inline > .wow-icon { width: 22px; height: 22px; color: var(--wow-primary, #0a6cdb); flex: none; }
.wowt-search__form input, .wowt-search-inline input {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1.5px solid var(--wow-line, #e3eaf3); border-radius: 999px; background: var(--wow-bg-soft, #f5f9fe); font-size: 1rem;
}
.wowt-search__form input:focus, .wowt-search-inline input:focus { outline: none; border-color: var(--wow-primary, #0a6cdb); background: #fff; }
.wowt-search-inline { max-width: 640px; margin-bottom: 24px; }
.wowt-search-map { margin: -8px 0 24px; }

.wowt-backdrop { position: fixed; inset: 0; z-index: 950; background: rgba(15, 46, 92, .45); }

/* Mobile header + drawer */
@media (max-width: 1024px) {
	:root { --wowt-header-h: 68px; --wowt-logo-w: 118px; }
	.wowt-burger { display: inline-flex; }
	.wowt-drawer {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 960; display: flex; flex-direction: column;
		width: min(360px, 88vw); padding: 16px 20px 24px; overflow-y: auto; background: #fff;
		box-shadow: -10px 0 40px rgba(15, 46, 92, .2); transform: translateX(105%); visibility: hidden; transition: transform .28s ease, visibility .28s;
	}
	.wowt-drawer.is-open { transform: none; visibility: visible; }
	.admin-bar .wowt-drawer { top: 46px; }
	.wowt-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
	.wowt-drawer__head .wowt-logo img { width: 110px; }
	.wowt-drawer__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
	.wowt-drawer__account { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--wow-line, #e3eaf3); padding-top: 8px; }
	.wowt-nav { height: auto; }
	.wowt-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
	.wowt-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--wow-line, #e3eaf3); }
	.wowt-menu > li > a { flex: 1; padding: 14px 4px; font-size: 1.02rem; }
	.wowt-menu > li > a::after { display: none; }
	.wowt-menu > li > a { color: var(--wowt-drawer-color, var(--wow-text, #1d2b3f)); }
	.wowt-menu > .current-menu-item > a, .wowt-menu > .current-menu-ancestor > a { color: var(--wowt-drawer-active, var(--wow-primary, #0a6cdb)); }
	.wowt-menu > li { border-bottom-color: var(--wowt-drawer-line, var(--wow-line, #e3eaf3)); }
	.wowt-sub-toggle { width: 42px; height: 42px; color: var(--wowt-drawer-color, var(--wow-muted, #5b6b82)); }
	.wowt-sub-toggle .wow-icon { width: 18px; height: 18px; }
	.wowt-sub-toggle[aria-expanded="true"] .wow-icon { transform: rotate(180deg); }
	.wowt-menu .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 10px 10px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.wowt-menu li.is-open > .sub-menu { display: block; }
	.wowt-header__actions .wowt-lang { display: none; }
	/* Icon-only on small screens: the label stays for screen readers. */
	.wowt-trip__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	.wowt-trip { width: 44px; padding: 0; }
}
@media (max-width: 600px) {
	.wowt-header__inner { gap: 8px; }
	.wowt-header__actions { gap: 4px; }
	.wowt-login span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	.wowt-login { width: 44px; padding: 0; }
	.wowt-a11y-btn { width: 36px; height: 42px; }
	.wowt-search__form .wow-btn { display: none; }
}

/* Page title (pages, search) ---------------------------------------------- */
.wowt-page-head { padding: clamp(44px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); background: linear-gradient(180deg, var(--wow-sky-soft, #eaf4fd) 0%, #fff 100%); }
.wowt-page-head__title { margin: 0; font-size: var(--wow-fs-h1, 2.4rem); font-weight: 700; }
.wowt-page-head__sub { max-width: 760px; margin: 10px 0 0; color: var(--wow-muted, #5b6b82); font-size: 1.05rem; }
.wowt-page { padding-block: 8px clamp(48px, 6vw, 80px); }
.wowt-page .wowt-entry { max-width: 820px; }
.wowt-page .wowt-entry:has(.wow-auth, .wow-vendor, .wow-account, .wow-mytrip) { max-width: none; }
.wowt-page__cover { margin: 0 0 32px; }
.wowt-page__cover img { width: 100%; border-radius: var(--wow-radius-lg, 20px); object-fit: cover; max-height: 520px; }

/* Layout columns ----------------------------------------------------------- */
.wowt-layout { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; }
.wowt-layout--article { grid-template-columns: minmax(0, 1fr) 340px; padding-block: 8px clamp(40px, 5vw, 64px); }
.wowt-layout--place { grid-template-columns: minmax(0, 1fr) 380px; padding-block: 24px; }
.wowt-layout--detail { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-block: 8px clamp(32px, 4vw, 48px); }
.wowt-layout__side { min-width: 0; }
.wowt-layout--article .wowt-layout__side { position: sticky; top: calc(var(--wowt-header-h) + 20px); }
@media (max-width: 1024px) {
	.wowt-layout--article, .wowt-layout--place, .wowt-layout--detail { grid-template-columns: minmax(0, 1fr); }
	.wowt-layout--article .wowt-layout__side { position: static; }
}
.wowt-place__top { padding-top: 40px; }
.wowt-nearby { margin-top: 8px; }
.wowt-single__head { padding-top: 40px; }
.wow-post-cover { margin: 8px 0 32px; }
.wow-post-cover img { display: block; width: 100%; max-height: 560px; border-radius: var(--wow-radius-lg, 20px); object-fit: cover; }

/* Article content ---------------------------------------------------------- */
.wowt-entry, .wow-entry { font-size: 1.05rem; line-height: 1.85; overflow-wrap: break-word; }
.wow-entry > *:first-child { margin-top: 0; }
.wow-entry h2:not([class*="wow-"]) { margin: 1.8em 0 .6em; font-size: var(--wow-fs-h3, 1.5rem); }
.wow-entry h3:not([class*="wow-"]) { margin: 1.5em 0 .5em; font-size: var(--wow-fs-h4, 1.2rem); }
.wow-entry h4:not([class*="wow-"]) { margin: 1.4em 0 .4em; font-size: var(--wow-fs-h5, 1.06rem); }
.wow-entry ul:not([class*="wow-"]), .wow-entry ol:not([class*="wow-"]) { margin: 0 0 1.2em; padding-left: 1.4em; }
.wow-entry li:not([class*="wow-"]) { margin-bottom: .35em; }
.wow-entry li::marker { color: var(--wow-primary, #0a6cdb); }
.wow-entry img, .wow-entry .wp-block-image img { border-radius: var(--wow-radius, 14px); }
.wow-entry figure:not([class*="wow-"]) { margin: 1.6em 0; }
.wow-entry figcaption { margin-top: 8px; color: var(--wow-muted, #5b6b82); font-size: .88rem; text-align: center; }
.wow-entry a { text-underline-offset: 3px; }
.wow-entry blockquote, .wow-entry .wp-block-quote {
	position: relative; margin: 1.8em 0; padding: 22px 26px 22px 64px; border: 0; border-radius: var(--wow-radius, 14px);
	background: var(--wow-sky-soft, #eaf4fd); color: var(--wow-navy, #0f2e5c); font-family: var(--wow-font-head, "Prompt", sans-serif); font-size: 1.12rem; line-height: 1.7;
}
.wow-entry blockquote::before { content: "\201C"; position: absolute; left: 20px; top: 6px; color: var(--wow-primary, #0a6cdb); font: 700 3.4rem/1 Georgia, serif; }
.wow-entry blockquote p:last-child { margin-bottom: 0; }
.wow-entry blockquote cite { display: block; margin-top: 8px; color: var(--wow-muted, #5b6b82); font-size: .9rem; font-style: normal; }
.wow-entry table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: .95rem; }
.wow-entry th, .wow-entry td { padding: 10px 12px; border-bottom: 1px solid var(--wow-line, #e3eaf3); text-align: left; }
.wow-entry th { background: var(--wow-bg-soft, #f5f9fe); color: var(--wow-navy, #0f2e5c); font-weight: 600; }
.wow-entry hr { margin: 2em 0; border: 0; border-top: 1px solid var(--wow-line, #e3eaf3); }
.wow-entry iframe { width: 100%; border: 0; border-radius: var(--wow-radius, 14px); }
.wow-entry .alignwide { margin-inline: calc(-1 * min(80px, 6vw)); }
.wow-entry .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.wow-entry .alignright { float: right; margin: .3em 0 1em 1.4em; }
.wow-entry .aligncenter { margin-inline: auto; }

/* FAQ: <details> */
.wow-entry details { margin: 0 0 12px; border: 1px solid var(--wow-line, #e3eaf3); border-radius: var(--wow-radius, 14px); background: #fff; }
.wow-entry summary { position: relative; padding: 16px 48px 16px 20px; color: var(--wow-navy, #0f2e5c); font-weight: 600; cursor: pointer; list-style: none; }
.wow-entry summary::-webkit-details-marker { display: none; }
.wow-entry summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--wow-primary, #0a6cdb); font-size: 1.4rem; }
.wow-entry details[open] summary::after { content: "\2212"; }
.wow-entry details > *:not(summary) { margin: 0; padding: 0 20px 16px; }

/* Numbered H2 (article option "ใส่ตัวเลขหน้าหัวข้อ H2") */
.wow-numbered .wow-entry, .wow-numbered .elementor-widget-theme-post-content { counter-reset: wowh2; }
.wow-numbered .wow-entry > h2, .wow-numbered .elementor-widget-theme-post-content h2:not([class*="wow-"]) { position: relative; padding-left: 52px; counter-increment: wowh2; }
.wow-numbered .wow-entry > h2::before, .wow-numbered .elementor-widget-theme-post-content h2:not([class*="wow-"])::before {
	content: counter(wowh2); position: absolute; left: 0; top: -.05em; display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%; background: var(--wow-primary, #0a6cdb); color: #fff; font-size: 1.05rem; font-weight: 700;
}

.wowt-tags { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--wow-line, #e3eaf3); }
.wowt-tags > .wow-icon { color: var(--wow-primary, #0a6cdb); }
.wowt-tags .wow-pills { margin: 0; }
.wowt-tags a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--wow-sky-soft, #eaf4fd); color: var(--wow-primary, #0a6cdb); font-size: .85rem; text-decoration: none; }

/* Comments */
.wowt-comments { margin-top: 40px; }
.wowt-comments__list { padding-left: 0; list-style: none; }
.wowt-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--wow-line, #e3eaf3); }
.wowt-comments textarea, .wowt-comments input[type="text"], .wowt-comments input[type="email"], .wowt-comments input[type="url"] { width: 100%; padding: 10px 14px; border: 1.5px solid var(--wow-line, #e3eaf3); border-radius: 10px; }
.wowt-comments .submit { padding: 10px 22px; border: 0; border-radius: 999px; background: var(--wow-primary, #0a6cdb); color: #fff; cursor: pointer; }

/* Archives, empty, 404 ------------------------------------------------------ */
.wowt-archive { padding-block: 24px 64px; }
.wowt-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.wowt-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--wow-line, #e3eaf3); border-radius: 12px; color: var(--wow-text, #1d2b3f); text-decoration: none;
}
.wowt-pagination .page-numbers.current { background: var(--wow-primary, #0a6cdb); border-color: var(--wow-primary, #0a6cdb); color: #fff; }
.wowt-none { padding: 40px 0; text-align: center; }
.wowt-none > .wow-icon { width: 44px; height: 44px; color: var(--wow-sky, #80c8f2); }
.wowt-none .wowt-search-inline { margin: 20px auto 0; }
.wowt-404 { padding: clamp(60px, 10vw, 120px) 0; text-align: center; background: linear-gradient(180deg, var(--wow-sky-soft, #eaf4fd), #fff); }
.wowt-404__code { margin: 0; color: var(--wow-primary, #0a6cdb); font: 700 clamp(4rem, 12vw, 8rem)/1 var(--wow-font-head, "Prompt", sans-serif); }
.wowt-404 .wowt-search-inline { margin: 24px auto; }
.wowt-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Footer ----------------------------------------------------------------- */
.wowt-footer { margin-top: 0; background: #fff; border-top: 1px solid var(--wow-line, #e3eaf3); color: var(--wow-muted, #5b6b82); font-size: .93rem; }
.wowt-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) 1.3fr; gap: 28px; padding-block: 44px 32px; }
.wowt-footer__brand .wowt-logo img { width: 128px; margin-bottom: 10px; }
.wowt-footer__brand p { margin: 0 0 14px; max-width: 280px; line-height: 1.6; }
.wowt-footer__label { margin: 16px 0 8px !important; color: var(--wow-navy, #0f2e5c); font-weight: 600; }
.wowt-footer__title { margin: 0 0 12px; color: var(--wow-navy, #0f2e5c); font: 600 1rem/1.4 var(--wow-font-head, "Prompt", sans-serif); }
.wowt-footer__menu { margin: 0; padding: 0; list-style: none; }
.wowt-footer__menu li { margin-bottom: 8px; }
.wowt-footer a { color: var(--wow-muted, #5b6b82); text-decoration: none; }
.wowt-footer a:hover { color: var(--wow-primary, #0a6cdb); }
.wowt-footer__contact ul { margin: 0; padding: 0; list-style: none; }
.wowt-footer__contact li { display: flex; gap: 10px; margin-bottom: 10px; line-height: 1.5; }
.wowt-footer__contact .wow-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--wow-primary, #0a6cdb); }
.wowt-footer .wow-social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wowt-footer__bottom { border-top: 1px solid var(--wow-line, #e3eaf3); }
.wowt-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; font-size: .86rem; }
.wowt-footer__copy { margin: 0; }
.wowt-legal-menu { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.wowt-legal-menu li + li::before { content: "|"; margin: 0 12px; color: var(--wow-line, #e3eaf3); }
@media (max-width: 1024px) {
	.wowt-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wowt-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.wowt-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.wowt-footer__contact { grid-column: 1 / -1; }
	.wowt-footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* Accessibility toolbar states --------------------------------------------- */
html.wowt-fs--1 { font-size: 93.75%; }
html.wowt-fs-1 { font-size: 112.5%; }
html.wowt-fs-2 { font-size: 125%; }
/* The desktop header bar keeps its size when the text is enlarged (it would overflow the screen);
   the content scales, and browser zoom still switches the header to the mobile menu. */
@media (min-width: 1025px) {
	html:is(.wowt-fs-1, .wowt-fs-2) .wowt-menu > li > a { font-size: 15.68px; }
	html:is(.wowt-fs-1, .wowt-fs-2) .wowt-menu .sub-menu a { font-size: 15.2px; }
	html:is(.wowt-fs-1, .wowt-fs-2) .wowt-header .wow-btn { font-size: 16px; }
	html:is(.wowt-fs-1, .wowt-fs-2) .wowt-count { font-size: 12px; }
}
html.wowt-contrast {
	--wow-text: #000; --wow-muted: #1f2937; --wow-navy: #001a3d; --wow-primary: #003f9e; --wow-primary-dark: #002b6b;
	--wow-line: #6b7280; --wow-sky-soft: #fff; --wow-bg-soft: #fff;
}
html.wowt-contrast a:not(.wow-btn):not(.wow-card__link) { text-decoration: underline; }
html.wowt-contrast .wow-hero__bg::after { background: rgba(0, 0, 0, .55) !important; }

/* Without the core plugin ---------------------------------------------------- */
.wowt-no-core .wow-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.wowt-header, .wowt-footer, .wowt-layout__side, .wow-consent { display: none !important; }
}

/* Elementor compatibility: keep header buttons when Site Settings → Buttons is set. */
body[class*="elementor-kit-"] button.wowt-icon-btn,
body[class*="elementor-kit-"] button.wowt-icon-btn:focus { padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--wow-navy, #0f2e5c); box-shadow: none; }
body[class*="elementor-kit-"] button.wowt-icon-btn:hover,
body[class*="elementor-kit-"] button.wowt-icon-btn[aria-expanded="true"] { background: var(--wow-bg-soft, #f5f9fe); color: var(--wow-navy, #0f2e5c); }
body[class*="elementor-kit-"] button.wowt-account__btn,
body[class*="elementor-kit-"] button.wowt-account__btn:is(:hover, :focus) { padding: var(--wowt-acc-pad, 4px); border: 1.5px solid var(--wow-line, #e3eaf3); border-radius: 999px; background: #fff; color: var(--wow-navy, #0f2e5c); box-shadow: none; text-transform: none; }
body[class*="elementor-kit-"] button.wowt-a11y-btn,
body[class*="elementor-kit-"] button.wowt-a11y-btn:focus { padding: 0; border: 0; border-radius: 12px 0 0 12px; background: var(--wow-navy, #0f2e5c); color: #fff; }
body[class*="elementor-kit-"] button.wowt-a11y-btn:hover,
body[class*="elementor-kit-"] button.wowt-a11y-btn[aria-expanded="true"] { background: var(--wow-primary, #0a6cdb); }
