/* Wattal Site — red & blue school theme layer */
:root {
	--wts-navy: #1b2a5e;
	--wts-navy-deep: #121e48;
	--wts-red: #c8102e;
	--wts-tint: #eef2fa;
	--wts-tint-red: #fdecee;
	--wts-ground: #f6f7fb;
	--wts-text: #1a1f2e;
	--wts-muted: #505a6e;
	--wts-line: #e2e6ef;
	--wts-radius: 14px;
	--wts-font: 'IBM Plex Sans Thai Looped', 'Noto Sans Thai', sans-serif;
	--wts-display: 'Anuphan', 'Noto Sans Thai', sans-serif;
	--wts-scale: 1;
}

html { font-size: calc(100% * var(--wts-scale)); }

/* Hide the theme's own header and footer; ours replace them. */
.wts-site #masthead,
.wts-site header.site-header,
.wts-site .ast-mobile-header-wrap,
.wts-site #ast-mobile-header,
.wts-site footer.site-footer,
.wts-site #colophon { display: none !important; }

.wts-site { font-family: var(--wts-font); color: var(--wts-text); overflow-x: hidden; }
.wts-site h1, .wts-site h2, .wts-site h3, .wts-site h4 { font-family: var(--wts-display); color: var(--wts-navy); line-height: 1.35; }
.wts-site a { color: var(--wts-navy); }
.wts-site a:hover, .wts-site a:focus { color: var(--wts-red); }
.wts-site :focus-visible { outline: 3px solid var(--wts-red); outline-offset: 2px; }

.wts-wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.wts-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 12px 16px; }
.wts-skip:focus { left: 16px; top: 16px; }

/* ---------- Utility bar ---------- */
.wts-utility { background: var(--wts-navy); color: #fff; font-size: 0.875rem; }
.wts-utility-in { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.wts-utility-left, .wts-utility-right { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.wts-utility-right { gap: 8px; }
.wts-site .wts-utility a { color: #fff; text-decoration: none; }
.wts-utility-phone { display: inline-flex; gap: 6px; align-items: center; }
.wts-ts-label { opacity: 0.85; }
.wts-ts, .wts-lang { min-width: 36px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.45); background: transparent; color: #fff; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; padding: 0 6px; line-height: 1; }
.wts-ts:hover, .wts-lang:hover { background: rgba(255,255,255,0.12); }
.wts-site .wts-utility .wts-lang.is-current { background: #fff; color: var(--wts-navy); border-color: #fff; }
.wts-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.35); margin: 0 4px; }

/* ---------- Header ---------- */
.wts-header { background: #fff; border-bottom: 4px solid var(--wts-red); position: relative; z-index: 50; }
.wts-header-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.wts-brand { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.wts-brand img { width: 68px; height: 68px; flex: none; }
.wts-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.wts-brand-name { font-family: var(--wts-display); font-weight: 700; font-size: 1.75rem; color: var(--wts-navy); }
.wts-brand-tag { font-size: 0.875rem; color: var(--wts-muted); letter-spacing: 0.04em; }
.wts-header-actions { display: flex; gap: 10px; align-items: center; }
.wts-menu-toggle { display: none; min-height: 44px; padding: 0 14px; gap: 6px; align-items: center; border: 2px solid var(--wts-navy); background: #fff; color: var(--wts-navy); border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }

.wts-nav { padding-bottom: 12px; }
.wts-site .wts-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.wts-menu > li { position: relative; margin: 0; }
.wts-site .wts-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--wts-text); text-decoration: none; font-weight: 500; }
.wts-site .wts-menu a:hover { background: var(--wts-tint); color: var(--wts-navy); }
.wts-site .wts-menu .current-menu-item > a,
.wts-site .wts-menu .current_page_item > a,
.wts-site .wts-menu .current-menu-ancestor > a { background: var(--wts-tint); color: var(--wts-navy); font-weight: 600; }
.wts-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(18,30,72,0.16); z-index: 60; }
.wts-menu li:hover > .sub-menu, .wts-menu li:focus-within > .sub-menu { display: block; }

/* ---------- Buttons & pills ---------- */
.wts-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px; text-decoration: none; font-weight: 600; line-height: 1.2; box-sizing: border-box; }
.wts-header .wts-btn { min-height: 44px; padding: 0 20px; }
.wts-site .wts-btn-navy { background: var(--wts-navy); color: #fff; }
.wts-site .wts-btn-navy:hover { background: var(--wts-navy-deep); color: #fff; }
.wts-site .wts-btn-red { background: var(--wts-red); color: #fff; }
.wts-site .wts-btn-red:hover { background: #a50d26; color: #fff; }
.wts-site .wts-btn-white { background: #fff; color: var(--wts-navy); }
.wts-site .wts-btn-ghost { border: 2px solid rgba(255,255,255,0.8); color: #fff; }
.wts-site .wts-btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.wts-pill { align-self: flex-start; display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; }
.wts-pill-red { background: var(--wts-red); color: #fff; }

/* ---------- Home: full-bleed inside the theme's container ---------- */
.wts-is-home .site-content > .ast-container,
.wts-is-home #content > .ast-container { max-width: none !important; padding: 0 !important; display: block; }
.wts-is-home #primary, .wts-is-home .site-main, .wts-is-home article, .wts-is-home .entry-content { margin: 0 !important; padding: 0 !important; max-width: none !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
.wts-is-home .entry-header, .wts-is-home .ast-breadcrumbs-wrapper { display: none !important; }
.wts-site .entry-content > .wts-home,
.wts-home { width: 100% !important; max-width: none !important; margin: 0 !important; font-size: 1rem; line-height: 1.7; background: #fff; }
.wts-home h1, .wts-home h2, .wts-home h3 { border: 0 !important; padding: 0; display: block; }
.wts-site .wts-home .wts-h2 { margin: 4px 0 0 !important; }
.wts-site .wts-home .wts-svc .wts-h2 { margin-bottom: 24px !important; }
.wts-site .wts-home .wts-contact-info .wts-h2 { margin: 0 !important; }
.wts-home p { margin: 0; }
.wts-home img { max-width: 100%; }

.wts-hero { color: #fff; background-image: linear-gradient(100deg, rgba(18,30,72,0.94) 0%, rgba(18,30,72,0.82) 42%, rgba(18,30,72,0.35) 72%, rgba(200,16,46,0.25) 100%), var(--wts-hero); background-size: cover; background-position: center 30%; }
.wts-hero-in { padding-top: 96px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 20px; }
.wts-site .wts-hero-title { margin: 0; font-family: var(--wts-display); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.25; color: #fff; max-width: 720px; }
.wts-hero-sub { font-size: 1.2rem; max-width: 580px; opacity: 0.92; }
.wts-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.wts-quick { margin-top: -56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; position: relative; }
.wts-site .wts-quick-card { display: flex; gap: 14px; align-items: center; padding: 20px; background: #fff; border-radius: var(--wts-radius); box-shadow: 0 8px 24px rgba(18,30,72,0.12); text-decoration: none; color: var(--wts-text); transition: transform .15s ease, box-shadow .15s ease; }
.wts-site .wts-quick-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18,30,72,0.18); color: var(--wts-text); }
.wts-quick-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--wts-tint); color: var(--wts-navy); }
.wts-quick-icon.is-red { background: var(--wts-tint-red); color: var(--wts-red); }
.wts-quick-text { display: flex; flex-direction: column; line-height: 1.4; }
.wts-quick-text strong { font-size: 1.06rem; }
.wts-quick-text span { font-size: 0.875rem; color: var(--wts-muted); }

.wts-notice { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 14px 20px; border-radius: 12px; background: var(--wts-tint-red); }
.wts-notice .wts-pill { align-self: center; }
.wts-site .wts-notice-text { flex: 1 1 320px; color: var(--wts-text); text-decoration: none; }
.wts-notice-all { font-weight: 600; }

.wts-stats { padding-top: 72px; padding-bottom: 24px; }
.wts-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.wts-stat { padding: 28px 24px; border-radius: var(--wts-radius); background: var(--wts-tint); display: flex; flex-direction: column; gap: 4px; }
.wts-stat-num { font-family: var(--wts-display); font-weight: 700; font-size: 3rem; line-height: 1.1; color: var(--wts-navy); }
.wts-stat-label { font-weight: 500; }
.wts-stat-sub, .wts-small { font-size: 0.82rem; color: var(--wts-muted); }
.wts-small { margin-top: 12px !important; }

.wts-director-wrap { padding-top: 48px; padding-bottom: 48px; }
.wts-director { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 40px; border-radius: 20px; background: var(--wts-navy); color: #fff; }
.wts-director-img { flex: 0 0 260px; width: 260px; height: 320px; object-fit: cover; object-position: center top; border-radius: 16px; border: 4px solid rgba(255,255,255,0.9); box-sizing: border-box; background: #e9ebef; }
.wts-director-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wts-director-quote { font-family: var(--wts-display); font-size: 1.6rem; font-weight: 600; line-height: 1.5; }
.wts-director-msg { opacity: 0.9; }
.wts-director-name { display: flex; flex-direction: column; line-height: 1.5; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.25); }
.wts-director-name strong { font-size: 1.12rem; }
.wts-director-name span { opacity: 0.85; }
.wts-site .wts-director-more { align-self: flex-start; color: #fff; font-weight: 600; }

.wts-acts { padding-top: 40px; padding-bottom: 40px; }
.wts-section-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.wts-eyebrow { color: var(--wts-red); font-weight: 600; display: block; }
.wts-site .wts-h2 { margin: 4px 0 0; font-size: clamp(1.7rem, 3.2vw, 2.25rem); color: var(--wts-navy); }
.wts-link-strong { font-weight: 600; }
.wts-acts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.wts-site .wts-act-card { display: flex; flex-direction: column; border-radius: var(--wts-radius); overflow: hidden; border: 1px solid var(--wts-line); text-decoration: none; color: var(--wts-text); background: #fff; transition: box-shadow .15s ease; }
.wts-site .wts-act-card:hover { box-shadow: 0 10px 24px rgba(18,30,72,0.12); color: var(--wts-text); }
.wts-act-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.wts-act-img-empty { display: flex; align-items: center; justify-content: center; background: var(--wts-tint); }
.wts-act-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.wts-act-meta { font-size: 0.82rem; color: var(--wts-red); font-weight: 600; }
.wts-act-title { font-size: 1.06rem; line-height: 1.5; }

.wts-ident { background: var(--wts-ground); margin-top: 32px; }
.wts-ident > .wts-wrap { padding-top: 64px; padding-bottom: 64px; }
.wts-center { text-align: center; }
.wts-muted { color: var(--wts-muted); }
.wts-ident .wts-muted { margin: 8px 0 32px !important; }
.wts-ident-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.wts-ident-card { padding: 24px; border-radius: var(--wts-radius); background: #fff; border-top: 4px solid var(--wts-navy); display: flex; flex-direction: column; gap: 6px; }
.wts-ident-card.is-red { border-top-color: var(--wts-red); }
.wts-ident-label { font-size: 0.875rem; color: var(--wts-muted); font-weight: 600; }
.wts-ident-text { font-family: var(--wts-display); font-size: 1.25rem; line-height: 1.5; color: var(--wts-navy); }

.wts-svc { padding-top: 64px; padding-bottom: 64px; }
.wts-svc .wts-h2 { margin-bottom: 24px; }
.wts-svc-row { display: flex; flex-wrap: wrap; gap: 20px; }
.wts-svc-box { flex: 1 1 340px; min-width: 0; padding: 28px; border-radius: 16px; border: 1px solid var(--wts-line); display: flex; flex-direction: column; gap: 14px; }
.wts-svc-box.is-navy { background: var(--wts-navy); color: #fff; border-color: var(--wts-navy); }
.wts-svc-head { font-size: 1.12rem; display: flex; gap: 8px; align-items: center; }
.wts-site .wts-svc-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; border-radius: 10px; background: var(--wts-tint); text-decoration: none; color: var(--wts-text); font-weight: 500; }
.wts-site .wts-svc-link:hover { background: #e2e8f6; color: var(--wts-navy); }
.wts-site .wts-svc-box.is-navy .wts-svc-link { background: rgba(255,255,255,0.12); color: #fff; }
.wts-site .wts-svc-box.is-navy .wts-svc-link:hover { background: rgba(255,255,255,0.2); color: #fff; }

.wts-contact { padding-top: 16px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 24px; }
.wts-contact-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wts-contact-info .wts-h2 { margin: 0; }
.wts-site .wts-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wts-contact-info .wts-btn { align-self: flex-start; }
.wts-map { flex: 1 1 460px; min-width: 0; min-height: 340px; border-radius: 16px; overflow: hidden; position: relative; background: var(--wts-tint); }
.wts-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wts-map-btn { position: absolute; right: 16px; bottom: 16px; box-shadow: 0 6px 18px rgba(18,30,72,0.25); }

/* ---------- Footer ---------- */
.wts-footer { background: var(--wts-navy-deep); color: #fff; }
.wts-footer-in { padding-top: 48px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.wts-footer-brand { flex: 1 1 300px; display: flex; gap: 14px; align-items: flex-start; }
.wts-footer-brand img { width: 56px; height: 56px; flex: none; }
.wts-footer-brand div { display: flex; flex-direction: column; line-height: 1.6; }
.wts-footer-brand strong { font-family: var(--wts-display); font-size: 1.25rem; }
.wts-footer-brand span { opacity: 0.85; font-size: 0.875rem; }
.wts-footer-contact { margin-top: 6px; }
.wts-footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; font-size: 0.94rem; }
.wts-site .wts-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wts-site .wts-footer a { color: #fff; }
.wts-site .wts-footer a:hover { color: #ffd2d8; }
.wts-footer-bottom { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.82rem; opacity: 0.85; }
.wts-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Content pages ---------- */
.wts-site:not(.wts-is-home) .entry-content { font-size: 1.06rem; line-height: 1.8; }
.wts-site .entry-title { font-family: var(--wts-display); color: var(--wts-navy); }
.wts-site:not(.wts-is-home) .entry-content h2 { margin-top: 1.6em; padding-bottom: 8px; border-bottom: 3px solid var(--wts-red); display: inline-block; }
.wts-site .entry-content table { border-collapse: collapse; width: 100%; }
.wts-site .entry-content th { background: var(--wts-navy); color: #fff; text-align: left; }
.wts-site .entry-content th, .wts-site .entry-content td { padding: 10px 14px; border: 1px solid var(--wts-line); }
.wts-site .entry-content tr:nth-child(even) td { background: var(--wts-ground); }
.wts-site .entry-content .wp-block-table { overflow-x: auto; }
.wts-card { padding: 24px; border-radius: var(--wts-radius); background: var(--wts-tint); border-top: 4px solid var(--wts-navy); margin: 16px 0; }
.wts-card.is-red { border-top-color: var(--wts-red); background: var(--wts-tint-red); }

/* ---------- Phone ---------- */
@media (max-width: 880px) {
	.wts-menu-toggle { display: inline-flex; }
	.wts-header .wts-btn span { display: none; }
	.wts-header .wts-btn { padding: 0 12px; }
	.wts-nav { display: none; padding-top: 4px; }
	.wts-nav.is-open { display: block; }
	.wts-site .wts-menu { flex-direction: column; }
	.wts-menu .sub-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
	.wts-ts-label { display: none; }
}
@media (max-width: 640px) {
	.wts-brand img { width: 52px; height: 52px; }
	.wts-brand-name { font-size: 1.35rem; }
	.wts-brand-tag { font-size: 0.75rem; }
	.wts-hero-in { padding-top: 56px; padding-bottom: 96px; }
	.wts-director { padding: 24px; gap: 24px; }
	.wts-director-img { flex-basis: 100%; width: 100%; height: 340px; }
	.wts-utility-left span:first-child { display: none; }
}

.wts-svc-standalone { margin: 8px 0 24px; }
.wts-site .entry-content .wts-svc-standalone a { text-decoration: none; }
