/*
Theme Name: Education House
Description: Child theme of Extendable for Education House Language School (design: Clear Sky).
Template: extendable
Version: 1.0.0
Requires at least: 6.5
Text Domain: education-house
*/

/* Parent theme presets remapped to the Clear Sky palette and scale. */
:root {
	--wp--preset--color--background: #FFFFFF;
	--wp--preset--color--foreground: #17233A;
	--wp--preset--color--primary: #2B3F86;
	--wp--preset--color--secondary: #3B5398;
	--wp--preset--color--tertiary: #F4F8FC;
	--wp--preset--font-family--heading: var(--wp--preset--font-family--inter);
	--wp--preset--font-size--medium: 17px;
	--wp--preset--font-size--large: 22px;
	--wp--preset--font-size--x-large: 40px;
	--wp--preset--font-size--xx-large: 58px;
	--eh-ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4 4 10-10'/%3E%3C/svg%3E");
	--eh-ico-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-8 8H8l-4 3v-6a8 8 0 1 1 17-5z'/%3E%3C/svg%3E");
	--eh-ico-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3.5 8.5-7 10-3.5-1.5-7-5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
	--eh-ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

body { -webkit-font-smoothing: antialiased; }
.wp-block-heading { hyphens: manual; text-wrap: pretty; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Buttons */
.wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 56px; padding: 0 30px; line-height: 1.2; white-space: nowrap;
}
.wp-block-button.is-style-eh-blue .wp-block-button__link {
	background: var(--wp--preset--gradient--btn-blue); color: #fff;
	box-shadow: var(--wp--custom--shadow--btn-blue);
}
.wp-block-button.is-style-eh-ghost .wp-block-button__link {
	background: #fff; color: var(--wp--preset--color--navy);
	box-shadow: var(--wp--custom--shadow--btn-ghost);
}
.wp-block-button.eh-btn-sm .wp-block-button__link { min-height: 42px; padding: 0 18px; font-size: 15px; }
.eh-ico-line .wp-block-button__link::before {
	content: ""; width: 18px; height: 18px; margin-right: 8px; background: var(--wp--preset--color--green);
	-webkit-mask: var(--eh-ico-chat) center / contain no-repeat; mask: var(--eh-ico-chat) center / contain no-repeat;
}
.eh-m { display: none !important; }

/* Group styles */
.wp-block-group.is-style-eh-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--custom--shadow--card);
}
.wp-block-group.is-style-eh-navy {
	background: var(--wp--preset--gradient--navy-block); color: #fff;
	border-radius: var(--wp--custom--radius--panel); box-shadow: var(--wp--custom--shadow--navy);
}

/* Glass header (allowed exception 1) */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky; top: calc(10px + var(--wp-admin--admin-bar--height, 0px)); z-index: 30; margin: 10px 14px 0;
}
.eh-glass {
	gap: 18px; padding: 10px 18px; border-radius: var(--wp--custom--radius--header);
	background: var(--wp--custom--glass--background);
	-webkit-backdrop-filter: var(--wp--custom--glass--filter); backdrop-filter: var(--wp--custom--glass--filter);
	border: var(--wp--custom--glass--border); box-shadow: var(--wp--custom--shadow--header);
}
.eh-glass .wp-block-site-logo img { height: 40px; width: auto; display: block; }
.eh-glass .wp-block-navigation { margin-left: auto; --navigation-layout-justification-setting: flex-end; }
.eh-glass .wp-block-navigation__container { gap: 24px; }
.eh-glass .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); font-weight: 600; }
.eh-glass .wp-block-buttons { gap: 10px; flex-wrap: nowrap; }

/* Language pill */
.eh-lang ul { display: inline-flex; align-items: center; height: 36px; margin: 0; padding: 3px; gap: 0; list-style: none; border-radius: 999px; background: rgba(43, 63, 134, 0.08); font-size: 13px; font-weight: 700; }
.eh-lang li { margin: 0; }
.eh-lang a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; color: var(--wp--preset--color--navy); }
.eh-lang .current-lang a { background: #fff; box-shadow: 0 1px 3px rgba(31, 60, 120, 0.18); }

/* Sections */
.eh-section { padding: 88px 32px; }
.eh-section p, .eh-section h1, .eh-section h2, .eh-section h3 { margin: 0; }
.eh-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--sky-text); }
.eh-lead { font-size: 20px; line-height: 1.55; color: var(--wp--preset--color--ink-lead); max-width: 560px; text-wrap: pretty; }
.eh-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); font-size: 13px; font-weight: 600; color: var(--wp--preset--color--ink-lead); }
.eh-tick { display: inline-flex; align-items: center; gap: 7px; }
.eh-tick::before {
	content: ""; flex: none; width: 16px; height: 16px; background: var(--wp--preset--color--green);
	-webkit-mask: var(--eh-ico-check) center / contain no-repeat; mask: var(--eh-ico-check) center / contain no-repeat;
}

/* Hero */
.eh-hero.eh-section { margin-top: -74px; padding: 150px 32px 72px; }
.eh-hero__cols.wp-block-columns { gap: 48px; align-items: center; margin: 0; }
.eh-hero__text { display: flex; flex-direction: column; gap: 18px; }
.eh-section .eh-hero__text > .wp-block-buttons { gap: 14px; margin-top: 10px; }
.eh-section .eh-hero__text > .eh-trust { margin-top: 22px; }
.eh-trust { gap: 10px 22px; font-size: 15px; font-weight: 600; color: var(--wp--preset--color--ink-lead); }

.eh-comp { position: relative; min-height: 500px; }
.eh-section .eh-comp > *, .eh-section .eh-comp__center > *, .eh-section .eh-comp__names > *, .eh-section .eh-card-float > *, .eh-section .eh-card-text > *, .eh-section .eh-hero__text > *, .eh-section .eh-trust > * { margin-block: 0; }
.eh-comp__center {
	position: absolute; inset: 40px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 18px; padding: 60px 40px 40px; text-align: center; border-radius: var(--wp--custom--radius--panel);
	background: linear-gradient(160deg, #fff, #EAF4FC); border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 30px 60px -30px rgba(31, 60, 120, 0.45);
}
.eh-comp__mark { margin: 0; }
.eh-comp__mark img { width: 128px; height: 128px; display: block; filter: drop-shadow(0 12px 20px rgba(31, 60, 120, 0.25)); }
.eh-comp__names { display: flex; flex-direction: column; gap: 4px; }
.eh-comp__name { font-size: 22px; font-weight: 800; color: var(--wp--preset--color--navy); letter-spacing: -0.01em; line-height: 1.3; }
.eh-comp__thai { font-family: 'Noto Sans Thai Looped', sans-serif; font-size: 15px; font-weight: 500; color: var(--wp--preset--color--ink-muted); }
.eh-comp__chips { gap: 8px; justify-content: center; }
.eh-card-float {
	position: absolute; display: flex; gap: 12px; padding: 16px 18px; background: #fff; border-radius: 20px;
	border: 1px solid var(--wp--preset--color--line); box-shadow: 0 18px 36px -18px rgba(31, 60, 120, 0.4);
}
.eh-card-float--row { align-items: center; }
.eh-card-float--stack { flex-direction: column; gap: 10px; }
.eh-card-float--tl { left: 0; top: 0; width: 250px; }
.eh-card-float--tr { right: 0; top: 10px; width: 232px; }
.eh-card-float--bl { left: 10px; bottom: 0; width: 230px; }
.eh-card-text { display: flex; flex-direction: column; gap: 0; line-height: 1.25; }
.eh-card-title { font-size: 14px; font-weight: 700; color: var(--wp--preset--color--ink); line-height: 1.25; }
.eh-card-sub { font-size: 12px; font-weight: 500; color: var(--wp--preset--color--ink-muted); line-height: 1.25; }
.eh-tile { position: relative; flex: none; width: 44px; height: 44px; border-radius: 30%; }
.eh-tile::after { content: ""; position: absolute; inset: 11px; background: #fff; -webkit-mask: var(--eh-tile-ico) center / contain no-repeat; mask: var(--eh-tile-ico) center / contain no-repeat; }
.eh-tile--green { background: var(--wp--preset--gradient--tile-green); --eh-tile-ico: var(--eh-ico-shield); }
.eh-tile--sky { background: var(--wp--preset--gradient--tile-sky); --eh-tile-ico: var(--eh-ico-pin); }
.eh-avatars { gap: 0; }
.eh-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 2px solid #fff; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.eh-avatar + .eh-avatar { margin-left: -10px !important; }
.eh-avatar--blue { background: var(--wp--preset--gradient--tile-blue); }
.eh-avatar--green { background: var(--wp--preset--gradient--tile-green); }
.eh-avatar--sun { background: var(--wp--preset--gradient--tile-sun); font-size: 14px; }
.eh-comp__pill { position: absolute; right: 16px; bottom: 16px; font-size: 13px; font-weight: 700; }
.eh-comp__pill a { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); box-shadow: 0 18px 36px -18px rgba(31, 60, 120, 0.4); color: var(--wp--preset--color--navy); }
.eh-new { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--wp--preset--gradient--btn-sun); color: var(--wp--preset--color--sun-ink); font-size: 12px; }

/* Thai pages */
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
html[lang="th"] body { line-height: 1.75; }

/* Tablet: the five links and actions no longer fit one line. */
@media (max-width: 1099px) {
	.eh-glass .wp-block-navigation__responsive-container-open { display: flex; }
	.eh-glass .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.eh-hero__cols.wp-block-columns { flex-direction: column; align-items: stretch; }
	.eh-hero__cols > .wp-block-column { flex-basis: auto !important; }
	.eh-comp { width: 100%; max-width: 620px; margin-inline: auto; }
}

@media (max-width: 781px) {
	:root { --wp--style--root--padding-left: 16px; --wp--style--root--padding-right: 16px; }
	body { font-size: 16px; }
	h1, .wp-block-heading.has-h-1-font-size { font-size: var(--wp--preset--font-size--h-1-mobile); }
	h2 { font-size: var(--wp--preset--font-size--h-2-mobile); }
	.eh-d { display: none !important; }
	.eh-m { display: revert !important; }
	.wp-block-button.eh-m { display: block !important; }

	.wp-site-blocks > header.wp-block-template-part { top: calc(8px + var(--wp-admin--admin-bar--height, 0px)); margin: 8px 10px 0; }
	.eh-glass { gap: 10px; padding: 8px 10px 8px 14px; border-radius: 18px; }
	.eh-glass .wp-block-site-logo { margin-right: auto; }
	.eh-glass .wp-block-site-logo img { height: 32px; }
	.eh-glass .wp-block-navigation { margin-left: 0; order: 9; }
	.eh-glass .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px rgba(59, 83, 152, 0.2); color: var(--wp--preset--color--navy); }
	.eh-glass .wp-block-button.eh-btn-sm .wp-block-button__link { min-height: 40px; padding: 0 14px; font-size: 13px; }
	.eh-lang .current-lang { display: none; }
	.eh-lang ul { padding: 0; }
	.eh-lang a { height: 36px; padding: 0 10px; }

	.eh-section { padding: 56px 16px; }
	.eh-glass .wp-block-button.eh-ico-line { display: none; }
	.eh-hero.eh-section { margin-top: -70px; padding: 110px 16px 40px; display: flex; flex-direction: column; }
	.eh-hero__cols.wp-block-columns { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
	.eh-hero__text { display: contents; }
	.eh-hero__cols .eh-eyebrow { order: 1; font-size: 12px; }
	.eh-hero__cols h1 { order: 2; }
	.eh-hero__cols .eh-lead { order: 3; font-size: 17px; }
	.eh-hero__art { order: 4; margin-top: 8px; }
	.eh-section .eh-hero__cols .wp-block-buttons { order: 5; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 8px; }
	.eh-hero__cols .wp-block-buttons .wp-block-button { width: 100%; }
	.eh-hero__cols .wp-block-button__link { width: 100%; min-height: 54px; font-size: 16px; }
	.eh-section .eh-hero__cols .eh-trust { order: 6; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 6px; font-size: 14px; }

	.eh-comp { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; padding: 0 10px; }
	.eh-comp__center { position: static; grid-column: 1 / -1; margin: 0 -10px -18px; padding: 28px 20px 40px; gap: 12px; border-radius: 24px; box-shadow: 0 24px 48px -28px rgba(31, 60, 120, 0.45); }
	.eh-comp__mark img { width: 88px; height: 88px; }
	.eh-comp__name { font-size: 17px; }
	.eh-comp__thai { font-size: 13px; }
	.eh-comp__chips { gap: 6px; }
	.eh-chip { height: 28px; padding: 0 10px; font-size: 12px; }
	.eh-card-float { position: relative; inset: auto; width: auto; padding: 12px; gap: 10px; border-radius: 16px; z-index: 1; }
	.eh-card-float--stack { flex-direction: row; align-items: center; }
	.eh-card-float--bl, .eh-comp__pill { display: none; }
	.eh-card-title { font-size: 12px; }
	.eh-card-sub { font-size: 11px; }
	.eh-tile { width: 36px; height: 36px; }
	.eh-tile::after { inset: 9px; }
	.eh-avatar { width: 28px; height: 28px; font-size: 10px; }
	.eh-avatar + .eh-avatar { margin-left: -8px !important; }
	.eh-avatar--sun { display: none; }
}

/* ===== Homepage sections ===== */
html { scroll-padding-top: 96px; }
:root {
	--eh-ico-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-8.5'/%3E%3C/svg%3E");
	--eh-ico-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V6a2 2 0 0 1 2-2h5v15H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M20 19V6a2 2 0 0 0-2-2h-5v15h5a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
	--eh-ico-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.5-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 11c0 5.5-7 10-7 10z'/%3E%3C/svg%3E");
	--eh-ico-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/%3E%3C/svg%3E");
	--eh-ico-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
	--eh-ico-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h10M4 17h7'/%3E%3C/svg%3E");
	--eh-ico-case: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
	--eh-ico-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-5 9 5-9 5-9-5z'/%3E%3Cpath d='M7 11v5c0 1.5 2.5 3 5 3s5-1.5 5-3v-5'/%3E%3C/svg%3E");
	--eh-ico-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
	--eh-ico-screen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M4 4l16 13'/%3E%3Cpath d='M8 21h8'/%3E%3C/svg%3E");
	--eh-ico-people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M16 15.5a5 5 0 0 1 5.5 4.5'/%3E%3C/svg%3E");
	--eh-ico-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
	--eh-ico-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D6E8F7'%3E%3Cpath d='M4 14a6 6 0 0 1 6-8v3a3 3 0 0 0-3 3h3v6H4v-4zm10 0a6 6 0 0 1 6-8v3a3 3 0 0 0-3 3h3v6h-6v-4z'/%3E%3C/svg%3E");
}
.eh-section .is-layout-flow > *, .eh-section .is-layout-constrained > * { margin-block: 0; }
.eh-section.eh-flush { padding-top: 0; }
.eh-inner { display: flex; flex-direction: column; gap: 36px; }
.eh-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.eh-head .eh-lead { max-width: none; }
.eh-note { font-size: 14px; color: var(--wp--preset--color--ink-muted); }
.eh-section .wp-block-buttons { gap: 12px; }

.wp-block-button.eh-btn-46 .wp-block-button__link { min-height: 46px; padding: 0 22px; font-size: 15px; }
.wp-block-button.eh-btn-50 .wp-block-button__link { min-height: 50px; padding: 0 22px; font-size: 15px; }

.eh-tile--lg { width: 52px; height: 52px; }
.eh-tile--lg::after { inset: 14px; }
.eh-tile--blue { background: var(--wp--preset--gradient--tile-blue); }
.eh-tile--sun { background: var(--wp--preset--gradient--tile-sun); }
.eh-tile--glass { background: rgba(255, 255, 255, 0.16); }
.eh-i-book { --eh-tile-ico: var(--eh-ico-book); }
.eh-i-heart { --eh-tile-ico: var(--eh-ico-heart); }
.eh-i-sun { --eh-tile-ico: var(--eh-ico-sun); }
.eh-i-plus { --eh-tile-ico: var(--eh-ico-plus); }
.eh-i-lines { --eh-tile-ico: var(--eh-ico-lines); }
.eh-i-case { --eh-tile-ico: var(--eh-ico-case); }
.eh-i-cap { --eh-tile-ico: var(--eh-ico-cap); }
.eh-i-globe { --eh-tile-ico: var(--eh-ico-globe); }
.eh-i-screen { --eh-tile-ico: var(--eh-ico-screen); }
.eh-i-people { --eh-tile-ico: var(--eh-ico-people); }
.eh-i-pin { --eh-tile-ico: var(--eh-ico-pin); }
.eh-i-shield { --eh-tile-ico: var(--eh-ico-shield); }

/* Course cards and tabs */
.eh-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 22px; }
.eh-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.eh-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.eh-card h3 { font-size: 22px; }
.eh-body { font-size: 16px; color: var(--wp--preset--color--ink-body); }
.eh-tags { gap: 8px; }
.eh-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--wp--preset--color--base-2); font-size: 13px; font-weight: 600; color: var(--wp--preset--color--ink-lead); }
.eh-link { font-size: 15px; font-weight: 700; }
.eh-link--sm { font-size: 14px; }
.eh-section .eh-card > .eh-link, .eh-section .eh-prog__body > .eh-link { margin-top: auto; }

.eh-tabs.wp-block-tabs { display: flex; flex-direction: column; gap: 36px; }
.eh-tabs .wp-block-tab-list { display: inline-flex; align-self: flex-start; gap: 4px; width: auto; padding: 5px; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: #EEF3F9; }
.eh-tabs .wp-block-tab-list button { height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent; color: var(--wp--preset--color--navy); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.eh-tabs .wp-block-tab-list button[aria-selected="true"] { background: var(--wp--preset--gradient--btn-blue); color: #fff; }
.eh-tabs .wp-block-tab-list button:focus-visible { outline: 2px solid var(--wp--preset--color--sky-text); outline-offset: 2px; }
.eh-tabs .wp-block-tab-panels, .eh-tabs .wp-block-tab-panel { padding: 0; border: 0; }

/* Campus bento */
.eh-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.eh-bento__navy { grid-row: span 2; display: flex; flex-direction: column; gap: 18px; min-height: 480px; padding: 36px; border-radius: 28px; }
.eh-bento__navy h3 { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.eh-navy-body { font-size: 17px; color: rgba(255, 255, 255, 0.88); }
.eh-section .eh-ticks { margin-top: auto; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; }
.eh-ticks li { display: flex; align-items: center; gap: 10px; margin: 0; }
.eh-ticks li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 999px; background: var(--eh-ico-check-white) center / 12px no-repeat, var(--wp--preset--color--green-light); }
.eh-bento__row { display: flex; gap: 18px; align-items: flex-start; padding: 28px; }
.eh-bento__text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; min-width: 0; }
.eh-bento__row h3 { font-size: 21px; }
.eh-bento__wide { grid-column: span 2; flex-wrap: wrap; align-items: center; }
.eh-bento__wide .eh-bento__text { flex: 1 1 320px; }

/* Featured programmes */
.eh-head-row { gap: 16px; }
.eh-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.eh-prog { display: flex; flex-direction: column; overflow: hidden; }
.eh-cover { position: relative; height: 150px; flex: none; }
.eh-cover::after { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); background: var(--eh-cover-ink); -webkit-mask: var(--eh-tile-ico) center / contain no-repeat; mask: var(--eh-tile-ico) center / contain no-repeat; }
.eh-cover--blue { --eh-cover-ink: #2B3F86; }
.eh-cover--green { --eh-cover-ink: #2F8A44; }
.eh-cover--sun { --eh-cover-ink: #B86E0C; }
.eh-cover--orange { --eh-cover-ink: #B85A14; }
.eh-prog__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px; }
.eh-prog__tag { font-size: 13px; font-weight: 700; color: var(--wp--preset--color--sky-text); }
.eh-prog__body h3 { font-size: 20px; line-height: 1.3; }
.eh-prog__text { font-size: 15px; color: var(--wp--preset--color--ink-body); }

/* CEFR promo */
.eh-promo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; padding: 40px 48px; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--panel); box-shadow: var(--wp--custom--shadow--panel); }
.eh-promo__text { display: flex; flex-direction: column; gap: 14px; }
.eh-promo h2 { font-size: 36px; }
.eh-promo__lead { font-size: 18px; color: var(--wp--preset--color--ink-lead); }
.eh-section .eh-promo__actions { gap: 16px; margin-top: 6px; }
.eh-price { font-size: 15px; font-weight: 600; color: var(--wp--preset--color--ink-lead); }
.eh-promo__img img { display: block; width: 100%; height: auto; border-radius: 20px; }

/* Visit */
.eh-visit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.eh-visit__text { display: flex; flex-direction: column; gap: 18px; }
.eh-visit__lead { font-size: 18px; color: var(--wp--preset--color--ink-lead); }
.eh-section .eh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px 24px; margin-top: 8px; }
.eh-fact { display: flex; flex-direction: column; gap: 2px; }
.eh-fact__label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--ink-muted); }
.eh-fact__value { font-size: 15px; color: var(--wp--preset--color--ink); }
.eh-section .eh-visit__btns { margin-top: 8px; }
.eh-map { overflow: hidden; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 28px; box-shadow: var(--wp--custom--shadow--panel); }
.eh-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }
.eh-map__cap { gap: 12px; padding: 18px 24px; border-top: 1px solid var(--wp--preset--color--line); }
.eh-map__text { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink-lead); }

/* Testimonials */
.eh-quote { display: flex; flex-direction: column; gap: 18px; padding: 30px; }
.eh-quote::before { content: ""; width: 32px; height: 32px; background: var(--eh-ico-quote) center / contain no-repeat; }
.eh-section .eh-quote__text { margin: 0; padding: 0; border: 0; font-size: 18px; line-height: 1.55; color: var(--wp--preset--color--ink); }
.eh-section .eh-quote__text p { font: inherit; }
.eh-quote__text::before, .eh-quote__text::after { content: none; display: none; }
.eh-section .eh-quote__by { gap: 12px; margin-top: auto; }
.eh-avatar--lg { width: 40px; height: 40px; flex: none; border: 0; font-size: 13px; }
.eh-avatar--lg.eh-avatar--sun { display: inline-flex; font-size: 13px; }
.eh-quote__name { font-size: 15px; font-weight: 700; line-height: 1.25; }
.eh-quote__role { font-size: 13px; color: var(--wp--preset--color--ink-muted); line-height: 1.25; }

/* CTA */
.eh-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 32px; text-align: center; }
.eh-cta h2 { max-width: 760px; color: #fff; }
.eh-cta__text { max-width: 620px; font-size: 19px; color: rgba(255, 255, 255, 0.88); }
.eh-section .eh-cta__btns { justify-content: center; gap: 14px; margin-top: 14px; }

/* Footer */
.wp-site-blocks > footer.wp-block-template-part { margin: 0; }
.eh-section.eh-footer { padding: 64px 32px 96px; background: var(--wp--preset--color--base-2); border-top: 1px solid var(--wp--preset--color--line); }
.eh-foot-inner { display: flex; flex-direction: column; gap: 40px; max-width: 1180px; margin-inline: auto; }
.eh-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.eh-foot-col { display: flex; flex-direction: column; gap: 10px; }
.eh-foot-col1 { gap: 14px; }
.eh-footer .wp-block-site-logo img { display: block; height: 44px; width: auto; }
.eh-foot-thai { font-family: 'Noto Sans Thai Looped', sans-serif; font-size: 14px; color: var(--wp--preset--color--ink-lead); }
.eh-foot-text { font-size: 14px; color: var(--wp--preset--color--ink-lead); }
.eh-foot-text a { color: inherit; font-weight: 400; }
.eh-foot-h { font-size: 14px; font-weight: 700; color: var(--wp--preset--color--ink); }
.eh-foot-nav.wp-block-navigation { font-size: 14px; font-weight: 400; }
.eh-foot-nav .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 10px; }
.eh-foot-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--ink-lead); font-weight: 400; }
.eh-foot-lang ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.eh-foot-lang a { color: var(--wp--preset--color--ink-lead); font-weight: 400; }
.eh-foot-tick { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--wp--preset--color--ink-lead); }
.eh-foot-tick::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 999px; background: var(--eh-ico-check-white) center / 12px no-repeat, var(--wp--preset--color--green); }
.eh-foot-opec { font-size: 14px; font-weight: 600; }
.eh-foot-opec a { font-weight: 600; }
.eh-section .eh-social { gap: 10px; margin-top: 6px; padding: 0; }
.eh-social .wp-social-link { width: 40px; height: 40px; margin: 0; background: #fff; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--navy); }
.eh-social .wp-social-link-line { color: var(--wp--preset--color--green); }
.eh-social .wp-social-link a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; color: inherit; }
.eh-social .wp-social-link svg { width: 18px; height: 18px; }
.eh-legal { gap: 12px; padding-top: 24px; border-top: 1px solid var(--wp--preset--color--line); font-size: 13px; color: var(--wp--preset--color--ink-muted); }
.eh-legal__links { gap: 20px; }
.eh-legal a { color: var(--wp--preset--color--ink-muted); font-weight: 400; }

/* Floating LINE and call widget (allowed exception 2) */
.eh-floating {
	position: fixed; right: 24px; bottom: 24px; z-index: 30; gap: 8px; padding: 6px; border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
	-webkit-backdrop-filter: var(--wp--custom--glass--filter); backdrop-filter: var(--wp--custom--glass--filter);
	border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 10px 30px -10px rgba(31, 60, 120, 0.35);
}
.eh-floating > * { margin: 0; }
.eh-line-btn .wp-block-button__link {
	min-height: 48px; padding: 0 18px; gap: 8px; font-size: 15px; color: #fff;
	background: var(--wp--preset--gradient--btn-green);
	box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.6), 0 10px 22px -10px #2F8A44;
}
.eh-line-btn .wp-block-button__link:hover, .eh-line-btn .wp-block-button__link:focus { color: #fff; background: var(--wp--preset--gradient--btn-green); }
.eh-line-btn .wp-block-button__link::before { content: ""; width: 20px; height: 20px; background: #fff; -webkit-mask: var(--eh-ico-chat) center / contain no-repeat; mask: var(--eh-ico-chat) center / contain no-repeat; }
.eh-call a { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--wp--preset--gradient--btn-blue); box-shadow: var(--wp--custom--shadow--btn-blue); }
.eh-call a::before { content: ""; width: 20px; height: 20px; background: #fff; -webkit-mask: var(--eh-ico-phone) center / contain no-repeat; mask: var(--eh-ico-phone) center / contain no-repeat; }

@media (max-width: 1099px) {
	.eh-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eh-bento__navy { grid-column: span 2; grid-row: auto; min-height: 0; }
	.eh-promo, .eh-visit { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 781px) {
	.eh-section .eh-inner { gap: 20px; }
	.eh-section.eh-flush { padding-top: 0; }
	.eh-head .eh-lead { font-size: 16px; }
	.eh-section .eh-eyebrow { font-size: 12px; }
	.eh-tabs.wp-block-tabs { gap: 20px; }
	.eh-tabs .wp-block-tab-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: stretch; }
	.eh-tabs .wp-block-tab-list button { padding: 0 4px; font-size: 13px; }
	.eh-card { padding: 22px; }
	.eh-bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.eh-bento__navy, .eh-bento__wide { grid-column: auto; }
	.eh-bento__navy { padding: 26px; border-radius: 24px; }
	.eh-bento__navy h3 { font-size: 26px; }
	.eh-bento__row { padding: 22px; }
	.eh-section .eh-grid-4 { display: flex; gap: 12px; margin-inline: -16px; padding: 4px 16px 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
	.eh-grid-4 > .eh-prog { flex: 0 0 270px; scroll-snap-align: start; }
	.eh-cover { height: 120px; }
	.eh-promo { padding: 24px; border-radius: 24px; gap: 20px; }
	.eh-promo h2 { font-size: 30px; }
	.eh-promo__lead, .eh-visit__lead { font-size: 16px; }
	.eh-visit { gap: 24px; }
	.eh-map { border-radius: 24px; }
	.eh-quote { padding: 22px; }
	.eh-quote__text { font-size: 17px; }
	.eh-cta { padding: 40px 20px; border-radius: 28px; }
	.eh-cta__text { font-size: 17px; }
	.eh-section.eh-footer { padding: 48px 16px 96px; }
	.eh-floating { right: 12px; bottom: 12px; }
}

.eh-section .eh-quote .eh-quote__text.wp-block-quote { margin: 0 !important; }
.eh-social .wp-social-link-line svg { display: none; }
.eh-social .wp-social-link-line a::before { content: ""; width: 18px; height: 18px; background: var(--wp--preset--color--green); -webkit-mask: var(--eh-ico-chat) center / contain no-repeat; mask: var(--eh-ico-chat) center / contain no-repeat; }
@media (max-width: 781px) {
	.eh-tabs.wp-block-tabs .wp-block-tab-list.wp-block-tab-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
	.eh-tabs.wp-block-tabs .wp-block-tab-list button { width: 100%; min-width: 0; padding: 0 6px; white-space: normal; line-height: 1.15; }
}
/* ===== Course detail ===== */
:root { --eh-ico-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	--eh-ico-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.eh-i-clock { --eh-tile-ico: var(--eh-ico-clock); }
.eh-tile--md { width: 46px; height: 46px; }
.eh-tile--md::after { inset: 12px; }

.eh-course-hero.eh-section { margin-top: -74px; padding: 132px 32px 72px; }
.eh-course-hero .eh-inner { gap: 28px; }
.eh-crumbs { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink-muted); }
.eh-crumbs a { color: var(--wp--preset--color--ink-muted); font-weight: 600; }
.eh-crumbs [aria-current="page"], .eh-crumbs li:last-child { color: var(--wp--preset--color--ink); }
.eh-course-cols.wp-block-columns { gap: 48px; align-items: center; margin: 0; }
.eh-course-text { display: flex; flex-direction: column; gap: 18px; }
.eh-section .eh-course-text > .wp-block-buttons { gap: 14px; margin-top: 8px; }
.eh-course-chips { gap: 8px; }
.eh-chip--strong { font-weight: 700; color: var(--wp--preset--color--navy); }
.eh-chip.eh-tick { gap: 6px; }
.eh-chip.eh-tick::before { width: 14px; height: 14px; }
.wp-block-post-title.eh-course-title { font-size: 54px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; color: var(--wp--preset--color--navy); text-wrap: pretty; }
.eh-course-text .eh-lead { max-width: 580px; }

.eh-ladder { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: #fff; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--wp--custom--radius--panel); box-shadow: 0 30px 60px -30px rgba(31, 60, 120, 0.45); }
.eh-ladder__head { gap: 12px; }
.eh-ladder__right { font-size: 13px; font-weight: 600; color: var(--wp--preset--color--ink-muted); }
.eh-ladder__bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.eh-ladder__step { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.eh-ladder__bar { border-radius: 14px; }
.eh-ladder__bar--1 { height: 70px; background: var(--wp--preset--gradient--tile-green); }
.eh-ladder__bar--2 { height: 100px; background: var(--wp--preset--gradient--tile-sky); }
.eh-ladder__bar--3 { height: 130px; background: var(--wp--preset--gradient--tile-blue); }
.eh-ladder__bar--4 { height: 160px; background: var(--wp--preset--gradient--tile-sun); }
.eh-ladder__name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.eh-ladder__age { font-size: 12px; line-height: 1.3; color: var(--wp--preset--color--ink-muted); }
.eh-ladder__note { gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--wp--preset--color--base-2); border: 1px solid var(--wp--preset--color--line); }
.eh-ladder__note p:last-child { font-size: 14px; color: var(--wp--preset--color--ink); }
.eh-ladder__note .eh-avatars { flex: none; }
.eh-ladder__note .eh-avatar { width: 34px; height: 34px; font-size: 11px; }

.eh-spec-sec.eh-section { position: relative; z-index: 2; padding: 0 32px; }
.eh-section .eh-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px 32px; margin-top: -24px; padding: 24px 32px; }
.eh-spec__item { gap: 14px; }
.eh-spec__text { display: flex; flex-direction: column; line-height: 1.3; }
.eh-spec__label { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--wp--preset--color--ink-muted); }
.eh-spec__value { font-size: 16px; font-weight: 700; line-height: 1.3; }

.eh-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.eh-two__text { display: flex; flex-direction: column; gap: 20px; }
.eh-section .eh-outcomes { display: flex; flex-direction: column; gap: 14px; padding: 0; list-style: none; font-size: 17px; }
.eh-outcomes li { position: relative; margin: 0; padding-left: 34px; }
.eh-outcomes li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 999px; background: var(--eh-ico-check-white) center / 13px no-repeat, var(--wp--preset--color--green); }
.eh-aside { display: flex; flex-direction: column; gap: 16px; padding: 40px; border-radius: 28px; }
.eh-aside h3 { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.eh-aside__label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

.eh-cur-sec .eh-inner { gap: 32px; }
.eh-head .eh-lead--18, .eh-lead--18 { font-size: 18px; max-width: none; }
.eh-acc-list { display: flex; flex-direction: column; gap: 12px; }
.eh-section .eh-acc.wp-block-details { padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 20px; box-shadow: 0 12px 28px -18px rgba(31, 60, 120, 0.25); }
.eh-acc summary { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 72px; padding: 20px 60px 20px 24px; cursor: pointer; list-style: none; color: var(--wp--preset--color--ink); }
.eh-acc summary::-webkit-details-marker { display: none; }
.eh-acc summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--wp--preset--color--navy); -webkit-mask: var(--eh-ico-chev) center / contain no-repeat; mask: var(--eh-ico-chev) center / contain no-repeat; }
.eh-acc[open] summary::after { transform: rotate(180deg); }
.eh-acc summary:focus-visible { outline: 2px solid var(--wp--preset--color--sky-text); outline-offset: -2px; }
.eh-lvl { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--wp--preset--color--base-2); border: 1px solid var(--wp--preset--color--line); font-size: 12px; font-weight: 700; color: var(--wp--preset--color--navy); }
.eh-lvl__name { font-size: 20px; font-weight: 700; }
.eh-lvl__meta { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink-muted); }
.eh-acc__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px 32px; padding: 20px 24px 24px; border-top: 1px solid var(--wp--preset--color--line); }
.eh-week { display: flex; flex-direction: column; gap: 6px; }
.eh-week__label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--sky-text); }
.eh-week__text { font-size: 15px; color: var(--wp--preset--color--ink-body); }

.eh-note-sec.eh-section { padding: 64px 32px; }
.eh-camp-note { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 32px 40px; background: linear-gradient(160deg, #EAF4FC, #fff 70%); border: 1px solid var(--wp--preset--color--line); border-radius: 28px; box-shadow: var(--wp--custom--shadow--card); }
.eh-camp-note__text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 420px; }
.eh-camp-note h3 { font-size: 22px; color: var(--wp--preset--color--navy); }

.eh-faq-sec.eh-section { padding: 24px 32px 88px; }
.eh-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.eh-section .eh-acc--faq.wp-block-details { border-radius: 18px; box-shadow: none; }
.eh-acc--faq summary { min-height: 60px; padding: 16px 56px 16px 22px; font-size: 17px; font-weight: 700; }
.eh-acc--faq summary::after { right: 22px; }
.eh-section .eh-acc--faq p { padding: 0 22px 18px; font-size: 16px; color: var(--wp--preset--color--ink-body); }

/* Sticky course bar replaces the floating widget on course pages */
.single-course .eh-floating { display: none; }
.single-course .eh-section.eh-footer { padding-bottom: 110px; }
.eh-bar {
	position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 30; border-radius: var(--wp--custom--radius--header);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
	-webkit-backdrop-filter: var(--wp--custom--glass--filter); backdrop-filter: var(--wp--custom--glass--filter);
	border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 10px 30px -10px rgba(31, 60, 120, 0.35);
}
.eh-bar > * { margin: 0; }
.eh-bar__inner { gap: 12px; max-width: 1180px; margin-inline: auto; padding: 12px 20px; }
.eh-bar__inner > * { margin: 0; }
.eh-bar__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.eh-bar__text > * { margin: 0; }
.eh-bar__title { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--wp--preset--color--ink); }
.eh-bar__meta { font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--wp--preset--color--ink-muted); }
.eh-bar .wp-block-buttons { gap: 10px; flex-wrap: nowrap; }
.eh-bar .wp-block-button__link { min-height: 46px; padding: 0 18px; font-size: 15px; }

@media (max-width: 1099px) {
	.eh-course-cols.wp-block-columns { flex-direction: column; align-items: stretch; }
	.eh-course-cols > .wp-block-column { flex-basis: auto !important; }
	.eh-two, .eh-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 781px) {
	.eh-course-hero.eh-section { margin-top: -70px; padding: 98px 16px 56px; }
	.eh-course-hero .eh-inner { gap: 20px; }
	.wp-block-post-title.eh-course-title { font-size: 34px; }
	.eh-ladder { padding: 20px; border-radius: 24px; }
	.eh-ladder__bar--1 { height: 44px; }
	.eh-ladder__bar--2 { height: 64px; }
	.eh-ladder__bar--3 { height: 84px; }
	.eh-ladder__bar--4 { height: 104px; }
	.eh-ladder__name { font-size: 11px; }
	.eh-ladder__age { font-size: 11px; }
	.eh-spec-sec.eh-section { padding: 0 16px; }
	.eh-section .eh-spec { padding: 20px; gap: 16px; border-radius: 22px; }
	.eh-aside { padding: 26px; border-radius: 24px; }
	.eh-aside h3 { font-size: 26px; }
	.eh-outcomes { font-size: 16px; }
	.eh-lead--18 { font-size: 16px; }
	.eh-acc summary { padding: 16px 48px 16px 18px; min-height: 60px; }
	.eh-acc summary::after { right: 16px; }
	.eh-lvl__name { font-size: 18px; }
	.eh-acc__body { padding: 16px 18px 20px; }
	.eh-acc--faq summary { font-size: 16px; }
	.eh-section .eh-acc--faq p { padding: 0 18px 16px; }
	.eh-note-sec.eh-section { padding: 40px 16px; }
	.eh-camp-note { padding: 22px; border-radius: 24px; }
	.eh-camp-note__text { flex-basis: 100%; }
	.eh-faq-sec.eh-section { padding: 16px 16px 56px; }
	.eh-faq { gap: 20px; }
	.single-course .eh-section.eh-footer { padding-bottom: 130px; }
	.eh-bar { left: 8px; right: 8px; bottom: 8px; border-radius: 18px; }
	.eh-bar__inner { padding: 10px 12px; justify-content: center; }
	.eh-bar__text { display: none; }
	.eh-bar .wp-block-buttons { width: 100%; }
	.eh-bar .wp-block-button { flex: 1 1 0; }
	.eh-bar .wp-block-button__link { width: 100%; padding: 0 10px; font-size: 14px; }
}

/* ===== Course focus card ===== */
.eh-focus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eh-focus__item { gap: 12px; padding: 14px; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; background: #fff; }
.eh-focus__name { font-size: 15px; font-weight: 700; line-height: 1.25; }
.eh-focus__sub { font-size: 13px; line-height: 1.25; color: var(--wp--preset--color--ink-muted); }
.eh-focus__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eh-focus__text > * { margin: 0; }
.eh-note--draft { font-size: 14px; color: var(--wp--preset--color--ink-muted); }
@media (max-width: 781px) {
	.eh-focus { gap: 8px; }
	.eh-focus__item { padding: 10px; gap: 8px; }
	.eh-focus__name { font-size: 13px; }
	.eh-focus .eh-tile--md { width: 30px; height: 30px; }
	.eh-focus .eh-tile--md::after { inset: 7px; }
	.eh-focus__name { overflow-wrap: normal; }
}

/* ===== CEFR test page ===== */
:root {
	--eh-ico-adapt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19L19 5M10 5h9v9'/%3E%3C/svg%3E");
}
.eh-i-adapt { --eh-tile-ico: var(--eh-ico-adapt); }
.eh-i-check { --eh-tile-ico: var(--eh-ico-check); }
.eh-section .eh-tile--text { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 800; line-height: 1; }
.eh-tile--text::after { content: none; }
.eh-tile--text.eh-tile--sm-text { font-size: 16px; }
.eh-round-img img { display: block; width: 100%; height: auto; border-radius: 28px; }
.eh-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--image); box-shadow: 0 14px 30px -18px rgba(20, 40, 90, 0.4); }

.eh-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.eh-why__card { display: flex; flex-direction: column; gap: 6px; padding: 26px; }
.eh-why__card h3 { font-size: 21px; }
.eh-section .eh-why__card .eh-tile { margin-bottom: 8px; }

.eh-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.eh-skill { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 24px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--card); }
.eh-skill h3 { font-size: 21px; }
.eh-skill__img img { display: block; width: 100%; height: auto; border-radius: 14px; }
.eh-section .eh-skill__img { margin-bottom: 10px; }
.eh-skill__meta { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink-muted); }

.eh-levels-list { display: flex; flex-direction: column; gap: 12px; }
.eh-section .eh-checks { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; font-size: 17px; }
.eh-checks li { position: relative; margin: 0; padding-left: 32px; }
.eh-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 999px; background: var(--eh-ico-check-white) center / 12px no-repeat, var(--wp--preset--color--green); }
.eh-levels.wp-block-table { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--custom--shadow--card); }
.eh-levels table { width: 100%; border-collapse: collapse; font-size: 16px; }
.eh-levels thead { border: 0; }
.eh-levels th { padding: 14px 24px; border: 0; background: var(--wp--preset--color--base-2); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; color: var(--wp--preset--color--ink-muted); }
.eh-levels td { padding: 14px 24px; border: 0; border-top: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ink-body); }
.eh-levels td:first-child { width: 110px; font-weight: 800; color: var(--wp--preset--color--navy); }
.eh-levels td:nth-child(2) { width: 200px; font-weight: 600; color: var(--wp--preset--color--ink); }

.eh-cert { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.eh-cert__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.eh-cert__pair img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(20, 40, 90, 0.45); }
.eh-cert__text { display: flex; flex-direction: column; gap: 18px; }
.eh-cert__left { display: flex; flex-direction: column; gap: 28px; }
.eh-cert__intro { font-size: 17px; font-weight: 600; }
.eh-muted-15 { font-size: 15px; color: var(--wp--preset--color--ink-muted); }
.eh-use { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #FFFBEF; border: 1px solid #F3D48A; border-radius: var(--wp--custom--radius--card); }
.eh-use h3 { font-size: 21px; }
.eh-use__label { font-size: 16px; font-weight: 700; color: var(--wp--preset--color--navy); }
.eh-section .eh-use ul { margin: 0; padding-left: 20px; font-size: 16px; color: var(--wp--preset--color--ink-body); }
.eh-use li { margin: 0 0 4px; }
.eh-verify { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.eh-verify__item { display: flex; flex-direction: column; gap: 8px; }
.eh-verify__item p { font-size: 15px; color: var(--wp--preset--color--ink-body); }

.eh-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.eh-who__card { display: flex; flex-direction: column; gap: 6px; padding: 26px; }
.eh-who__card h3 { font-size: 21px; }
.eh-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.eh-step { display: flex; flex-direction: column; gap: 4px; }
.eh-step__title { font-size: 15px; font-weight: 800; color: var(--wp--preset--color--navy); }
.eh-step__text { font-size: 16px; color: var(--wp--preset--color--ink-body); }
.eh-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px 28px; }
.eh-price-row__amount { display: flex; flex-direction: column; }
.eh-price-label { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink-muted); }
.eh-price-big { font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--wp--preset--color--navy); }
.eh-price-big s { margin-left: 10px; font-size: 16px; font-weight: 600; color: var(--wp--preset--color--ink-muted); }
.eh-price-row__text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 320px; }
.eh-price-row__text p:first-child { font-size: 16px; color: var(--wp--preset--color--ink-body); }
.eh-tip { font-size: 14px; color: var(--wp--preset--color--ink-muted); }

.eh-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.eh-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.eh-fig { display: flex; flex-direction: column; gap: 8px; }
.eh-contact-row { gap: 18px; }
.eh-contact-row__text { font-size: 16px; color: var(--wp--preset--color--ink-body); }
.eh-req { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.eh-req__card { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.eh-req__card h3 { font-size: 21px; color: var(--wp--preset--color--navy); }
.eh-section .eh-req__card ul { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; font-size: 16px; color: var(--wp--preset--color--ink-body); }
.eh-req__card li { margin: 0; }
.eh-trust-text { display: flex; flex-direction: column; gap: 18px; }
.eh-indep { font-size: 13px; color: var(--wp--preset--color--ink-muted); }
.eh-narrow { display: flex; flex-direction: column; gap: 24px; max-width: 860px; margin-inline: auto; width: 100%; }

@media (max-width: 1099px) {
	.eh-cert, .eh-split { grid-template-columns: minmax(0, 1fr); }
  .eh-cert__left { display: contents; }
  .eh-cert .eh-use { order: 1; }
}
@media (max-width: 781px) {
	.eh-skills, .eh-verify { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.eh-skill { padding: 14px 14px 20px; }
	.eh-checks { font-size: 16px; }
	.eh-round-img img { border-radius: 18px; }
	.eh-levels th, .eh-levels td { padding: 10px 10px; font-size: 14px; }
	.eh-levels th { font-size: 11px; }
	.eh-levels td:first-child { width: 56px; }
	.eh-levels td:nth-child(2) { width: 84px; }
	.eh-cert { gap: 28px; }
	.eh-use { padding: 20px; }
	.eh-price-row { padding: 20px; gap: 14px; }
	.eh-price-row .wp-block-buttons, .eh-price-row .wp-block-button, .eh-price-row .wp-block-button__link { width: 100%; }
	.eh-req__card, .eh-why__card, .eh-who__card { padding: 22px; }
	.eh-contact-row .wp-block-button__link { white-space: normal; }
}

/* ===== Inner pages ===== */
.eh-page-hero.eh-section { margin-top: -74px; padding: 132px 32px 56px; }
.eh-page-hero .eh-inner { gap: 20px; }
.eh-page-hero .eh-head { max-width: 820px; }
.eh-page-hero h1 { font-size: 54px; }
.eh-page-hero .eh-lead { max-width: 700px; }
.eh-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eh-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 16px; border-radius: var(--wp--custom--radius--image); text-align: center; }
.eh-photo p { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink-lead); }
.eh-licence { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.eh-licence h3 { font-size: 22px; color: var(--wp--preset--color--navy); }
.eh-licence .eh-foot-thai { font-size: 15px; }
.eh-licence .eh-foot-tick { font-size: 15px; }
.eh-licence .wp-block-buttons { margin-top: 6px; }
.eh-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.eh-person { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; text-align: center; }
.eh-section .eh-person .eh-avatar { width: 72px; height: 72px; margin-bottom: 8px; border: 0; font-size: 18px; }
.eh-person__name { font-size: 18px; font-weight: 700; }
.eh-seals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.eh-form-card { padding: 28px; }
.eh-form-card h2, .eh-form-card h3 { font-size: 24px; margin-bottom: 14px !important; color: var(--wp--preset--color--navy); }
.eh-form p { margin: 0; }
.eh-form__grid > p { display: contents; }
.eh-form__grid br { display: none; }
.eh-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.eh-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink); }
.eh-form .wpcf7-form-control-wrap { display: block; }
.eh-form input[type="text"], .eh-form input[type="tel"], .eh-form input[type="email"], .eh-form select, .eh-form textarea {
	box-sizing: border-box; width: 100%; min-height: 50px; padding: 12px 18px; border: 1.5px solid var(--wp--preset--color--line); border-radius: 16px; background: #fff;
	font: inherit; font-size: 16px; font-weight: 400; color: var(--wp--preset--color--ink);
}
.eh-form textarea { min-height: 120px; resize: vertical; }
.eh-form input:focus, .eh-form select:focus, .eh-form textarea:focus { outline: 2px solid var(--wp--preset--color--sky-text); outline-offset: 1px; border-color: transparent; }
.eh-form__msg { margin-top: 14px; }
.eh-form__consent { margin-top: 16px; font-size: 14px; color: var(--wp--preset--color--ink-lead); }
.eh-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.eh-form .wpcf7-acceptance label { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.eh-form .wpcf7-acceptance input { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.eh-form__submit { margin-top: 18px; }
.eh-form input[type="submit"] { width: 100%; min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--wp--preset--gradient--btn-sun); color: var(--wp--preset--color--sun-ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: var(--wp--custom--shadow--btn-sun); }
.eh-form .wpcf7-spinner { display: block; margin: 8px auto 0; }
.eh-form-card .wpcf7-not-valid-tip { margin-top: 4px; font-size: 13px; font-weight: 500; color: #B3261E; }
.eh-form-card .wpcf7 form .wpcf7-response-output { margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; font-size: 14px; }
.eh-side { display: flex; flex-direction: column; gap: 18px; }
.eh-steps--cards .eh-step { padding: 24px; }

.eh-prose { max-width: 760px; margin-inline: auto; width: 100%; }
.eh-section .eh-prose > * + * { margin-top: 14px; }
.eh-section .eh-prose > h2 { margin-top: 36px; font-size: 26px; }
.eh-prose p, .eh-prose li { font-size: 17px; color: var(--wp--preset--color--ink-body); }
.eh-section .eh-prose ul { padding-left: 22px; }
.eh-prose li { margin-bottom: 6px; }
.eh-review { padding: 16px 20px; background: #FFFBEF; border: 1px solid #F3D48A; border-radius: 16px; }

.eh-sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.eh-sitemap h2 { font-size: 22px; margin-bottom: 12px !important; }
.eh-section .eh-sitemap ul { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; font-size: 16px; }
.eh-sitemap li { margin: 0; }

.eh-arch-q .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.eh-arch-q .wp-block-post-template > li { display: flex; margin: 0; }
.eh-arch-q .eh-card { width: 100%; }
.eh-arch-q h3 { margin: 0; }
.eh-arch-q h3 a { color: var(--wp--preset--color--ink); font-weight: 700; }
.eh-arch-q .wp-block-post-excerpt { margin: 0; font-size: 16px; color: var(--wp--preset--color--ink-body); }
.eh-arch-q .wp-block-post-excerpt__excerpt { margin: 0; }
.eh-arch-q .wp-block-read-more { margin-top: auto; font-size: 15px; font-weight: 700; color: var(--wp--preset--color--sky-text); }
.course_audience-kids-teens .eh-arch-tile { background: var(--wp--preset--gradient--tile-blue); --eh-tile-ico: var(--eh-ico-book); }
.course_audience-career-adults .eh-arch-tile { background: var(--wp--preset--gradient--tile-green); --eh-tile-ico: var(--eh-ico-case); }
.course_audience-tefl-thai .eh-arch-tile { background: var(--wp--preset--gradient--tile-sun); --eh-tile-ico: var(--eh-ico-cap); }

@media (max-width: 1099px) {
	.eh-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.eh-page-hero.eh-section { margin-top: -70px; padding: 98px 16px 36px; }
	.eh-page-hero h1 { font-size: 38px; }
	.eh-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.eh-photo p { font-size: 12px; }
	.eh-form-card { padding: 20px; }
	.eh-form__grid { grid-template-columns: minmax(0, 1fr); }
	.eh-sitemap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.eh-prose p, .eh-prose li { font-size: 16px; }
	.eh-section .eh-prose > h2 { font-size: 22px; }
}

/* Thai layout */
html[lang="th"] .eh-eyebrow { letter-spacing: 0.02em; }
html[lang="th"] .eh-lead, html[lang="th"] p, html[lang="th"] li { line-break: auto; }
@media (max-width: 781px) {
	html[lang="th"] .wp-element-button, html[lang="th"] .wp-block-button__link { white-space: normal; text-align: center; }
}

@media (max-width: 1139px) {
	html[lang="th"] .eh-glass .wp-block-navigation__responsive-container-open { display: flex; }
	html[lang="th"] .eh-glass .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
}

/* Thai courses list */
.course_audience-kids-teens-th .eh-arch-tile { background: var(--wp--preset--gradient--tile-blue); --eh-tile-ico: var(--eh-ico-book); }
.course_audience-career-adults-th .eh-arch-tile { background: var(--wp--preset--gradient--tile-green); --eh-tile-ico: var(--eh-ico-case); }
.course_audience-tefl-thai-th .eh-arch-tile { background: var(--wp--preset--gradient--tile-sun); --eh-tile-ico: var(--eh-ico-cap); }

/* EH checkout tidy */
body.woocommerce-checkout .woocommerce {
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon,
body.woocommerce-checkout #customer_details .col-2,
body.woocommerce-checkout #order_review tr.cart-subtotal {
	display: none !important;
}
body.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	column-gap: 40px;
	align-items: start;
}
body.woocommerce-checkout form.checkout::before,
body.woocommerce-checkout form.checkout::after,
body.woocommerce-checkout #customer_details::before,
body.woocommerce-checkout #customer_details::after {
	display: none;
}
body.woocommerce-checkout #customer_details {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 100%;
}
body.woocommerce-checkout #customer_details .col-1 {
	float: none;
	width: 100%;
}
body.woocommerce-checkout #order_review_heading {
	grid-column: 2;
	grid-row: 1;
	margin: 0 0 12px;
	font-size: 1.1rem;
}
body.woocommerce-checkout #order_review {
	grid-column: 2;
	grid-row: 2;
	position: sticky;
	top: 96px;
	padding: 18px;
	border: 1px solid #e3e6ee;
	border-radius: 14px;
	background: #f7f8fb;
}
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	align-items: end;
}
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-billing-fields > p:not(.form-row),
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout #eh_consent_field {
	grid-column: 1 / -1;
}
body.woocommerce-checkout .woocommerce-billing-fields > h3 {
	margin: 18px 0 0;
	font-size: 1.1rem;
}
body.woocommerce-checkout .woocommerce-billing-fields > h3:first-child {
	margin-top: 0;
}
body.woocommerce-checkout .woocommerce-billing-fields > p:not(.form-row) {
	margin: -4px 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
}
body.woocommerce-checkout .woocommerce-billing-fields .form-row {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}
body.woocommerce-checkout .woocommerce-billing-fields .form-row label {
	margin-bottom: 4px;
	font-size: 0.875rem;
	line-height: 1.35;
}
body.woocommerce-checkout .woocommerce-billing-fields .input-text,
body.woocommerce-checkout .woocommerce-billing-fields select {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #c9ced9;
	border-radius: 8px;
	background: #fff;
	font-size: 0.95rem;
}
body.woocommerce-checkout #eh_th_field .optional {
	display: none;
}
body.woocommerce-checkout #order_review table.shop_table {
	margin: 0 0 14px;
	border: 0;
	font-size: 0.9rem;
}
body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid #e3e6ee;
	background: transparent;
}
body.woocommerce-checkout #order_review table.shop_table tr.order-total th,
body.woocommerce-checkout #order_review table.shop_table tr.order-total td {
	border-bottom: 0;
	font-size: 1.05rem;
}
body.woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0;
}
body.woocommerce-checkout #payment ul.payment_methods {
	padding: 0 0 10px;
	border-bottom: 1px solid #e3e6ee;
}
body.woocommerce-checkout #payment ul.payment_methods li {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
}
body.woocommerce-checkout #payment .payment_method_2c2p label img {
	display: inline-block !important;
	float: none !important;
	width: auto !important;
	max-width: 70px !important;
	max-height: 24px !important;
	margin: 0 0 0 6px !important;
	vertical-align: middle;
}
body.woocommerce-checkout #payment div.payment_box {
	margin: 8px 0 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: #edeff5;
	font-size: 0.8rem;
	line-height: 1.45;
}
body.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}
body.woocommerce-checkout #payment div.payment_box p {
	margin: 0;
}
body.woocommerce-checkout #payment div.form-row {
	margin: 0;
	padding: 12px 0 0;
}
body.woocommerce-checkout .woocommerce-privacy-policy-text p {
	margin: 0 0 12px;
	font-size: 0.75rem;
	line-height: 1.45;
}
body.woocommerce-checkout #place_order {
	float: none;
	width: 100%;
	min-height: 48px;
}
@media (max-width: 781px) {
	body.woocommerce-checkout form.checkout {
		display: block;
	}
	body.woocommerce-checkout #order_review_heading {
		margin-top: 24px;
	}
	body.woocommerce-checkout #order_review {
		position: static;
	}
	body.woocommerce-checkout #billing_phone_field,
	body.woocommerce-checkout #billing_email_field,
	body.woocommerce-checkout #eh_th_field,
	body.woocommerce-checkout #eh_grade_field {
		grid-column: 1 / -1;
	}
}
@media (max-width: 781px) {
	body.woocommerce-checkout {
		--wp--style--root--padding-left: 16px;
		--wp--style--root--padding-right: 16px;
	}
}

/* EH checkout menu: the parent theme hides the main menu on the checkout; we keep it. */
body.woocommerce-checkout.woocommerce-page header.wp-block-template-part nav.wp-block-navigation {
	visibility: visible;
}

/* EH no customer login: WooCommerce adds this icon to the header; buyers check out as guests. */
header.wp-block-template-part .wp-block-woocommerce-customer-account {
	display: none;
}

/* EH header lines up: logo and buttons sit on the same edges as the page content and footer. */
@media (min-width: 1100px) {
	.wp-site-blocks > header.wp-block-template-part { box-sizing: border-box; width: min(1218px, calc(100% - 28px)); margin-left: auto; margin-right: auto; }
}

/* EH floating buttons line up with the right edge of the page content. */
@media (min-width: 782px) {
	.eh-floating { right: max(32px, calc((100% - 1180px) / 2)); }
}

/* EH header layout: the menu starts next to the logo; the language switch and LINE stay on the right. */
@media (min-width: 1100px) {
	.eh-glass .wp-block-navigation { margin-left: 16px; --navigation-layout-justification-setting: flex-start; }
	.eh-glass .eh-lang { margin-left: auto; }
}

/* EH checkout spacing: room below the header and above the footer. */
body.woocommerce-checkout main.wp-block-group { margin-top: -74px !important; padding-top: 122px !important; padding-bottom: 80px !important; background: var(--wp--preset--gradient--hero-glow); }
@media (max-width: 781px) {
	body.woocommerce-checkout main.wp-block-group { margin-top: -70px !important; padding-top: 94px !important; padding-bottom: 56px !important; }
}

/* EH cart icon: only shown while something is in the cart. */
header.wp-block-template-part .wc-block-mini-cart:has(.wc-block-mini-cart__badge[hidden]),
header.wp-block-template-part .wp-block-navigation-item:has(.wc-block-mini-cart__badge[hidden]) {
	display: none;
}

/* EH cart tidy: same look as the checkout. */
body.woocommerce-cart main.wp-block-group { margin-top: -74px !important; padding-top: 122px !important; padding-bottom: 80px !important; background: var(--wp--preset--gradient--hero-glow); }
body.woocommerce-cart .woocommerce { box-sizing: border-box; width: 100%; max-width: 1180px !important; margin-left: auto !important; margin-right: auto !important; }
body.woocommerce-cart .woocommerce:not(.wp-block-breadcrumbs):not(.wp-block-woocommerce-store-notices) { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
body.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
body.woocommerce-cart .woocommerce-cart-form { grid-column: 1; }
body.woocommerce-cart .cart-collaterals { grid-column: 2; width: 100%; padding: 18px; border: 1px solid #e3e6ee; border-radius: 14px; background: #f7f8fb; box-sizing: border-box; }
body.woocommerce-cart .cart-collaterals::before, body.woocommerce-cart .cart-collaterals::after { display: none; }
body.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }
body.woocommerce-cart .cart_totals h2 { margin: 0 0 12px; font-size: 1.1rem; }
body.woocommerce-cart table.shop_table { margin: 0; border: 0; border-radius: 0; font-size: 0.9rem; background: transparent; }
body.woocommerce-cart table.shop_table th, body.woocommerce-cart table.shop_table td { padding: 10px 6px; border: 0; border-bottom: 1px solid #e3e6ee; background: transparent; }
body.woocommerce-cart table.cart img { width: 56px; border-radius: 6px; }
body.woocommerce-cart table.cart input.qty { width: 64px; height: 36px; padding: 0 8px; border: 1px solid #c9ced9; border-radius: 8px; background: #fff; }
body.woocommerce-cart table.cart td.actions { padding-top: 14px; border-bottom: 0; }
body.woocommerce-cart table.cart td.actions .coupon { display: none; }
body.woocommerce-cart table.cart td.actions .button { min-height: 38px; height: 38px; padding: 0 16px; font-size: 0.875rem; }
body.woocommerce-cart .wc-proceed-to-checkout { padding: 14px 0 0; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; height: 48px; margin: 0; padding: 0 16px; font-size: 1rem; }
body.woocommerce-cart tr.order-total th, body.woocommerce-cart tr.order-total td { border-bottom: 0; font-size: 1.05rem; }
@media (max-width: 781px) {
	body.woocommerce-cart { --wp--style--root--padding-left: 16px; --wp--style--root--padding-right: 16px; }
	body.woocommerce-cart main.wp-block-group { margin-top: -70px !important; padding-top: 94px !important; padding-bottom: 56px !important; }
	body.woocommerce-cart .woocommerce:not(.wp-block-breadcrumbs):not(.wp-block-woocommerce-store-notices) { display: block; }
	body.woocommerce-cart .cart-collaterals { margin-top: 20px; }
}
