/*
Theme Name: ANB Enterprise Website
Theme URI: https://anbsmarttech.co.th/
Author: AnB Smart Tech Co., Ltd.
Author URI: https://anbsmarttech.co.th/
Description: ธีม WordPress ระดับองค์กรสำหรับธุรกิจไอที — Hero Carousel, Services/Products Showcase, Blog + Video Hub เต็มหน้าจอ ปรับแต่งทุกส่วนได้จาก Customizer (Section 01–10) รองรับฟอนต์ไทยและโหมดสว่าง/มืด | Enterprise IT theme with full Customizer control.
Version: 3.9.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anb-enterprise-website
Tags: business, portfolio, blog, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, right-sidebar, theme-options, threaded-comments, translation-ready, block-patterns

ANB Enterprise Website — Copyright (C) 2026 AnB Smart Tech Co., Ltd.
This theme, like WordPress, is licensed under the GPL.
*/

/* =========================================================================
   TABLE OF CONTENTS
   00. Design Tokens (Colors / Typography / Spacing)
   01. Reset & Base
   02. Layout Helpers (Full-width + Gutter)
   03. Buttons & Chips
   04. Header / Navigation
   05. Section 01 — Hero Carousel
   06. Section 02 — Offerings Showcase (Cards)
   07. Section 03 — Stats Bar
   08. Section 04 — Feature Rows
   09. Section 05 — Blog Teaser
   10. Section 06 — Video Hub Highlight
   11. Section 07 — Logos / Partners
   12. Section 08 — CTA Banner
   13. Section 09 — Footer
   13.1 Language Switcher (ไทย / English)
   14. Blog / Archive / Single / Comments
   15. Blog + Video Hub Template (80/20)
   16. Enterprise Page Template
   17. Contact / Forms
   18. Reveal Animations & Utilities
   19. Responsive
   20. Accessibility & Print
   ========================================================================= */

/* -------------------------------------------------------------------------
   00. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
	/* Brand palette — overridable from Customizer [Section 00] */
	--anb-accent: #0e8fb0;
	--anb-accent-hover: #0a7793;
	--anb-accent-contrast: #ffffff;
	--anb-accent-2: #e2653c;

	/* Surface & text (light mode) */
	--anb-bg: #fbfcfd;
	--anb-bg-elevated: #f1f5f9;
	--anb-bg-card: #ffffff;
	--anb-bg-footer: #131a22;
	--anb-text: #1b2430;
	--anb-text-muted: #5a6875;
	--anb-text-footer: #e2e8ef;
	--anb-text-footer-muted: #97a3b1;
	--anb-border: #e2e8ee;
	--anb-header-bg: rgba(251, 252, 253, 0.86);
	--anb-shadow-sm: 0 2px 10px rgba(27, 36, 48, 0.06);
	--anb-shadow: 0 10px 30px rgba(27, 36, 48, 0.10);
	--anb-shadow-lg: 0 22px 50px rgba(27, 36, 48, 0.16);
	--anb-hero-overlay: linear-gradient(90deg, rgba(251, 252, 253, 0.95) 0%, rgba(251, 252, 253, 0.72) 45%, rgba(251, 252, 253, 0.15) 100%);

	/* Typography — overridable from Customizer [Section 00] */
	--anb-font-body: 'Sarabun', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--anb-font-display: 'Kanit', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
	--anb-fs-base: 16px;
	--anb-scale: 1;

	/* Fluid type scale */
	--anb-fs-h1: calc(clamp(2.15rem, 1.35rem + 2.6vw, 3.5rem) * var(--anb-scale));
	--anb-fs-h2: calc(clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem) * var(--anb-scale));
	--anb-fs-h3: calc(clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem) * var(--anb-scale));
	--anb-fs-h4: calc(clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem) * var(--anb-scale));
	--anb-fs-body: calc(clamp(0.98rem, 0.94rem + 0.18vw, 1.075rem) * var(--anb-scale));
	--anb-fs-small: calc(0.875rem * var(--anb-scale));
	--anb-fs-eyebrow: calc(0.8125rem * var(--anb-scale));

	/* Layout */
	--anb-container: 1440px;
	--anb-container-narrow: 1120px;
	--anb-container-text: 780px;
	--anb-gutter: clamp(20px, 4.5vw, 64px);
	--anb-section-pad: clamp(56px, 7vw, 104px);
	--anb-radius-sm: 8px;
	--anb-radius: 14px;
	--anb-radius-lg: 22px;
	--anb-header-h: 84px;
	--anb-header-h-compact: 62px;

	/* Motion */
	--anb-ease: cubic-bezier(0.19, 1, 0.22, 1);
	--anb-speed: 0.45s;
}

/* Dark mode tokens */
[data-anb-theme='dark'] {
	--anb-bg: #10161d;
	--anb-bg-elevated: #161f28;
	--anb-bg-card: #1a242e;
	--anb-bg-footer: #0b1015;
	--anb-text: #f2f6f9;
	--anb-text-muted: #a2b0bd;
	--anb-text-footer: #e4eaf0;
	--anb-text-footer-muted: #8e9ba8;
	--anb-border: #29343f;
	--anb-header-bg: rgba(16, 22, 29, 0.88);
	--anb-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
	--anb-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	--anb-shadow-lg: 0 24px 55px rgba(0, 0, 0, 0.55);
	--anb-hero-overlay: linear-gradient(90deg, rgba(16, 22, 29, 0.94) 0%, rgba(16, 22, 29, 0.72) 45%, rgba(16, 22, 29, 0.25) 100%);
}

/* -------------------------------------------------------------------------
   01. RESET & BASE
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--anb-header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--anb-font-body);
	font-size: var(--anb-fs-body);
	line-height: 1.7;
	color: var(--anb-text);
	background: var(--anb-bg);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--anb-font-display);
	color: var(--anb-text);
	line-height: 1.22;
	margin: 0 0 0.5em;
	font-weight: 600;
	text-wrap: pretty;
}

h1 { font-size: var(--anb-fs-h1); font-weight: 700; line-height: 1.1; }
h2 { font-size: var(--anb-fs-h2); font-weight: 700; }
h3 { font-size: var(--anb-fs-h3); }
h4 { font-size: var(--anb-fs-h4); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--anb-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--anb-accent-hover); }

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
figure { margin: 0 0 1.5em; }

::selection { background: var(--anb-accent); color: var(--anb-accent-contrast); }

hr { border: 0; border-top: 1px solid var(--anb-border); margin: 2.5rem 0; }

blockquote {
	margin: 1.75rem 0;
	padding: 0.35rem 0 0.35rem 1.4rem;
	border-left: 3px solid var(--anb-accent);
	color: var(--anb-text-muted);
	font-size: 1.05em;
}

code, pre, kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
}
pre {
	background: var(--anb-bg-elevated);
	border: 1px solid var(--anb-border);
	border-radius: var(--anb-radius-sm);
	padding: 1.1rem 1.25rem;
	overflow-x: auto;
}
code { background: var(--anb-bg-elevated); padding: 0.15em 0.4em; border-radius: 4px; }
pre code { background: none; padding: 0; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { border: 1px solid var(--anb-border); padding: 0.7rem 0.9rem; text-align: left; }
th { background: var(--anb-bg-elevated); font-weight: 600; }

/* -------------------------------------------------------------------------
   02. LAYOUT HELPERS
   ------------------------------------------------------------------------- */
.anb-section { width: 100%; padding-block: var(--anb-section-pad); padding-inline: var(--anb-gutter); position: relative; }
.anb-section--alt { background: var(--anb-bg-elevated); }
.anb-section--tight { padding-block: calc(var(--anb-section-pad) * 0.6); }

.anb-container { width: 100%; max-width: var(--anb-container); margin-inline: auto; }
.anb-container--narrow { max-width: var(--anb-container-narrow); }
.anb-container--text { max-width: var(--anb-container-text); }

/* Explicit column grid — จำนวนคอลัมน์จะตรงกับที่เลือกใน Customizer เสมอ
   (เดิมใช้ auto-fit ทำให้เบราว์เซอร์เลือกจำนวนคอลัมน์เอง จึงไม่เปลี่ยนตามค่าที่ตั้ง) */
.anb-grid {
	display: grid;
	gap: clamp(20px, 2.2vw, 30px);
	grid-template-columns: repeat(var(--anb-cols, 3), minmax(0, 1fr));
	align-items: stretch;
}
.anb-grid--1 { --anb-cols: 1; }
.anb-grid--2 { --anb-cols: 2; }
.anb-grid--3 { --anb-cols: 3; }
.anb-grid--4 { --anb-cols: 4; }
.anb-grid--5 { --anb-cols: 5; }
.anb-grid--6 { --anb-cols: 6; }

/* ปล่อยให้ไหลอัตโนมัติ (ใช้กับโลโก้พาร์ทเนอร์) */
.anb-grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* Responsive step-down — ลดจำนวนคอลัมน์ตามความกว้างจอ */
@media (max-width: 1200px) {
	.anb-grid--5 { --anb-cols: 4; }
	.anb-grid--6 { --anb-cols: 4; }
}
@media (max-width: 1024px) {
	.anb-grid--4,
	.anb-grid--5,
	.anb-grid--6 { --anb-cols: 3; }
}
@media (max-width: 860px) {
	.anb-grid--3,
	.anb-grid--4,
	.anb-grid--5,
	.anb-grid--6 { --anb-cols: 2; }
}
@media (max-width: 600px) {
	.anb-grid { --anb-cols: 1; }
	.anb-grid--auto { grid-template-columns: minmax(0, 1fr); }
}

.anb-section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.anb-section-head--center { margin-inline: auto; text-align: center; }
.anb-section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: none; }
.anb-section-head h2 { margin: 0.35em 0 0.4em; }
.anb-section-head p { color: var(--anb-text-muted); margin: 0; max-width: 62ch; }

.anb-eyebrow {
	display: inline-block;
	font-family: var(--anb-font-body);
	font-size: var(--anb-fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--anb-accent);
}
.anb-eyebrow--alt { color: var(--anb-accent-2); }

.anb-code-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--anb-text-muted);
}
.anb-code-tag::before {
	content: '';
	width: 22px;
	height: 2px;
	background: var(--anb-accent);
	border-radius: 2px;
}

.anb-screen-reader-text,
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 999;
	width: auto; height: auto; clip: auto;
	background: var(--anb-accent); color: var(--anb-accent-contrast);
	padding: 12px 20px; border-radius: 6px; font-weight: 700;
}

/* Media placeholder (diagonal stripes, matches design prototype) */
.anb-media {
	position: relative;
	overflow: hidden;
	background: var(--anb-bg-elevated);
	background-image: repeating-linear-gradient(135deg,
		color-mix(in srgb, var(--anb-accent) 12%, var(--anb-bg-elevated)) 0 14px,
		var(--anb-bg-elevated) 14px 28px);
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
}
.anb-media img { width: 100%; height: 100%; object-fit: cover; }
.anb-media__caption {
	position: absolute;
	left: 14px; bottom: 14px;
	font-family: ui-monospace, monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--anb-text-muted);
	background: color-mix(in srgb, var(--anb-bg-card) 82%, transparent);
	padding: 3px 8px;
	border-radius: 4px;
}

/* -------------------------------------------------------------------------
   03. BUTTONS & CHIPS
   ------------------------------------------------------------------------- */
.anb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--anb-font-body);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	padding: 14px 26px;
	border-radius: var(--anb-radius-sm);
	border: 1.5px solid transparent;
	cursor: pointer;
	text-align: center;
	transition: transform 0.2s var(--anb-ease), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.anb-btn:hover { transform: translateY(-2px); }
.anb-btn:focus-visible { outline: 3px solid var(--anb-accent); outline-offset: 3px; }

.anb-btn--primary { background: var(--anb-accent); color: var(--anb-accent-contrast); box-shadow: var(--anb-shadow-sm); }
.anb-btn--primary:hover { background: var(--anb-accent-hover); color: var(--anb-accent-contrast); box-shadow: var(--anb-shadow); }
.anb-btn--secondary { background: transparent; color: var(--anb-text); border-color: var(--anb-border); }
.anb-btn--secondary:hover { border-color: var(--anb-accent); color: var(--anb-accent); }
.anb-btn--ghost { background: color-mix(in srgb, var(--anb-bg-card) 70%, transparent); color: var(--anb-text); border-color: var(--anb-border); }
.anb-btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.anb-btn--block { width: 100%; }

.anb-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	border: 1px solid var(--anb-border);
	color: var(--anb-text-muted);
	background: transparent;
	transition: all 0.25s ease;
}
.anb-chip:hover { border-color: var(--anb-accent); color: var(--anb-accent); }
.anb-chip.is-active { background: var(--anb-accent); border-color: var(--anb-accent); color: var(--anb-accent-contrast); }

/* -------------------------------------------------------------------------
   04. HEADER / NAVIGATION
   ------------------------------------------------------------------------- */
.anb-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 90;
	background: var(--anb-header-bg);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--anb-border);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.anb-header--static { position: sticky; top: 0; }
body.anb-has-adminbar .anb-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.anb-has-adminbar .anb-header { top: 46px; }
}

.anb-header__inner {
	max-width: var(--anb-container);
	margin-inline: auto;
	padding-inline: var(--anb-gutter);
	height: var(--anb-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	transition: height 0.3s ease;
}

/* Scroll behaviours [Section 00] */
.anb-header.is-hidden[data-scroll-anim='hide-reveal'] { transform: translateY(-100%); }
.anb-header.is-hidden[data-scroll-anim='fade'] { opacity: 0; pointer-events: none; }
.anb-header[data-scroll-anim='shrink'].is-scrolled { background: #0f1620f2; border-color: #2b3742; }
.anb-header[data-scroll-anim='shrink'].is-scrolled .anb-header__inner { height: var(--anb-header-h-compact); }
.anb-header[data-scroll-anim='shrink'].is-scrolled .anb-brand__name,
.anb-header[data-scroll-anim='shrink'].is-scrolled .anb-nav__link,
.anb-header[data-scroll-anim='shrink'].is-scrolled .anb-theme-toggle { color: #f2f6f9; }
.anb-header[data-scroll-anim='shrink'].is-scrolled .anb-brand__tag { color: #9fb0bf; }
.anb-header[data-scroll-anim='shrink'].is-scrolled .anb-theme-toggle,
.anb-header[data-scroll-anim='shrink'].is-scrolled .anb-nav-toggle { border-color: #34414d; }

/* Optional slim info bar above the header */
.anb-topbar {
	background: var(--anb-bg-footer);
	color: var(--anb-text-footer-muted);
	font-size: 0.8rem;
	padding: 8px var(--anb-gutter);
}
.anb-topbar .anb-container { display: flex; justify-content: flex-end; gap: 20px; }
body:has(.anb-topbar) .anb-header { position: sticky; }

/* Mobile-only sub-menu toggle button */
.anb-submenu-toggle {
	display: none;
	position: absolute;
	top: 6px; right: 0;
	width: 40px; height: 40px;
	background: transparent;
	border: 0;
	color: var(--anb-text);
	font-size: 1.1rem;
	cursor: pointer;
}

.anb-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.anb-brand__mark { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.anb-brand__mark span { width: 4px; border-radius: 2px; background: var(--anb-accent); display: block; }
.anb-brand__mark span:nth-child(1) { height: 14px; }
.anb-brand__mark span:nth-child(2) { height: 26px; }
.anb-brand__mark span:nth-child(3) { height: 10px; }
.anb-brand__mark span:nth-child(4) { height: 22px; }
.anb-brand__mark span:nth-child(5) { height: 18px; }
.anb-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.anb-brand__name { font-family: var(--anb-font-display); font-weight: 700; font-size: 1.35rem; color: var(--anb-text); letter-spacing: 0.01em; }
.anb-brand__tag { font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.2em; color: var(--anb-text-muted); text-transform: uppercase; }
.anb-brand img { max-height: 46px; width: auto; }

.anb-nav-scrim { display: none; }
.anb-nav__cta { display: none; }
.anb-nav ul { list-style: none; margin: 0; padding: 0; }
.anb-nav > ul { display: flex; align-items: center; gap: 2px; }
.anb-nav li { position: relative; }
.anb-nav__link,
.anb-nav a {
	display: block;
	padding: 10px 15px;
	font-size: 0.94rem;
	font-weight: 600;
	color: var(--anb-text);
	border-radius: 6px;
	transition: color 0.2s ease, background-color 0.2s ease;
}
.anb-nav > ul > li > a:hover,
.anb-nav > ul > li.current-menu-item > a,
.anb-nav > ul > li.current-menu-ancestor > a { color: var(--anb-accent); }
.anb-nav > ul > li.current-menu-item > a { position: relative; }
.anb-nav > ul > li.current-menu-item > a::after {
	content: ''; position: absolute; left: 15px; right: 15px; bottom: 2px;
	height: 2px; background: var(--anb-accent); border-radius: 2px;
}

/* Dropdowns */
.anb-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	background: var(--anb-bg-card);
	border: 1px solid var(--anb-border);
	border-radius: var(--anb-radius-sm);
	padding: 8px;
	box-shadow: var(--anb-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 5;
}
.anb-nav li:hover > .sub-menu,
.anb-nav li:focus-within > .sub-menu,
.anb-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.anb-nav .sub-menu a { padding: 10px 12px; font-weight: 500; font-size: 0.9rem; color: var(--anb-text); }
.anb-nav .sub-menu a:hover { background: var(--anb-bg-elevated); color: var(--anb-accent); }
.anb-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.anb-nav > ul > li:last-child .sub-menu,
.anb-nav > ul > li:nth-last-child(2) .sub-menu { left: auto; right: 0; }
.anb-nav .menu-item-has-children > a::after { content: ' ▾'; font-size: 0.75em; opacity: 0.7; }

.anb-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.anb-theme-toggle {
	background: transparent;
	border: 1px solid var(--anb-border);
	color: var(--anb-text);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 9px 13px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
}
.anb-theme-toggle:hover { border-color: var(--anb-accent); color: var(--anb-accent); }

.anb-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	background: transparent;
	border: 1px solid var(--anb-border);
	border-radius: 8px;
	cursor: pointer;
	color: var(--anb-text);
}
.anb-nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: background 0.2s; }
.anb-nav-toggle span::before,
.anb-nav-toggle span::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 0.3s var(--anb-ease); }
.anb-nav-toggle span::before { top: -6px; }
.anb-nav-toggle span::after { top: 6px; }
.anb-nav-toggle[aria-expanded='true'] span { background: transparent; }
.anb-nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.anb-nav-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Body offset for fixed header */
.anb-site-main { padding-top: var(--anb-header-h); }
.anb-site-main--flush { padding-top: 0; }

/* -------------------------------------------------------------------------
   05. SECTION 01 — HERO CAROUSEL
   ------------------------------------------------------------------------- */
.anb-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--anb-bg-elevated);
	min-height: var(--anb-hero-height, 640px);
}
.anb-hero__track { position: relative; min-height: var(--anb-hero-height, 640px); }

.anb-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.85s var(--anb-ease), transform 0.85s var(--anb-ease);
}
.anb-hero__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }
.anb-hero__slide:first-child { position: relative; }

/* Effects [Section 01 → Carousel Effect] */
.anb-hero[data-effect='slide'] .anb-hero__slide { transform: translateX(40px); }
.anb-hero[data-effect='slide'] .anb-hero__slide.is-active { transform: translateX(0); }
.anb-hero[data-effect='zoom'] .anb-hero__slide { transform: scale(1.06); }
.anb-hero[data-effect='zoom'] .anb-hero__slide.is-active { transform: scale(1); }
.anb-hero[data-effect='kenburns'] .anb-hero__slide.is-active .anb-hero__media { animation: anb-kenburns 9s ease-out forwards; }
.anb-hero[data-effect='flip'] .anb-hero__slide { transform: rotateX(8deg); transform-origin: top center; }
.anb-hero[data-effect='flip'] .anb-hero__slide.is-active { transform: rotateX(0); }

@keyframes anb-kenburns {
	from { transform: scale(1) translate3d(0, 0, 0); }
	to { transform: scale(1.09) translate3d(-1.5%, -1%, 0); }
}

.anb-hero__media { position: absolute; inset: 0; }
.anb-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.anb-hero__overlay { position: absolute; inset: 0; background: var(--anb-hero-overlay); }

/* [Section 01.2] โหมดการแสดงรูปภาพของสไลด์ */
.anb-hero--img-contain .anb-hero__media img { object-fit: contain; background: var(--anb-bg-elevated); }
.anb-hero--img-none .anb-hero__media,
.anb-hero--img-none .anb-media { display: none; }
.anb-hero--img-none .anb-hero__overlay { background: var(--anb-bg-elevated); }

/* กล่องชั้นนอก — กันพื้นที่ให้ปุ่มลูกศร แล้วแบ่งเป็นคอลัมน์ข้อความ/ภาพ */
.anb-hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--anb-container);
	margin-inline: auto;
	/* เว้นที่ให้ปุ่มลูกศรเสมอ ไม่ให้ทับข้อความ + บวกระยะขอบที่ผู้ใช้ตั้งเอง */
	padding-block: clamp(48px, 7vw, 96px);
	padding-inline:
		calc(max(var(--anb-gutter), var(--anb-hero-arrow-space, 96px)) + var(--anb-hero-pad-left, 0px))
		calc(max(var(--anb-gutter), var(--anb-hero-arrow-space, 96px)) + var(--anb-hero-pad-right, 0px));
	min-height: var(--anb-hero-height, 640px);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
}

.anb-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	align-items: flex-start;
	min-width: 0;
}
/* ไม่แสดงลูกศร → ไม่ต้องกันพื้นที่ */
.anb-hero--no-arrows { --anb-hero-arrow-space: 0px; }

.anb-hero--center .anb-hero__content { align-items: center; text-align: center; }
.anb-hero--center .anb-hero__overlay { background: linear-gradient(180deg, color-mix(in srgb, var(--anb-bg) 80%, transparent), color-mix(in srgb, var(--anb-bg) 55%, transparent)); }

/* [Section 01.2] จัดข้อความชิดขวา */
.anb-hero--right .anb-hero__content { align-items: flex-end; text-align: right; }
.anb-hero--right .anb-hero__actions { justify-content: flex-end; }
.anb-hero--right .anb-hero__overlay { background: linear-gradient(270deg, color-mix(in srgb, var(--anb-bg) 88%, transparent), color-mix(in srgb, var(--anb-bg) 35%, transparent)); }

/* -------------------------------------------------------------------------
   [Section 01.2] โหมดแยกคอลัมน์ — ภาพวางเคียงข้างข้อความ
   ความกว้างภาพคิดเป็น % ของพื้นที่ระหว่างปุ่มลูกศรซ้าย-ขวา
   ------------------------------------------------------------------------- */
.anb-hero__figure {
	position: relative;
	margin: 0;
	min-width: 0;
	align-self: center;
	/* 3:2 ใกล้เคียงสัดส่วนภาพเด่นของบทความ จึงถูกครอบตัดน้อยที่สุด */
	aspect-ratio: 3 / 2;
	/* ไม่ให้ภาพสูงเกินกรอบแบนเนอร์เมื่อคอลัมน์กว้างมาก */
	max-height: calc(var(--anb-hero-height, 640px) - clamp(96px, 14vw, 192px));
	border-radius: var(--anb-radius-lg);
	overflow: hidden;
	background: var(--anb-bg-elevated);
	box-shadow: 0 24px 60px -28px rgba(15, 22, 32, 0.45);
}
.anb-hero__figure img,
.anb-hero__figure .anb-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ภาพด้านขวา (ค่าเริ่มต้น) — ข้อความซ้าย ภาพขวา */
.anb-hero--media-right .anb-hero__inner {
	grid-template-columns: minmax(0, 1fr) var(--anb-hero-media-w, 50%);
}

/* ภาพด้านซ้าย — สลับลำดับคอลัมน์ */
.anb-hero--media-left .anb-hero__inner {
	grid-template-columns: var(--anb-hero-media-w, 50%) minmax(0, 1fr);
}
.anb-hero--media-left .anb-hero__content { order: 2; }
.anb-hero--media-left .anb-hero__figure { order: 1; }

/*
 * แถบเมนูด้านบนเป็น position:fixed และหน้าแรกใช้ .anb-site-main--flush
 * (padding-top:0) เพื่อให้แบนเนอร์ชนขอบบนสุด — ในโหมดแยกคอลัมน์ที่มีภาพจริง
 * อยู่ในสายเนื้อหา ต้องกันที่ให้เมนูก่อน ไม่งั้นเมนูจะทับภาพ
 */
.anb-site-main--flush .anb-hero--split .anb-hero__inner {
	padding-top: calc(var(--anb-header-h) + clamp(24px, 4vw, 56px));
}

/* โหมดแยกคอลัมน์ไม่ต้องมีชั้นทึบบังภาพ เพราะข้อความอยู่คนละฝั่ง */
.anb-hero--split .anb-hero__overlay { background: var(--anb-bg); opacity: 1; }
.anb-hero--split .anb-hero__title { max-width: 22ch; }
.anb-hero--split .anb-hero__subtitle { max-width: 48ch; }

/* Contain — แสดงรูปทั้งภาพในกรอบ */
.anb-hero--img-contain .anb-hero__figure { background: var(--anb-bg-elevated); }
.anb-hero--img-contain .anb-hero__figure img { object-fit: contain; }

/* เต็มขอบ — ภาพกินพื้นที่ทั้ง Hero โดยไม่มีชั้นทึบหนา ข้อความวางทับ */
.anb-hero--media-fill .anb-hero__overlay {
	background: linear-gradient(90deg, rgba(10, 14, 19, 0.62) 0%, rgba(10, 14, 19, 0.28) 55%, rgba(10, 14, 19, 0.12) 100%);
}
.anb-hero--media-fill.anb-hero--center .anb-hero__overlay { background: rgba(10, 14, 19, 0.45); }
.anb-hero--media-fill.anb-hero--right .anb-hero__overlay {
	background: linear-gradient(270deg, rgba(10, 14, 19, 0.62) 0%, rgba(10, 14, 19, 0.28) 55%, rgba(10, 14, 19, 0.12) 100%);
}
.anb-hero--media-fill .anb-hero__title,
.anb-hero--media-fill .anb-hero__subtitle,
.anb-hero--media-fill .anb-eyebrow { color: #fff; }
.anb-hero--media-fill .anb-hero__subtitle { color: rgba(255, 255, 255, 0.88); }

.anb-hero__title { font-size: var(--anb-fs-h1); margin: 0; max-width: 18ch; }
.anb-hero--center .anb-hero__title { max-width: 22ch; }
.anb-hero__subtitle { font-size: clamp(1rem, 0.94rem + 0.4vw, 1.15rem); color: var(--anb-text-muted); margin: 0; max-width: 56ch; }
.anb-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

.anb-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 50px; height: 50px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--anb-border);
	background: color-mix(in srgb, var(--anb-bg-card) 82%, transparent);
	backdrop-filter: blur(6px);
	color: var(--anb-text);
	font-size: 1.25rem;
	cursor: pointer;
	transition: all 0.25s ease;
}
.anb-hero__arrow:hover { background: var(--anb-accent); color: var(--anb-accent-contrast); border-color: var(--anb-accent); }
.anb-hero__arrow--prev { left: clamp(12px, 2vw, 32px); }
.anb-hero__arrow--next { right: clamp(12px, 2vw, 32px); }

.anb-hero__dots {
	position: absolute;
	bottom: 30px; left: 0; right: 0;
	z-index: 5;
	display: flex; justify-content: center; gap: 10px;
}
.anb-hero__dot {
	width: 9px; height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--anb-border);
	cursor: pointer;
	transition: all 0.3s ease;
}
.anb-hero__dot.is-active { width: 26px; background: var(--anb-accent); }

.anb-hero__progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--anb-accent); width: 0; z-index: 5; }

/* -------------------------------------------------------------------------
   06. SECTION 02 — OFFERINGS SHOWCASE (CARDS)
   ------------------------------------------------------------------------- */
.anb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--anb-bg-card);
	border: 1px solid var(--anb-border);
	border-radius: var(--anb-radius);
	overflow: hidden;
	transition: transform var(--anb-speed) var(--anb-ease), box-shadow var(--anb-speed) var(--anb-ease), border-color 0.3s ease;
}
.anb-card__media { position: relative; height: var(--anb-card-media-h, 200px); overflow: hidden; }

/* ความสูงรูปปรับตามจำนวนคอลัมน์ที่เลือก — คอลัมน์ยิ่งมาก การ์ดยิ่งเตี้ยลง */
.anb-grid--1 { --anb-card-media-h: 320px; }
.anb-grid--2 { --anb-card-media-h: 250px; }
.anb-grid--3 { --anb-card-media-h: 200px; }
.anb-grid--4 { --anb-card-media-h: 175px; }
.anb-grid--5 { --anb-card-media-h: 155px; }
.anb-grid--6 { --anb-card-media-h: 140px; }

/* [02.0] รูปแบบ "รายการแนวนอน" — รูปซ้าย ข้อความขวา */
.anb-grid--list .anb-card { flex-direction: row; align-items: stretch; }
.anb-grid--list .anb-card__media {
	flex: 0 0 auto;
	width: clamp(180px, 32%, 340px);
	height: auto;
	min-height: 190px;
}
.anb-grid--list .anb-card__body { justify-content: center; }

/* [02.0] รูปแบบ "กะทัดรัด" — ไม่แสดงรูปภาพ */
.anb-grid--compact .anb-card__media { display: none; }
.anb-grid--compact .anb-card__body { padding-block: clamp(22px, 2.4vw, 30px); }

@media (max-width: 700px) {
	.anb-grid--list .anb-card { flex-direction: column; }
	.anb-grid--list .anb-card__media { width: 100%; height: 200px; min-height: 0; }
}
.anb-card__media .anb-media,
.anb-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.6s var(--anb-ease); }
.anb-card__wash { position: absolute; inset: 0; background: transparent; transition: background 0.35s ease; }
.anb-card__body { padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.anb-card__kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--anb-accent); transition: color 0.3s ease; }
.anb-card__title { font-size: var(--anb-fs-h3); margin: 0; transform-origin: left center; transition: transform 0.3s ease, color 0.3s ease; display: inline-block; }
.anb-card__desc { color: var(--anb-text-muted); font-size: 0.95rem; margin: 0; transition: color 0.3s ease; }
.anb-card__link { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 0.9rem; color: var(--anb-accent); }
.anb-card__icon { font-size: 1.9rem; line-height: 1; margin-bottom: 4px; }

/* Card hover animations [Section 02 → Card Hover Effect] */
[data-card-hover='scale-overlay'] .anb-card:hover .anb-card__media .anb-media,
[data-card-hover='scale-overlay'] .anb-card:hover .anb-card__media img { transform: scale(1.08); }
[data-card-hover='scale-overlay'] .anb-card:hover .anb-card__wash { background: rgba(15, 22, 32, 0.3); }

[data-card-hover='lift-reveal'] .anb-card:hover { transform: translateY(-10px); box-shadow: var(--anb-shadow-lg); border-color: color-mix(in srgb, var(--anb-accent) 40%, var(--anb-border)); }
[data-card-hover='lift-reveal'] .anb-card:hover .anb-card__media .anb-media { transform: scale(1.04); }

[data-card-hover='color-wash'] .anb-card:hover .anb-card__wash { background: color-mix(in srgb, var(--anb-accent) 38%, transparent); }
[data-card-hover='color-wash'] .anb-card:hover .anb-card__media .anb-media { transform: scale(1.04); }

[data-card-hover='border-glow'] .anb-card:hover { border-color: var(--anb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--anb-accent) 18%, transparent); }

[data-card-hover='none'] .anb-card:hover { transform: none; }

/* Card title hover [Section 02 → Title Hover Effect] */
[data-title-hover='grow'] .anb-card:hover .anb-card__title { transform: scale(1.05); color: var(--anb-accent); }
[data-title-hover='accent'] .anb-card:hover .anb-card__title { color: var(--anb-accent); }
[data-title-hover='underline'] .anb-card:hover .anb-card__title { text-decoration: underline; text-underline-offset: 5px; }

.anb-card--link { cursor: pointer; }
.anb-card__stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* -------------------------------------------------------------------------
   07. SECTION 03 — STATS BAR
   ------------------------------------------------------------------------- */
.anb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.anb-stat { text-align: center; padding: 8px; }
.anb-stat--left { text-align: left; }
.anb-stat__value { font-family: var(--anb-font-display); font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 700; color: var(--anb-accent); line-height: 1.1; }
.anb-stat__label { font-size: 0.92rem; color: var(--anb-text-muted); margin-top: 6px; }

/* -------------------------------------------------------------------------
   08. SECTION 04 — FEATURE ROWS
   ------------------------------------------------------------------------- */
.anb-features { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.anb-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.anb-feature:nth-child(even) .anb-feature__media { order: 2; }
.anb-feature__media { position: relative; height: clamp(220px, 26vw, 300px); border-radius: var(--anb-radius); overflow: hidden; }
.anb-feature__media img,
.anb-feature__media .anb-media,
.anb-post-row__media img,
.anb-post-row__media .anb-media,
.anb-entry__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.anb-entry__thumb { position: relative; aspect-ratio: 16 / 9; }
.anb-feature__title { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); margin: 8px 0 12px; }
.anb-feature__desc { color: var(--anb-text-muted); margin: 0 0 16px; }
.anb-feature__list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.anb-feature__list li { position: relative; padding-left: 26px; color: var(--anb-text-muted); }
.anb-feature__list li::before {
	content: '';
	position: absolute; left: 0; top: 0.55em;
	width: 12px; height: 6px;
	border-left: 2px solid var(--anb-accent);
	border-bottom: 2px solid var(--anb-accent);
	transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------
   09. SECTION 05 — BLOG TEASER / POST CARDS
   ------------------------------------------------------------------------- */
.anb-post-card { display: flex; flex-direction: column; background: var(--anb-bg-card); border: 1px solid var(--anb-border); border-radius: var(--anb-radius); overflow: hidden; transition: transform var(--anb-speed) var(--anb-ease), box-shadow var(--anb-speed) var(--anb-ease); }
.anb-post-card:hover { transform: translateY(-6px); box-shadow: var(--anb-shadow); }
.anb-post-card__media { position: relative; height: 200px; overflow: hidden; }
.anb-post-card__media img,
.anb-post-card__media .anb-media { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.6s var(--anb-ease); }
.anb-post-card:hover .anb-post-card__media img,
.anb-post-card:hover .anb-post-card__media .anb-media { transform: scale(1.06); }
.anb-post-card__body { padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.anb-post-card__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--anb-accent-2); }
.anb-post-card__title { font-size: 1.15rem; margin: 0; }
.anb-post-card__title a { color: var(--anb-text); }
.anb-post-card__title a:hover { color: var(--anb-accent); }
.anb-post-card__excerpt { font-size: 0.92rem; color: var(--anb-text-muted); margin: 0; }
.anb-post-card__meta { margin-top: auto; padding-top: 12px; font-size: 0.8rem; color: var(--anb-text-muted); display: flex; gap: 12px; flex-wrap: wrap; }

/* Horizontal list variant */
.anb-post-list { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
.anb-post-row { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(18px, 2.4vw, 32px); align-items: center; padding-bottom: clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--anb-border); }
.anb-post-row:last-child { border-bottom: 0; }
.anb-post-row__media { height: 190px; border-radius: var(--anb-radius-sm); overflow: hidden; position: relative; }
.anb-post-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--anb-ease); }
.anb-post-row:hover .anb-post-row__media img { transform: scale(1.05); }
.anb-post-row__title { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); margin: 8px 0 10px; }
.anb-post-row__title a { color: var(--anb-text); }
.anb-post-row__title a:hover { color: var(--anb-accent); }

/* -------------------------------------------------------------------------
   10. SECTION 06 — VIDEO HUB
   ------------------------------------------------------------------------- */
.anb-video-card { display: flex; flex-direction: column; gap: 10px; background: var(--anb-bg-card); border: 1px solid var(--anb-border); border-radius: var(--anb-radius-sm); overflow: hidden; transition: transform 0.3s var(--anb-ease), box-shadow 0.3s ease, border-color 0.3s ease; }
.anb-video-card:hover { transform: translateY(-4px); box-shadow: var(--anb-shadow-sm); border-color: color-mix(in srgb, var(--anb-accent) 40%, var(--anb-border)); }
.anb-video-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--anb-bg-elevated); }
.anb-video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ภาพปกที่สร้างจากชื่อเรื่อง — ใช้เมื่อไม่มีภาพเด่นและหาภาพจากลิงก์วิดีโอไม่ได้ */
.anb-video-poster {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14% 10%;
	text-align: center;
	background: linear-gradient(135deg, var(--anb-poster-a, #0e8fb0) 0%, var(--anb-poster-b, #0a5f78) 100%);
	overflow: hidden;
}
.anb-video-poster::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.18), transparent 42%),
		radial-gradient(circle at 84% 82%, rgba(0, 0, 0, 0.22), transparent 46%);
}
.anb-video-poster__text {
	position: relative;
	z-index: 1;
	color: #fff;
	font-family: var(--anb-font-display);
	font-weight: 700;
	font-size: clamp(0.85rem, 0.55rem + 1.1vw, 1.3rem);
	line-height: 1.34;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ในแถบข้างขนาดเล็ก ย่อข้อความลงและตัดเหลือ 2 บรรทัด */
.anb-video-row__thumb .anb-video-poster { padding: 8% 8%; }
.anb-video-row__thumb .anb-video-poster__text {
	font-size: 0.62rem;
	line-height: 1.25;
	-webkit-line-clamp: 2;
}

/* ภาพปกบนหน้าวิดีโอเดี่ยว */
.anb-entry__thumb--poster { position: relative; aspect-ratio: 16 / 9; border-radius: var(--anb-radius); overflow: hidden; }
.anb-entry__thumb--poster .anb-video-poster__text { font-size: clamp(1.2rem, 0.9rem + 1.6vw, 2.1rem); -webkit-line-clamp: 4; }
.anb-video-card__play {
	position: absolute; inset: 0; margin: auto;
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--anb-accent) 92%, transparent);
	color: var(--anb-accent-contrast);
	font-size: 0.9rem;
	transition: transform 0.3s var(--anb-ease);
}
.anb-video-card:hover .anb-video-card__play { transform: scale(1.14); }
.anb-video-card__duration { position: absolute; right: 8px; bottom: 8px; background: rgba(10, 14, 19, 0.82); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.anb-video-card__body { padding: 0 12px 14px; }
.anb-video-card__title { font-size: 0.92rem; line-height: 1.4; margin: 0 0 4px; }
.anb-video-card__title a { color: var(--anb-text); }
.anb-video-card__title a:hover { color: var(--anb-accent); }
.anb-video-card__meta { font-size: 0.75rem; color: var(--anb-text-muted); }

.anb-video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--anb-radius); overflow: hidden; background: #000; margin-bottom: 28px; }
.anb-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------------------------------
   11. SECTION 07 — PARTNERS / LOGO STRIP
   ------------------------------------------------------------------------- */
.anb-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 60px); }
.anb-logos__item { opacity: 0.65; filter: grayscale(1); transition: opacity 0.3s ease, filter 0.3s ease; max-height: 46px; }
.anb-logos__item:hover { opacity: 1; filter: grayscale(0); }

/* Section 07 — กริดคอลัมน์คงที่ (เลือกได้จาก Customizer) */
.anb-logos--cols { display: grid; justify-items: center; align-items: center; gap: clamp(20px, 3vw, 44px); }
.anb-logos--cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.anb-logos--cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.anb-logos--cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(50%, 150px), 1fr)); }
.anb-logos--cols-5 { grid-template-columns: repeat(auto-fit, minmax(min(50%, 125px), 1fr)); }
.anb-logos--cols-6 { grid-template-columns: repeat(auto-fit, minmax(min(50%, 105px), 1fr)); }
.anb-logos--color .anb-logos__item { opacity: 1; filter: none; }
.anb-logos__text { font-family: var(--anb-font-display); font-weight: 600; font-size: 1.1rem; color: var(--anb-text-muted); }

/* -------------------------------------------------------------------------
   12. SECTION 08 — CTA BANNER
   ------------------------------------------------------------------------- */
.anb-cta-banner {
	position: relative;
	overflow: hidden;
	border-radius: var(--anb-radius-lg);
	padding: clamp(36px, 5vw, 72px);
	background: linear-gradient(120deg, var(--anb-accent) 0%, color-mix(in srgb, var(--anb-accent) 55%, var(--anb-accent-2)) 100%);
	color: var(--anb-accent-contrast);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}
.anb-cta-banner h2 { color: inherit; margin: 0 0 10px; }
.anb-cta-banner p { color: inherit; opacity: 0.92; margin: 0; max-width: 58ch; }
.anb-cta-banner .anb-btn--primary { background: var(--anb-accent-contrast); color: var(--anb-accent); }
.anb-cta-banner .anb-btn--primary:hover { background: var(--anb-accent-contrast); opacity: 0.9; color: var(--anb-accent); }
.anb-cta-banner .anb-btn--secondary { border-color: color-mix(in srgb, var(--anb-accent-contrast) 60%, transparent); color: var(--anb-accent-contrast); }

/* -------------------------------------------------------------------------
   13. SECTION 09 — FOOTER
   ------------------------------------------------------------------------- */
.anb-footer { background: var(--anb-bg-footer); color: var(--anb-text-footer); padding: clamp(48px, 6vw, 80px) var(--anb-gutter) 28px; }
.anb-footer__inner { max-width: var(--anb-container); margin-inline: auto; }
/*
 * v3.9.2 — คอลัมน์ส่วนท้ายเรียงแนวนอนเสมอ
 *
 * v3.9.1 เขียนเป็น `1.5fr repeat(auto-fit, …)` ซึ่งผิดสเปก CSS — auto-fit/auto-fill
 * ใช้ร่วมกับแทร็กแบบยืดหยุ่น (fr) ในรายการเดียวกันไม่ได้ เบราว์เซอร์จึงทิ้งกฎทั้งบรรทัด
 * แล้วตกไปเป็นคอลัมน์เดียว ทำให้ส่วนท้ายเรียงลงมาแนวตั้ง
 */
.anb-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	align-items: start;
	gap: clamp(24px, 3vw, 48px);
}
.anb-footer__brand .anb-brand__name { color: var(--anb-text-footer); }
.anb-footer__brand .anb-brand__tag { color: var(--anb-text-footer-muted); }
.anb-footer__blurb { font-size: 0.9rem; color: var(--anb-text-footer-muted); max-width: 40ch; margin: 16px 0 20px; }
.anb-footer h4,
.anb-footer__heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--anb-text-footer); margin: 0 0 18px; font-family: var(--anb-font-body); }
.anb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.anb-footer a { color: var(--anb-text-footer-muted); font-size: 0.9rem; }
.anb-footer a:hover { color: var(--anb-accent); }
.anb-footer .widget { margin-bottom: 28px; }
.anb-social { display: flex; gap: 10px; }
.anb-social a {
	width: 38px; height: 38px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
	color: var(--anb-text-footer);
	font-size: 0.78rem;
	font-weight: 700;
	transition: background 0.25s ease, transform 0.25s ease;
}
.anb-social a:hover { background: var(--anb-accent); color: var(--anb-accent-contrast); transform: translateY(-2px); }
.anb-footer__bottom {
	margin-top: clamp(36px, 4vw, 56px);
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
	font-size: 0.82rem;
	color: var(--anb-text-footer-muted);
}
.anb-footer__copy { flex: 1 1 220px; }
.anb-footer__legal { flex: 0 1 auto; margin-inline-start: auto; }
.anb-footer__langrow { display: flex; justify-content: center; margin-top: 18px; }

/* -------------------------------------------------------------------------
   13.1 Language Switcher — ตัวสลับภาษา ไทย / English (v2.1.0)
   ------------------------------------------------------------------------- */
.anb-langswitch { display: inline-flex; align-items: center; gap: 10px; }
.anb-langswitch__label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--anb-text-footer-muted);
}
.anb-langswitch__list {
	display: inline-flex; align-items: center; gap: 6px;
	margin: 0; padding: 4px;
	list-style: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
}
.anb-langswitch__item { margin: 0; }
.anb-langswitch__link {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	color: var(--anb-text-footer-muted);
	text-decoration: none;
	transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.anb-langswitch__link:hover,
.anb-langswitch__link:focus-visible { background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateY(-1px); }
.anb-langswitch__link.is-current {
	background: var(--anb-accent);
	color: var(--anb-accent-contrast);
	cursor: default;
}
.anb-langswitch__link.is-current:hover { transform: none; }
.anb-flag {
	display: block; flex: 0 0 auto;
	width: 21px; height: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
	object-fit: cover;
}
.anb-langswitch--flag .anb-langswitch__link { padding: 6px 9px; }

/* ตัวสลับภาษาในแถบเมนูด้านบน (พื้นหลังสว่าง) */
.anb-langswitch--header { margin-inline-end: 4px; }
.anb-langswitch--header .anb-langswitch__list { background: var(--anb-surface, rgba(0, 0, 0, 0.05)); padding: 3px; }
.anb-langswitch--header .anb-langswitch__link { color: var(--anb-text-muted); padding: 5px 8px; }
.anb-langswitch--header .anb-langswitch__link:hover { background: rgba(0, 0, 0, 0.07); color: var(--anb-text); }
.anb-langswitch--header .anb-langswitch__link.is-current { background: var(--anb-accent); color: var(--anb-accent-contrast); }

.anb-partial--inline { display: inline-flex; }

.anb-backtotop {
	position: fixed; right: 22px; bottom: 22px; z-index: 80;
	width: 46px; height: 46px;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%;
	background: var(--anb-accent); color: var(--anb-accent-contrast);
	cursor: pointer; opacity: 0; visibility: hidden;
	box-shadow: var(--anb-shadow);
	transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s var(--anb-ease);
}
.anb-backtotop.is-visible { opacity: 1; visibility: visible; }
.anb-backtotop:hover { transform: translateY(-3px); }

/* -------------------------------------------------------------------------
   14. BLOG / ARCHIVE / SINGLE / COMMENTS
   ------------------------------------------------------------------------- */
.anb-page-hero { padding: clamp(48px, 6vw, 86px) var(--anb-gutter) clamp(28px, 3vw, 44px); background: var(--anb-bg-elevated); border-bottom: 1px solid var(--anb-border); }
.anb-page-hero__inner { max-width: var(--anb-container); margin-inline: auto; }
.anb-page-hero h1 { margin: 10px 0 12px; }
.anb-page-hero p { color: var(--anb-text-muted); max-width: 70ch; margin: 0; }
.anb-breadcrumb { font-size: 0.82rem; color: var(--anb-text-muted); margin-bottom: 6px; }
.anb-breadcrumb a { color: var(--anb-text-muted); }
.anb-breadcrumb a:hover { color: var(--anb-accent); }

.anb-entry { max-width: var(--anb-container-text); margin-inline: auto; }
.anb-entry__meta { font-size: 0.86rem; color: var(--anb-text-muted); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.anb-entry__thumb { border-radius: var(--anb-radius); overflow: hidden; margin-bottom: 34px; }
.anb-entry__content { font-size: 1.05rem; line-height: 1.85; }
.anb-entry__content h2 { margin-top: 1.9em; }
.anb-entry__content h3 { margin-top: 1.6em; }
.anb-entry__content ul,
.anb-entry__content ol { padding-left: 1.4em; margin-bottom: 1.3em; }
.anb-entry__content li { margin-bottom: 0.5em; }
.anb-entry__content img { border-radius: var(--anb-radius-sm); }
.anb-entry__tags { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.anb-entry__footer { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--anb-border); }

.anb-pagination { display: flex; gap: 8px; justify-content: center; margin-top: clamp(36px, 4vw, 56px); flex-wrap: wrap; }
.anb-pagination .page-numbers {
	min-width: 42px; height: 42px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--anb-border);
	border-radius: 8px;
	color: var(--anb-text);
	font-weight: 600;
	font-size: 0.9rem;
}
.anb-pagination .page-numbers:hover { border-color: var(--anb-accent); color: var(--anb-accent); }
.anb-pagination .page-numbers.current { background: var(--anb-accent); border-color: var(--anb-accent); color: var(--anb-accent-contrast); }

.anb-comments { max-width: var(--anb-container-text); margin: clamp(44px, 5vw, 72px) auto 0; padding-top: 34px; border-top: 1px solid var(--anb-border); }
.anb-comments .comment-list { list-style: none; margin: 0 0 34px; padding: 0; }
.anb-comments .comment-list li { margin-bottom: 24px; }
.anb-comments .comment-body { background: var(--anb-bg-card); border: 1px solid var(--anb-border); border-radius: var(--anb-radius-sm); padding: 18px 20px; }
.anb-comments .children { list-style: none; padding-left: clamp(16px, 3vw, 40px); margin-top: 20px; }

/* -------------------------------------------------------------------------
   15. BLOG + VIDEO HUB TEMPLATE (80 / 20)
   ------------------------------------------------------------------------- */
.anb-hub {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--anb-sidebar-width, 20%);
	gap: clamp(28px, 3.2vw, 52px);
	align-items: start;
	max-width: var(--anb-container);
	margin-inline: auto;
}
.anb-hub--left { grid-template-columns: var(--anb-sidebar-width, 20%) minmax(0, 1fr); }
.anb-hub--left .anb-hub__sidebar { order: -1; }
.anb-hub--full { grid-template-columns: minmax(0, 1fr); }

.anb-hub__main { min-width: 0; }
.anb-hub__sidebar { position: sticky; top: calc(var(--anb-header-h) + 20px); min-width: 0; }
.anb-hub__sidebar::-webkit-scrollbar { width: 6px; }
.anb-hub__sidebar::-webkit-scrollbar-thumb { background: var(--anb-border); border-radius: 3px; }

.anb-videohub__group { margin-bottom: 30px; }
.anb-videohub__group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--anb-accent); }
.anb-videohub__group-title { font-size: 0.95rem; margin: 0; }
.anb-videohub__count { font-size: 0.72rem; color: var(--anb-text-muted); font-weight: 600; }
.anb-videohub__list { display: flex; flex-direction: column; gap: 14px; }
.anb-videohub__more { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 700; color: var(--anb-accent); }
.anb-videohub__title { font-size: 1.05rem; margin: 0 0 4px; }
.anb-videohub__intro { font-size: 0.85rem; color: var(--anb-text-muted); margin: 0 0 20px; }

/* Compact video row for the 20% sidebar */
.anb-video-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.anb-video-row__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--anb-bg-elevated); }
.anb-video-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.anb-video-row__thumb::after {
	content: '▶';
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 0.7rem;
	background: rgba(12, 17, 23, 0.32);
	opacity: 0; transition: opacity 0.25s ease;
}
.anb-video-row:hover .anb-video-row__thumb::after { opacity: 1; }
.anb-video-row__title { font-size: 0.82rem; line-height: 1.4; margin: 0 0 3px; font-family: var(--anb-font-body); font-weight: 600; }
.anb-video-row__title a { color: var(--anb-text); }
.anb-video-row__title a:hover { color: var(--anb-accent); }
.anb-video-row__meta { font-size: 0.7rem; color: var(--anb-text-muted); }

/* Sidebar widgets */
.anb-widget { background: var(--anb-bg-card); border: 1px solid var(--anb-border); border-radius: var(--anb-radius); padding: 20px; margin-bottom: 22px; }
.anb-widget__title { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; font-family: var(--anb-font-body); }
.anb-widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.anb-widget a { color: var(--anb-text); }
.anb-widget a:hover { color: var(--anb-accent); }

/* -------------------------------------------------------------------------
   16. ENTERPRISE PAGE TEMPLATE
   ------------------------------------------------------------------------- */
.anb-timeline { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--anb-border); padding-left: 28px; }
.anb-timeline__item { position: relative; padding-bottom: 32px; }
.anb-timeline__item::before {
	content: ''; position: absolute; left: -36px; top: 6px;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--anb-bg); border: 3px solid var(--anb-accent);
}
.anb-timeline__year { font-family: var(--anb-font-display); font-weight: 700; color: var(--anb-accent); font-size: 0.95rem; }
.anb-timeline__title { font-size: 1.1rem; margin: 4px 0 6px; }
.anb-timeline__desc { color: var(--anb-text-muted); font-size: 0.95rem; margin: 0; }

.anb-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.anb-team__card { text-align: center; }
.anb-team__photo { aspect-ratio: 1; border-radius: var(--anb-radius); overflow: hidden; margin-bottom: 14px; }
.anb-team__photo img { width: 100%; height: 100%; object-fit: cover; }
.anb-team__name { font-size: 1.05rem; margin: 0 0 2px; }
.anb-team__role { font-size: 0.85rem; color: var(--anb-accent); font-weight: 600; }

/* -------------------------------------------------------------------------
   17. CONTACT / FORMS
   ------------------------------------------------------------------------- */
.anb-form { display: flex; flex-direction: column; gap: 14px; }
.anb-form label { font-size: 0.85rem; font-weight: 600; }
input[type='text'],
input[type='email'],
input[type='url'],
input[type='tel'],
input[type='search'],
input[type='password'],
input[type='number'],
select,
textarea {
	width: 100%;
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--anb-text);
	background: var(--anb-bg-card);
	border: 1px solid var(--anb-border);
	border-radius: var(--anb-radius-sm);
	padding: 13px 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--anb-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--anb-accent) 18%, transparent);
}
textarea { min-height: 140px; resize: vertical; }
button, input[type='submit'] { font-family: inherit; cursor: pointer; }
input[type='submit'] {
	background: var(--anb-accent); color: var(--anb-accent-contrast);
	border: 0; font-weight: 700; padding: 14px 28px; width: auto;
}

.anb-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 64px); }
.anb-contact-info { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.anb-contact-info__item { display: flex; gap: 12px; align-items: flex-start; }
.anb-contact-info__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--anb-text-muted); font-weight: 700; }
.anb-map { border-radius: var(--anb-radius); overflow: hidden; min-height: 320px; }
.anb-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.anb-searchform { display: flex; gap: 8px; }
.anb-searchform input[type='search'] { flex: 1; }

/* -------------------------------------------------------------------------
   18. REVEAL ANIMATIONS & UTILITIES
   ------------------------------------------------------------------------- */
.anb-reveal {
	opacity: 0;
	transform: translateY(24px) scale(0.985);
	filter: blur(3px);
	transition: opacity 0.9s var(--anb-ease), transform 0.9s var(--anb-ease), filter 0.7s ease;
	transition-delay: var(--anb-delay, 0s);
}
.anb-reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

.anb-reveal-title {
	opacity: 0;
	transform: scale(1.35);
	filter: blur(10px);
	transform-origin: center;
	transition: opacity 1.1s var(--anb-ease), transform 1.1s var(--anb-ease), filter 0.9s ease;
	transition-delay: var(--anb-delay, 0.1s);
}
.anb-reveal-title.is-visible { opacity: 1; transform: scale(1); filter: blur(0); }

body.anb-no-anim .anb-reveal,
body.anb-no-anim .anb-reveal-title { opacity: 1 !important; transform: none !important; filter: none !important; }

.anb-mt-0 { margin-top: 0; }
.anb-mb-0 { margin-bottom: 0; }
.anb-text-center { text-align: center; }
.anb-muted { color: var(--anb-text-muted); }
.anb-hidden { display: none !important; }

/* WordPress core alignment */
.alignwide { max-width: min(100%, 1280px); margin-inline: auto; }
.alignfull { max-width: 100%; }
.alignleft { float: left; margin: 0 1.6em 1.2em 0; }
.alignright { float: right; margin: 0 0 1.2em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, .wp-block-image figcaption { font-size: 0.82rem; color: var(--anb-text-muted); text-align: center; margin-top: 8px; }
.sticky .anb-post-card { border-color: var(--anb-accent); }

/* -------------------------------------------------------------------------
   19. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1200px) {
	.anb-footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
	.anb-hub { grid-template-columns: minmax(0, 1fr) minmax(240px, var(--anb-sidebar-width, 24%)); }
}

@media (max-width: 1024px) {
	:root { --anb-header-h: 72px; }

	/* [Section 01.2] จอแคบ: ยุบโหมดแยกคอลัมน์เป็นแนวตั้ง — ภาพอยู่บน ข้อความอยู่ล่าง
	   (ภาพนำสายตาก่อน แล้วค่อยอ่านหัวข้อ เหมือนการ์ดบทความทั่วไปบนมือถือ) */
	.anb-hero--split .anb-hero__inner,
	.anb-hero--media-left .anb-hero__inner,
	.anb-hero--media-right .anb-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}
	.anb-hero--media-left .anb-hero__figure,
	.anb-hero--media-right .anb-hero__figure { order: 1; aspect-ratio: 16 / 9; }
	.anb-hero--media-left .anb-hero__content,
	.anb-hero--media-right .anb-hero__content { order: 2; }
	.anb-hero--split .anb-hero__inner { padding-block: clamp(40px, 8vw, 72px); }

	/*
	 * แถบเมนูด้านบนเป็น position:fixed และหน้าแรกใช้ .anb-site-main--flush
	 * (padding-top:0) เพื่อให้แบนเนอร์ชนขอบบน — พอสลับมาให้ "ภาพอยู่บนสุด"
	 * ภาพจึงถูกแถบเมนูทับ ต้องเว้นที่ให้เท่ากับความสูงเมนูก่อนเสมอ
	 */
	.anb-site-main--flush .anb-hero--split .anb-hero__inner {
		padding-top: calc(var(--anb-header-h) + clamp(20px, 5vw, 40px));
	}

	.anb-nav-toggle { display: flex; }

	/*
	 * เมนูมือถือ — ต้องใช้ position:absolute ไม่ใช่ fixed
	 *
	 * .anb-header มี backdrop-filter ซึ่งทำให้กลายเป็น containing block ของ
	 * ลูกที่เป็น position:fixed ทั้งหมด เมนูที่เคยตั้ง inset:var(--anb-header-h) 0 0 0
	 * จึงถูกวัดเทียบกับกล่อง header สูงแค่ 72px ไม่ใช่ทั้งหน้าจอ
	 * ผลคือแผงเมนูเหลือความสูงเกือบศูนย์ มองเห็นแค่รายการแรกรายการเดียว
	 *
	 * เปลี่ยนเป็นแผงดรอปดาวน์ที่กางลงมาจากใต้แถบเมนู (top:100%) แทน
	 * ซึ่งให้ผลเหมือนกันเพราะ .anb-header ปักอยู่บนสุดของจอด้วย position:fixed อยู่แล้ว
	 */
	.anb-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100dvh - var(--anb-header-h));
		background: var(--anb-bg);
		padding: 14px var(--anb-gutter) 28px;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-top: 1px solid var(--anb-border);
		box-shadow: 0 18px 40px -22px rgba(15, 22, 32, 0.5);

		/* สถานะปิด — ยุบขึ้นไปซ่อนใต้แถบเมนู */
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition:
			opacity 0.28s var(--anb-ease),
			transform 0.28s var(--anb-ease),
			visibility 0s linear 0.28s;
	}
	.anb-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition:
			opacity 0.28s var(--anb-ease),
			transform 0.28s var(--anb-ease),
			visibility 0s linear 0s;
	}

	.anb-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.anb-nav a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--anb-border); border-radius: 0; }

	/* รายการเมนูไล่กันขึ้นมาทีละอัน ให้รู้สึกว่าเมนูกำลัง "กาง" ออก */
	.anb-nav > ul > li {
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.3s var(--anb-ease), transform 0.3s var(--anb-ease);
	}
	.anb-nav.is-open > ul > li { opacity: 1; transform: translateY(0); }
	.anb-nav.is-open > ul > li:nth-child(1) { transition-delay: 0.04s; }
	.anb-nav.is-open > ul > li:nth-child(2) { transition-delay: 0.08s; }
	.anb-nav.is-open > ul > li:nth-child(3) { transition-delay: 0.12s; }
	.anb-nav.is-open > ul > li:nth-child(4) { transition-delay: 0.16s; }
	.anb-nav.is-open > ul > li:nth-child(5) { transition-delay: 0.20s; }
	.anb-nav.is-open > ul > li:nth-child(6) { transition-delay: 0.24s; }
	.anb-nav.is-open > ul > li:nth-child(7) { transition-delay: 0.28s; }
	.anb-nav.is-open > ul > li:nth-child(n + 8) { transition-delay: 0.32s; }

	/* ฉากหลังจาง ๆ ให้โฟกัสอยู่ที่เมนู และแตะที่ว่างเพื่อปิดได้ */
	.anb-nav-scrim {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(10, 14, 19, 0.42);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.28s ease, visibility 0s linear 0.28s;
		z-index: 80;
		border: 0;
		padding: 0;
		cursor: pointer;
	}
	.anb-nav-scrim.is-open {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.28s ease, visibility 0s linear 0s;
	}

	/* ปุ่ม CTA ย้ายมาอยู่ท้ายเมนูแทนที่จะซ่อนทิ้ง */
	.anb-nav__cta { display: block; margin-top: 18px; }
	.anb-nav__cta .anb-btn { width: 100%; justify-content: center; }
	.anb-nav .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-left: 2px solid var(--anb-accent);
		border-radius: 0; padding: 0 0 0 14px; margin: 0 0 8px;
		display: none;
	}
	.anb-nav li.is-open > .sub-menu { display: block; }
	.anb-nav .menu-item-has-children > a::after { content: none; }
	.anb-nav li { position: relative; }
	.anb-submenu-toggle { display: block; }
	.anb-header__actions .anb-btn { display: none; }
	.anb-hub,
	.anb-hub--left { grid-template-columns: minmax(0, 1fr); }
	.anb-hub__sidebar { position: static; }
	.anb-videohub__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
	.anb-contact-grid { grid-template-columns: 1fr; }
	.anb-feature { grid-template-columns: 1fr; }
	.anb-feature:nth-child(even) .anb-feature__media { order: 0; }
	.anb-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	:root { --anb-hero-height: 560px; }
	.anb-hero__arrow { width: 40px; height: 40px; }
	.anb-hero__arrow--prev { left: 8px; }
	.anb-hero__arrow--next { right: 8px; }
	/* จอเล็ก: ลดระยะกันชนของลูกศร และตัดระยะขอบที่ตั้งเองออกเพื่อไม่ให้ข้อความแคบเกินไป */
	.anb-hero { --anb-hero-pad-left: 0px; --anb-hero-pad-right: 0px; }
	.anb-hero:not(.anb-hero--no-arrows) { --anb-hero-arrow-space: 56px; }
	.anb-post-row { grid-template-columns: 1fr; }
	.anb-post-row__media { height: 200px; }
	.anb-footer__grid { grid-template-columns: 1fr; }
	.anb-footer__bottom { flex-direction: column; }
	.anb-cta-banner { flex-direction: column; align-items: flex-start; }
	.anb-btn { width: 100%; }
	.anb-hero__actions { width: 100%; }
}

/* -------------------------------------------------------------------------
   20. ACCESSIBILITY & PRINT
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.anb-reveal, .anb-reveal-title { opacity: 1 !important; transform: none !important; filter: none !important; }
	.anb-nav > ul > li { opacity: 1 !important; transform: none !important; transition: none !important; }
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible { outline: 3px solid var(--anb-accent); outline-offset: 2px; border-radius: 4px; }

@media print {
	.anb-header, .anb-footer, .anb-hub__sidebar, .anb-backtotop, .anb-hero__arrow, .anb-hero__dots { display: none !important; }
	body { background: #fff; color: #000; }
	.anb-site-main { padding-top: 0; }
}

/* -------------------------------------------------------------------------
   21. ANB CONTACT FORM (v3.1.0)
   ------------------------------------------------------------------------- */
.anb-contact { max-width: 760px; }
.anb-contact__head { margin-bottom: clamp(20px, 3vw, 32px); }
.anb-contact__title { margin: 0 0 10px; }
.anb-contact__intro { color: var(--anb-text-muted); margin: 0; }

.anb-contact__notice {
	border-radius: var(--anb-radius);
	padding: clamp(16px, 2.2vw, 22px);
	margin-bottom: 24px;
	border: 1px solid var(--anb-border);
	background: var(--anb-bg-card);
}
.anb-contact__notice--ok { border-color: #2f9e5f; background: color-mix(in srgb, #2f9e5f 10%, var(--anb-bg-card)); }
.anb-contact__notice--error { border-color: #d1573c; background: color-mix(in srgb, #d1573c 10%, var(--anb-bg-card)); }
.anb-contact__notice strong { display: block; margin-bottom: 6px; }
.anb-contact__notice p { margin: 0; color: var(--anb-text-muted); }
.anb-contact__notice ul { margin: 8px 0 0; padding-left: 20px; color: var(--anb-text-muted); }
.anb-contact__ref code { background: var(--anb-bg-elevated); padding: 2px 8px; border-radius: 4px; }

/* กับดักบอท — ต้องไม่ถูกมองเห็นแต่ยังอยู่ใน DOM */
.anb-contact__trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px; overflow: hidden;
}

.anb-contact__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
}

.anb-field { margin: 0 0 20px; display: flex; flex-direction: column; gap: 7px; }
.anb-contact__grid .anb-field { margin: 0; }
.anb-field label { font-weight: 600; font-size: 0.94rem; }
.anb-req { color: #d1573c; }

.anb-field input[type='text'],
.anb-field input[type='email'],
.anb-field input[type='tel'],
.anb-field input[type='url'],
.anb-field select,
.anb-field textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 0.98rem;
	color: var(--anb-text);
	background: var(--anb-bg-card);
	border: 1px solid var(--anb-border);
	border-radius: var(--anb-radius-sm);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.anb-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.anb-field input:focus,
.anb-field select:focus,
.anb-field textarea:focus {
	outline: none;
	border-color: var(--anb-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--anb-accent) 22%, transparent);
}

.anb-contact__topics {
	border: 1px solid var(--anb-border);
	border-radius: var(--anb-radius);
	padding: clamp(16px, 2vw, 22px);
	margin: 24px 0;
	background: var(--anb-bg-card);
}
.anb-contact__topics legend { font-weight: 700; padding: 0 8px; }
.anb-contact__topics-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	margin-top: 6px;
}
.anb-topic {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.95rem;
	line-height: 1.45;
	cursor: pointer;
	padding: 6px 8px;
	border-radius: var(--anb-radius-sm);
	transition: background 0.2s ease;
}
.anb-topic:hover { background: var(--anb-bg-elevated); }
.anb-topic input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--anb-accent); }

.anb-contact__warning {
	border-left: 4px solid var(--anb-accent-2);
	background: color-mix(in srgb, var(--anb-accent-2) 8%, var(--anb-bg-card));
	border-radius: var(--anb-radius-sm);
	padding: 16px 18px;
	margin: 24px 0;
}
.anb-contact__warning strong { display: block; margin-bottom: 6px; }
.anb-contact__warning p { margin: 0; font-size: 0.92rem; color: var(--anb-text-muted); line-height: 1.6; }

.anb-field--consent { margin-top: 8px; }
.anb-field--consent label {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-weight: 400;
	font-size: 0.95rem;
	line-height: 1.55;
	cursor: pointer;
}
.anb-field--consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--anb-accent); }

.anb-contact__actions { margin: 26px 0 0; }
.anb-contact__actions .anb-btn { width: auto; min-width: 220px; justify-content: center; }

/* เลย์เอาต์หน้าติดต่อ: ช่องทางติดต่อ + ฟอร์ม */
.anb-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
.anb-contact-info {
	background: var(--anb-bg-card);
	border: 1px solid var(--anb-border);
	border-radius: var(--anb-radius-lg);
	padding: clamp(22px, 2.6vw, 30px);
	position: sticky;
	top: calc(var(--anb-header-h) + 20px);
}
.anb-contact-info__title { font-size: var(--anb-fs-h3); margin: 0 0 18px; }
.anb-contact-info__row { display: flex; gap: 13px; margin-bottom: 18px; }
.anb-contact-info__icon { font-size: 1.2rem; line-height: 1.4; flex: none; }
.anb-contact-info__label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--anb-text-muted); margin-bottom: 3px; }
.anb-contact-info__value { font-size: 0.95rem; line-height: 1.55; }
.anb-contact-info__privacy { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--anb-border); font-size: 0.9rem; }
.anb-contact-form-wrap { min-width: 0; }
.anb-contact-form-wrap .anb-contact { max-width: none; }

@media (max-width: 900px) {
	.anb-contact-layout { grid-template-columns: minmax(0, 1fr); }
	.anb-contact-info { position: static; }
}

@media (max-width: 640px) {
	.anb-contact__grid,
	.anb-contact__topics-grid { grid-template-columns: minmax(0, 1fr); }
	.anb-contact__actions .anb-btn { width: 100%; }
}

/* -------------------------------------------------------------------------
   22. PRIVACY STATEMENT (PDPA) — v3.1.0
   ------------------------------------------------------------------------- */
.anb-privacy { margin-top: clamp(24px, 3vw, 36px); }
.anb-privacy__switch {
	display: flex;
	gap: 8px;
	padding: 6px;
	background: var(--anb-bg-elevated);
	border: 1px solid var(--anb-border);
	border-radius: 999px;
	width: fit-content;
	margin-bottom: clamp(24px, 3vw, 36px);
	position: sticky;
	top: calc(var(--anb-header-h) + 12px);
	z-index: 3;
}
.anb-privacy__tab {
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--anb-text-muted);
	padding: 9px 20px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.anb-privacy__tab:hover { color: var(--anb-text); }
.anb-privacy__tab.is-active { background: var(--anb-accent); color: var(--anb-accent-contrast); }

.anb-privacy__body h2 {
	font-size: var(--anb-fs-h3);
	margin: clamp(28px, 3.2vw, 40px) 0 0.5em;
	padding-top: clamp(16px, 2vw, 22px);
	border-top: 1px solid var(--anb-border);
}
.anb-privacy__body h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.anb-privacy__body p,
.anb-privacy__body li { color: var(--anb-text-muted); line-height: 1.75; }
.anb-privacy__body ul { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.anb-privacy__body strong { color: var(--anb-text); }

/* -------------------------------------------------------------------------
   23. COOKIE CONSENT (v3.3.0)
   ------------------------------------------------------------------------- */
.anb-cookie {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 200;
	padding: clamp(12px, 2vw, 20px);
	pointer-events: none;
}
.anb-cookie--bottom { bottom: 0; }
.anb-cookie--top { top: 0; }

.anb-cookie__inner {
	max-width: 1080px;
	margin-inline: auto;
	background: var(--anb-bg-card);
	border: 1px solid var(--anb-border);
	border-radius: var(--anb-radius-lg);
	box-shadow: 0 24px 60px -20px rgba(15, 22, 32, 0.45);
	padding: clamp(18px, 2.4vw, 26px);
	pointer-events: auto;

	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.3s var(--anb-ease), transform 0.3s var(--anb-ease);
}
.anb-cookie--top .anb-cookie__inner { transform: translateY(-16px); }
.anb-cookie.is-open .anb-cookie__inner { opacity: 1; transform: translateY(0); }

.anb-cookie__title { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.anb-cookie__text p { margin: 0; color: var(--anb-text-muted); font-size: 0.94rem; line-height: 1.65; }
.anb-cookie__text a { text-decoration: underline; }

.anb-cookie__banner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 32px);
	flex-wrap: wrap;
}
.anb-cookie__text { flex: 1 1 380px; min-width: 0; }

.anb-cookie__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}
.anb-cookie__actions .anb-btn { white-space: nowrap; }

/* ปุ่มปฏิเสธต้องเด่นพอ ๆ กับยอมรับ ตามหลักความยินยอมโดยอิสระ */
.anb-btn--ghost {
	background: transparent;
	border: 1px solid var(--anb-border);
	color: var(--anb-text);
}
.anb-btn--ghost:hover { border-color: var(--anb-accent); color: var(--anb-accent); }

/* ---- หน้าต่างตั้งค่ารายประเภท ---- */
.anb-cookie__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--anb-border);
}
.anb-cookie__close {
	border: 0;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--anb-text-muted);
	cursor: pointer;
	padding: 0 6px;
	border-radius: 6px;
}
.anb-cookie__close:hover { color: var(--anb-text); background: var(--anb-bg-elevated); }

.anb-cookie__cats {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: min(46vh, 380px);
	overflow-y: auto;
	overscroll-behavior: contain;
	margin-bottom: 18px;
	padding-right: 4px;
}
.anb-cookie__cat { padding: 14px 0; border-bottom: 1px solid var(--anb-border); }
.anb-cookie__cat:last-child { border-bottom: 0; }
.anb-cookie__cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
}
.anb-cookie__cat-title { font-weight: 700; font-size: 0.98rem; }
.anb-cookie__cat-desc { margin: 8px 0 0; font-size: 0.88rem; line-height: 1.6; color: var(--anb-text-muted); max-width: 68ch; }
.anb-cookie__always {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--anb-accent);
	background: color-mix(in srgb, var(--anb-accent) 12%, transparent);
	padding: 5px 12px;
	border-radius: 999px;
	white-space: nowrap;
	flex: none;
}

/* สวิตช์เปิด/ปิด */
.anb-cookie__switch { position: relative; flex: none; width: 46px; height: 26px; }
.anb-cookie__switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
.anb-cookie__slider {
	position: absolute;
	inset: 0;
	background: var(--anb-border);
	border-radius: 999px;
	transition: background 0.25s ease;
}
.anb-cookie__slider::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.25s var(--anb-ease);
}
.anb-cookie__switch input:checked ~ .anb-cookie__slider { background: var(--anb-accent); }
.anb-cookie__switch input:checked ~ .anb-cookie__slider::after { transform: translateX(20px); }
.anb-cookie__switch input:focus-visible ~ .anb-cookie__slider {
	outline: 3px solid var(--anb-accent);
	outline-offset: 2px;
}

/* ---- ปุ่มลอยเปิดตั้งค่าอีกครั้ง ---- */
.anb-cookie-reopen {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 190;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--anb-border);
	background: var(--anb-bg-card);
	box-shadow: 0 8px 24px -10px rgba(15, 22, 32, 0.5);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.anb-cookie-reopen:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(15, 22, 32, 0.55); }

/* ลิงก์ข้อความสำหรับเปิดตั้งค่า (ชอร์ตโค้ด) */
.anb-cookie-link {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	color: var(--anb-accent);
	cursor: pointer;
	text-decoration: underline;
}
.anb-cookie-link:hover { color: var(--anb-accent-hover); }

@media (max-width: 720px) {
	.anb-cookie__banner { flex-direction: column; align-items: stretch; }
	.anb-cookie__actions { flex-direction: column-reverse; }
	.anb-cookie__actions .anb-btn { width: 100%; justify-content: center; }
	.anb-cookie-reopen { left: 12px; bottom: 12px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.anb-cookie__inner { transition: none; }
}

/* ลิงก์ตั้งค่าคุกกี้ในส่วนท้ายเว็บ (v3.3.1) — แทนปุ่มลอยมุมจอ */
.anb-footer__cookie {
	color: var(--anb-text-footer-muted);
	font-size: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.anb-footer__cookie:hover {
	color: var(--anb-text-footer);
	border-bottom-color: currentColor;
}

/* =========================================================================
   28. Single Post Layout + Sidebar Sections  [Section 11] — v3.5.0
   ====================================================================== */

.anb-single .anb-page-hero__inner,
.anb-single .anb-single__wrap {
	padding-left: var(--anb-single-space, 2%);
	padding-right: var(--anb-single-space, 2%);
	max-width: none;
}

.anb-single__wrap {
	display: block;
	margin-inline: auto;
}

/* Two-column mode — fr units so the gap never collapses the sidebar */
.anb-single--sidebar .anb-single__wrap {
	display: grid;
	gap: clamp(20px, 2.4vw, 40px);
	grid-template-columns: minmax(0, var(--anb-single-main, 74fr)) minmax(260px, var(--anb-single-side, 26fr));
	align-items: start;
}

.anb-single--sidebar.anb-single--left .anb-single__wrap {
	grid-template-columns: minmax(260px, var(--anb-single-side, 26fr)) minmax(0, var(--anb-single-main, 74fr));
}

.anb-single--sidebar.anb-single--left .anb-single__main { order: 2; }
.anb-single--sidebar.anb-single--left .anb-single__side { order: 1; }

.anb-single__main { min-width: 0; }

/* Let the article fill its column instead of the narrow reading measure */
.anb-single--sidebar .anb-entry,
.anb-single--sidebar .anb-comments { max-width: none; }

.anb-single--full .anb-entry,
.anb-single--full .anb-comments { max-width: var(--anb-container-text, 780px); margin-inline: auto; }

.anb-single__side {
	min-width: 0;
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

/* ---- Group header ---- */
.anb-side-head {
	font-family: var(--anb-side-head-font, var(--anb-font-display));
	font-size: var(--anb-side-head-size, 18px);
	font-weight: var(--anb-side-head-weight, 700);
	color: var(--anb-side-head-color, var(--anb-ink));
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--anb-side-head-accent, var(--anb-accent));
	line-height: 1.3;
}

/* ---- Cards ---- */
.anb-side-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.anb-side-item { min-width: 0; }

.anb-side-item--side {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.anb-side-item--side .anb-side-item__thumb { flex: 0 0 92px; }
.anb-side-item--side .anb-side-item__thumb img { width: 92px; height: 52px; }
.anb-side-item--side .anb-side-item__excerpt { display: none; }

.anb-side-item--top + .anb-side-item--top {
	border-top: 1px solid var(--anb-border);
	padding-top: 18px;
}

.anb-side-item__thumb {
	position: relative;
	display: block;
	border-radius: var(--anb-radius, 8px);
	overflow: hidden;
	line-height: 0;
	margin-bottom: 8px;
}

.anb-side-item--side .anb-side-item__thumb { margin-bottom: 0; }

.anb-side-item__thumb img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.anb-side-item__thumb:hover img { transform: scale(1.04); }

.anb-side-item__dur {
	position: absolute;
	right: 6px;
	bottom: 6px;
	background: rgba(0, 0, 0, .78);
	color: #fff;
	font-size: 11px;
	line-height: 1;
	padding: 3px 5px;
	border-radius: 3px;
}

.anb-side-item__body { min-width: 0; }

.anb-side-item__title {
	display: block;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	color: inherit;
	overflow-wrap: break-word;
	word-break: normal;
}

.anb-side-item__title:hover { color: var(--anb-accent); }

.anb-side-item__meta {
	display: block;
	margin-top: 4px;
	font-size: .8em;
	opacity: .7;
}

.anb-side-item__excerpt {
	margin: 6px 0 0;
	font-size: .88em;
	line-height: 1.6;
	opacity: .85;
}

/* ---- Small read-more button ---- */
.anb-side-more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 9px;
	padding: 5px 12px;
	font-size: .8em;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	color: var(--anb-accent);
	border: 1px solid var(--anb-accent);
	border-radius: 999px;
	transition: background .2s ease, color .2s ease;
}

.anb-side-more:hover {
	background: var(--anb-accent);
	color: #fff;
}

.anb-side-more span { transition: transform .2s ease; }
.anb-side-more:hover span { transform: translateX(3px); }

/* ---- Sidebar video pagination ---- */
.anb-side-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

.anb-side-pager__link {
	min-width: 30px;
	padding: 4px 8px;
	text-align: center;
	border: 1px solid var(--anb-border);
	border-radius: 6px;
	text-decoration: none;
	font-size: .85em;
	color: inherit;
}

.anb-side-pager__link.is-active,
.anb-side-pager__link:hover {
	background: var(--anb-accent);
	border-color: var(--anb-accent);
	color: #fff;
}

/* ---- Stack on tablets and phones ---- */
@media (max-width: 900px) {
	.anb-single--sidebar .anb-single__wrap,
	.anb-single--sidebar.anb-single--left .anb-single__wrap {
		grid-template-columns: 1fr;
	}

	.anb-single--sidebar.anb-single--left .anb-single__main,
	.anb-single--sidebar.anb-single--left .anb-single__side { order: initial; }

	.anb-single__side { position: static; }
}

/* =========================================================================
   29. Single Post Tools + Video Hub Filter  — v3.6.0
   ====================================================================== */

/* ---- Toolbar ---- */
.anb-single__tools {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	flex: 0 0 auto;
}

/* Meta and the tool button share one row, with no wasted space above */
.anb-entry__topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 0 0 14px;
}

.anb-entry__topbar .anb-entry__meta { margin: 0; flex: 1 1 auto; }

/* Trim the dead space between the page header and the article */
.anb-single .anb-single__main.anb-section { padding-top: clamp(14px, 1.6vw, 22px); }
.anb-single .anb-entry > :first-child { margin-top: 0; }

@media (max-width: 600px) {
	.anb-entry__topbar { justify-content: flex-start; }
}

.anb-tool {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-size: .82rem;
	font-weight: 600;
	line-height: 1;
	color: var(--anb-muted);
	background: var(--anb-surface);
	border: 1px solid var(--anb-border);
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.anb-tool:hover,
.anb-tool[aria-pressed="true"] {
	background: var(--anb-accent);
	border-color: var(--anb-accent);
	color: #fff;
}

.anb-tool__icon { display: inline-flex; }
.anb-tool__i-min { display: none; }
.anb-tool--max[aria-pressed="true"] .anb-tool__i-max { display: none; }
.anb-tool--max[aria-pressed="true"] .anb-tool__i-min { display: inline; }

/* ---- Maximised: article uses the whole viewport width ---- */
.anb-single.is-maximised .anb-single__wrap,
.anb-single--sidebar.is-maximised .anb-single__wrap,
.anb-single--sidebar.anb-single--left.is-maximised .anb-single__wrap {
	display: block;
	grid-template-columns: minmax(0, 1fr);
	padding-left: clamp(12px, 2vw, 28px);
	padding-right: clamp(12px, 2vw, 28px);
	max-width: none;
	transition: padding .25s ease;
}

.anb-single.is-maximised .anb-single__side { display: none; }

/* Full-width mode ignores the reading measure in both layout modes */
.anb-single.is-maximised .anb-entry,
.anb-single.is-maximised .anb-comments,
.anb-single--full.is-maximised .anb-entry,
.anb-single--full.is-maximised .anb-comments {
	max-width: none;
	margin-inline: 0;
}

.anb-single.is-maximised .anb-page-hero__inner {
	padding-left: clamp(12px, 2vw, 28px);
	padding-right: clamp(12px, 2vw, 28px);
	max-width: none;
}

/* ---- "View all videos" button ---- */
.anb-side-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding: 8px 16px;
	font-size: .85em;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	background: var(--anb-accent);
	border-radius: 999px;
	transition: background .2s ease, transform .2s ease;
}

.anb-side-all:hover { background: var(--anb-accent-hover, var(--anb-accent)); color: #fff; }
.anb-side-all span { transition: transform .2s ease; }
.anb-side-all:hover span { transform: translateX(3px); }

@media (max-width: 600px) {
	.anb-single__tools { justify-content: flex-start; flex-wrap: wrap; }
	.anb-tool { padding: 8px 10px; }
}

/* =========================================================================
   30. Sidebar group toggle + compact Video Hub toolbar — v3.7.0
   ====================================================================== */

/* ---- Collapsible group headers ---- */
.anb-side-head--toggle { padding-bottom: 0; border-bottom: 0; }

.anb-side-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 0 0 8px;
	margin: 0;
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	border-bottom: 2px solid var(--anb-side-head-accent, var(--anb-accent));
	cursor: pointer;
	text-align: left;
}

.anb-side-toggle__text { min-width: 0; }

.anb-side-toggle__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: var(--anb-side-head-accent, var(--anb-accent));
	background: color-mix(in srgb, var(--anb-accent) 12%, transparent);
	transition: transform .25s ease, background .2s ease;
}

.anb-side-toggle:hover .anb-side-toggle__icon {
	background: var(--anb-accent);
	color: #fff;
}

.anb-side-group.is-collapsed .anb-side-toggle__icon { transform: rotate(-90deg); }

.anb-side-body {
	overflow: hidden;
	max-height: 4000px;
	opacity: 1;
	transition: max-height .35s ease, opacity .25s ease, margin .25s ease;
}

.anb-side-group.is-collapsed .anb-side-body {
	max-height: 0;
	opacity: 0;
	margin-top: 0;
}

/* ---- Compact archive hero ---- */
.anb-page-hero--compact { padding-block: clamp(18px, 2.4vw, 30px); }
.anb-page-hero--compact h1 { margin: 2px 0 4px; }
.anb-page-hero--compact p { margin: 0; }
.anb-page-hero--compact .anb-breadcrumb { margin-bottom: 2px; }
.anb-page-hero--compact .anb-eyebrow { margin-bottom: 0; }

/* ---- Video Hub toolbar ---- */
.anb-vfilter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 0;
}

.anb-vfilter__search {
	display: flex;
	flex: 1 1 320px;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--anb-border);
	border-radius: 999px;
	overflow: hidden;
}

.anb-vfilter__search:focus-within {
	border-color: var(--anb-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--anb-accent) 18%, transparent);
}

.anb-vfilter__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 16px;
	font: inherit;
	font-size: .9rem;
	color: var(--anb-ink);
	background: none;
	border: 0;
}

.anb-vfilter__input:focus { outline: none; }

.anb-vfilter__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 18px;
	font-size: .85rem;
	font-weight: 600;
	color: #fff;
	background: var(--anb-accent);
	border: 0;
	cursor: pointer;
	transition: background .2s ease;
}

.anb-vfilter__go:hover { background: var(--anb-accent-hover, var(--anb-accent)); }

.anb-vfilter__select {
	padding: 9px 14px;
	font: inherit;
	font-size: .88rem;
	color: var(--anb-ink);
	background: #fff;
	border: 1px solid var(--anb-border);
	border-radius: 999px;
	cursor: pointer;
	min-height: 40px;
}

.anb-vfilter__select:focus {
	outline: none;
	border-color: var(--anb-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--anb-accent) 18%, transparent);
}

.anb-vfilter__sort { display: flex; align-items: center; gap: 6px; }

.anb-vfilter__dir {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--anb-accent);
	background: #fff;
	border: 1px solid var(--anb-border);
	border-radius: 50%;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.anb-vfilter__dir:hover {
	background: var(--anb-accent);
	border-color: var(--anb-accent);
	color: #fff;
}

.anb-vfilter__clear {
	font-size: .84rem;
	color: var(--anb-muted);
	text-decoration: underline;
	white-space: nowrap;
}

.anb-vfilter__clear:hover { color: var(--anb-accent); }

@media (max-width: 700px) {
	.anb-vfilter__search { flex: 1 1 100%; }
	.anb-vfilter__select { flex: 1 1 auto; }
	.anb-vfilter__go span { display: none; }
	.anb-vfilter__go { padding: 0 14px; }
}

/* =========================================================================
   31. Video Hub adaptive head panel — v3.8.0
   ====================================================================== */

.anb-vhead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: clamp(14px, 2.2vw, 32px);
}

.anb-vhead__intro { flex: 1 1 320px; min-width: 0; }

/* The toolbar becomes a self-contained panel on the right */
.anb-vhead .anb-vfilter {
	flex: 0 1 min(560px, 100%);
	justify-content: flex-end;
	padding: 12px 14px;
	background: color-mix(in srgb, var(--anb-surface) 70%, #fff);
	border: 1px solid var(--anb-border);
	border-radius: var(--anb-radius-lg, 14px);
}

/* The search row always takes a full line so it can never be squeezed thin */
.anb-vhead .anb-vfilter__search {
	flex: 1 1 100%;
	min-width: min(260px, 100%);
}

.anb-vhead .anb-vfilter__select { flex: 1 1 auto; min-width: min(150px, 100%); }
.anb-vhead .anb-vfilter__sort { flex: 1 1 auto; min-width: min(220px, 100%); }
.anb-vhead .anb-vfilter__clear { flex: 0 0 auto; }

/* Never let the input collapse to zero inside the pill */
.anb-vfilter__input { min-width: 0; }
.anb-vfilter__go { flex: 0 0 auto; }

/* Tablets and phones: panel drops below the title, full width */
@media (max-width: 900px) {
	.anb-vhead { align-items: stretch; }
	.anb-vhead .anb-vfilter { flex: 1 1 100%; justify-content: flex-start; }
}

/* =========================================================================
   32. Language toggle (single button) + footer menu list — v3.9.0
   ====================================================================== */

.anb-langswitch--toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.anb-langswitch--toggle .anb-langswitch__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	font-size: .86rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	color: inherit;
	background: color-mix(in srgb, currentColor 8%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
	border-radius: 999px;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.anb-langswitch--toggle .anb-langswitch__toggle:hover {
	background: var(--anb-accent);
	border-color: var(--anb-accent);
	color: #fff;
}

.anb-langswitch--toggle svg {
	width: 18px;
	height: auto;
	border-radius: 2px;
	display: block;
}

/* Footer menu columns render as a clean vertical list */
.anb-footer__grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.anb-footer__grid ul li { margin: 0; }

.anb-footer__grid ul a {
	text-decoration: none;
	line-height: 1.5;
	display: inline-block;
}

.anb-footer__grid ul a:hover { text-decoration: underline; }
