/*
Theme Name: Patsornchai Child
Template: hello-elementor
Version: 1.2.1
Text Domain: patsornchai-child
*/
/* Step cards */
.step-card { position: relative; }
.step-arrow::after { content: "➜"; position:absolute; top:50%; right:-20px; transform:translateY(-50%); width:24px; height:24px; border-radius:50%; background:#102139; color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; line-height:1; z-index:10; box-shadow:0 0 0 2px #fff; }
@media(max-width:767px){ .step-arrow::after { display:none; } }
/* Galaxy Neo */
.galaxy-neo-fade-bg { position:relative; background-color:#fff !important; background-image:linear-gradient(to bottom,rgba(28,20,62,.78) 0%,rgba(28,20,62,.78) 15%,rgba(28,20,62,.75) 25%,rgba(28,20,62,.55) 35%,rgba(255,255,255,.65) 55%,rgba(255,255,255,.95) 70%,rgba(255,255,255,1) 85%),url("https://patsornchaivan.com/wp-content/uploads/2026/11/3b9d26da727758435540f54853eb945c4c1c20e2-1.png") !important; background-position:center top !important; background-size:cover !important; background-repeat:repeat-y !important; background-attachment:scroll !important; }
.galaxy-neo-fade-bg,.galaxy-neo-fade-bg > .e-con-inner { border:none !important; outline:none !important; box-shadow:none !important; }
.faq-accordian .elementor-accordion .elementor-accordion-item { border-bottom:1px solid #E4E4E7 !important; }
/* Polylang / HFE */
.hfe-nav-menu .pll-parent-menu-item { position:relative !important; }
.hfe-nav-menu .pll-parent-menu-item > .hfe-has-submenu-container { display:flex !important; align-items:center !important; }
.hfe-nav-menu .pll-parent-menu-item > .hfe-has-submenu-container > a.hfe-menu-item { display:flex !important; align-items:center !important; justify-content:flex-start !important; padding:0 5px !important; gap:5px !important; min-height:26px !important; }
.hfe-nav-menu .pll-parent-menu-item > ul.sub-menu { position:absolute !important; top:calc(100% - 5px) !important; left:0 !important; right:auto !important; transform:none !important; margin:0 !important; padding:0 !important; min-width:0 !important; width:100% !important; z-index:9999 !important; }
.hfe-nav-menu .pll-parent-menu-item > ul.sub-menu > li { margin:0 !important; padding:0 !important; }
.hfe-nav-menu .pll-parent-menu-item > ul.sub-menu a { display:flex !important; align-items:center !important; justify-content:flex-start !important; padding:0 5px !important; margin:0 !important; height:26px !important; box-sizing:border-box !important; }
.hfe-nav-menu .pll-parent-menu-item img { display:block !important; width:16px !important; height:auto !important; margin:0 !important; padding:0 !important; flex-shrink:0 !important; }
.hfe-nav-menu .pll-parent-menu-item .sub-arrow { display:inline-flex !important; align-items:center !important; justify-content:center !important; align-self:center !important; margin:0 !important; padding:0 !important; line-height:1 !important; position:relative !important; top:0 !important; }
.hfe-nav-menu .pll-parent-menu-item .sub-arrow i,.hfe-nav-menu .pll-parent-menu-item .sub-arrow svg { display:block !important; margin:0 !important; vertical-align:middle !important; line-height:1 !important; }
.menu-item-has-children.lang-item > a,.pll-parent-menu-item > a { min-width:44px !important; min-height:44px !important; display:flex !important; align-items:center !important; justify-content:center !important; box-sizing:border-box; gap:6px; touch-action:manipulation; }
.pll-parent-menu-item img { flex-shrink:0; object-fit:contain; }
.pll-parent-menu-item .sub-menu a { min-height:44px !important; display:flex !important; align-items:center !important; justify-content:center !important; }
/* Ensure HFE wrapped main language link also has a mobile touch target. */
@media(max-width:767px){ .hfe-nav-menu .pll-parent-menu-item > .hfe-has-submenu-container > a.hfe-menu-item { min-height:44px !important; min-width:44px !important; touch-action:manipulation; } }
/* Smart Header: scoped to enabled devices and visible hero. */
body:not(.elementor-editor-active) .smart-header.smart-header-ready {
 position:fixed !important; top:var(--smart-admin-offset,0px); left:0; width:100%; z-index:9999;
 background-color:transparent !important; --header-color:#fff;
 transition:background-color .45s ease-in-out,box-shadow .45s ease-in-out !important;
}
body:not(.elementor-editor-active) .smart-header.smart-header-ready.is-scrolled {
 background-color:#fff !important; --header-color:#191919; box-shadow:0 2px 10px rgba(0,0,0,.06);
}
.smart-header.smart-header-ready.smart-header-ready :is(.elementor-item,.elementor-menu-toggle,.elementor-icon,.elementor-icon i,.elementor-icon-list-text,.elementor-icon-list-icon i,.sub-arrow,.hfe-menu-item,.hfe-menu-item span,.hfe-nav-menu__toggle,.hfe-nav-menu-icon,.header-icon,.header-text:not(.elementor-widget-button),.header-text a:not(.elementor-button),.header-text span:not(.elementor-button-text),.elementor-heading-title,.elementor-heading-title a) {
 color:var(--header-color) !important; transition:color .45s ease-in-out !important;
}
.smart-header.smart-header-ready.smart-header-ready .hfe-nav-menu > li > a.hfe-menu-item,
.smart-header.smart-header-ready.smart-header-ready .hfe-nav-menu > li > .hfe-has-submenu-container > a.hfe-menu-item {color:var(--header-color) !important;}
.smart-header.smart-header-ready :is(.elementor-icon,.elementor-menu-toggle,.elementor-icon-list-icon,.sub-arrow,.hfe-nav-menu__toggle,.hfe-nav-menu-icon,.header-icon) svg {color:var(--header-color) !important; transition:color .45s ease-in-out,fill .45s ease-in-out,stroke .45s ease-in-out;}
.smart-header.smart-header-ready :is(.elementor-icon,.elementor-menu-toggle,.elementor-icon-list-icon,.sub-arrow,.hfe-nav-menu__toggle,.hfe-nav-menu-icon,.header-icon) svg:not([fill="none"]) {fill:currentColor !important;}
.smart-header.smart-header-ready :is(.elementor-icon,.elementor-menu-toggle,.elementor-icon-list-icon,.sub-arrow,.hfe-nav-menu__toggle,.hfe-nav-menu-icon,.header-icon) svg [stroke]:not([stroke="none"]) {stroke:currentColor;}
.smart-header.smart-header-ready :is(.elementor-widget-theme-site-logo,.header-logo) img {filter:brightness(0) invert(1); transition:filter .45s ease-in-out !important;}
.smart-header.smart-header-ready.is-scrolled :is(.elementor-widget-theme-site-logo,.header-logo) img {filter:brightness(0) invert(0);}
.smart-header.smart-header-ready.smart-header-ready :is(.sub-menu,.elementor-nav-menu--dropdown) a,
.smart-header.smart-header-ready.smart-header-ready :is(.sub-menu,.elementor-nav-menu--dropdown) a span {color:#191919 !important;}
.smart-header.smart-header-ready :is(.sub-menu,.elementor-nav-menu--dropdown) {background-color:#fff !important;}
@media(prefers-reduced-motion:reduce){.smart-header.smart-header-ready,.smart-header.smart-header-ready * {transition-duration:0s !important;}}

/* HFE compatibility: actual panel state, not stale aria-expanded. */
.smart-header.smart-header-ready .hfe-nav-menu-icon svg {color:var(--header-color) !important;transition:color .45s ease-in-out;}
.smart-header.smart-header-ready .hfe-nav-menu-icon svg [stroke]:not([stroke="none"]) {stroke:var(--header-color) !important;transition:stroke .45s ease-in-out;}
.smart-header.smart-header-ready .hfe-nav-menu-icon svg [fill]:not([fill="none"]) {fill:var(--header-color) !important;transition:fill .45s ease-in-out;}
.smart-header.smart-header-ready .hfe-flyout-wrapper {--header-color:#191919 !important;color:#191919 !important;}
.smart-header.smart-header-ready .hfe-flyout-wrapper :is(.hfe-nav-menu a,a.hfe-menu-item,a.hfe-sub-menu-item) {color:#191919 !important;transition:none !important;}
.smart-header.smart-header-ready .hfe-side {top:0 !important;margin-top:0 !important;}
.smart-header.smart-header-ready .e-con:has(.hfe-side.hfe-flyout-show) {z-index:1000000 !important;overflow:visible !important;}
.smart-header.smart-header-ready .elementor-widget:has(.hfe-side.hfe-flyout-show) {z-index:1000001 !important;overflow:visible !important;}
.smart-header.smart-header-ready .header-logo {transition:opacity .2s ease-in-out;}
.smart-header.smart-header-ready:has(.hfe-side.hfe-flyout-show) .header-logo {opacity:0 !important;visibility:hidden !important;pointer-events:none !important;}
@media(prefers-reduced-motion:reduce){.smart-header.smart-header-ready,.smart-header.smart-header-ready * {transition-duration:0s !important;}}

/* Polylang background: all enabled devices */
.smart-header.smart-header-ready { --language-bg: transparent; }
.smart-header.smart-header-ready.is-scrolled { --language-bg: #ffffff; }
.smart-header.smart-header-ready .pll-parent-menu-item,
.smart-header.smart-header-ready .pll-parent-menu-item > .hfe-has-submenu-container,
.smart-header.smart-header-ready .pll-parent-menu-item > .hfe-has-submenu-container > a,
.smart-header.smart-header-ready .pll-parent-menu-item > ul.sub-menu > li,
.smart-header.smart-header-ready .pll-parent-menu-item > ul.sub-menu a {
 background-color: transparent !important; background-image: none !important;
}
.smart-header.smart-header-ready .pll-parent-menu-item > ul.sub-menu {
 background-color: var(--language-bg) !important; background-image: none !important;
 border: none !important; box-shadow: none !important;
 transition: background-color .45s ease-in-out;
}
/* Equal flag spacing on desktop and tablet */
@media (min-width: 768px) {
 .hfe-nav-menu .pll-parent-menu-item > ul.sub-menu { top:100% !important; margin:0 !important; padding:0 !important; gap:0 !important; }
 .hfe-nav-menu .pll-parent-menu-item > ul.sub-menu > li { margin:0 !important; padding:0 !important; height:26px !important; min-height:26px !important; border:none !important; }
 .hfe-nav-menu .pll-parent-menu-item > .hfe-has-submenu-container > a.hfe-menu-item,
 .hfe-nav-menu .pll-parent-menu-item > ul.sub-menu > li > a {
 display:flex !important; align-items:center !important; justify-content:flex-start !important;
 height:26px !important; min-height:26px !important; margin:0 !important; padding:0 5px !important;
 line-height:1 !important; box-sizing:border-box !important;
 }
}
/* Dotted outline fix, retain visible keyboard focus on links and arrow */
.hfe-nav-menu .pll-parent-menu-item .sub-arrow,
.hfe-nav-menu .pll-parent-menu-item .sub-arrow *,
.hfe-nav-menu .pll-parent-menu-item .sub-arrow:focus,
.hfe-nav-menu .pll-parent-menu-item .sub-arrow:active,
.hfe-nav-menu .pll-parent-menu-item .sub-arrow:focus-visible { outline:none !important; border:none !important; box-shadow:none !important; }
.hfe-nav-menu .pll-parent-menu-item:focus,
.hfe-nav-menu .pll-parent-menu-item a:focus,
.hfe-nav-menu .pll-parent-menu-item .hfe-has-submenu-container:focus { outline:none !important; box-shadow:none !important; }
.hfe-nav-menu .pll-parent-menu-item a:focus-visible,
.hfe-nav-menu .pll-parent-menu-item .hfe-has-submenu-container:focus-visible,
.hfe-nav-menu .pll-parent-menu-item .sub-arrow:focus-visible { outline:2px solid currentColor !important; outline-offset:3px; }
@media(prefers-reduced-motion:reduce){.smart-header.smart-header-ready,.smart-header.smart-header-ready * {transition-duration:0s !important;}}
