/* ===== Wale Header: จัดหน้าเว็บทั้งเว็บให้เป็นชุดเดียวกัน (แทน CSS เพิ่มเติมเดิมทั้งหมด) =====
   html.wlh-front = หน้าแรก · html.wlh-inner = หน้าอื่น (ปลั๊กอินใส่ให้เอง ไม่ต้องพึ่ง class ของธีม) */
html,body{background:#eef2f8!important}
#wlh .wlh-banner{background:transparent!important}
/* กล่องนอกสุดของธีม กว้างเท่าแบนเนอร์ อยู่กลางจอ */
body>*:not(#wpadminbar):not(#wlh):not(#wlh-foot):not(script):not(style):not(link):not(noscript){max-width:var(--wlh-pw,1140px);margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
@media(max-width:1180px){body>*:not(#wpadminbar):not(#wlh):not(#wlh-foot){padding-left:12px;padding-right:12px}}
.elementor-section>.elementor-container,.e-con.e-parent>.e-con-inner{max-width:var(--wlh-pw,1140px)!important;margin-left:auto!important;margin-right:auto!important}
.elementor-section.elementor-top-section{max-width:var(--wlh-pw,1140px);margin-left:auto!important;margin-right:auto!important}
.elementor-section-stretched{width:auto!important;left:auto!important}
.elementor-widget:not(:last-child){margin-bottom:12px!important}
.post-edit-link{font-size:12px!important;color:#9aa3b2!important;opacity:.7}
.post-views{max-width:var(--wlh-pw,1140px);margin:4px auto 0!important;padding:0!important;font-size:13px}
#wlh-foot.wlh-fbox{margin-top:16px!important}

/* ---------- หน้าแรก ---------- */
html.wlh-front body>*:not(#wpadminbar):not(#wlh):not(#wlh-foot){padding-top:0!important;padding-bottom:0!important;background:transparent!important;box-shadow:none!important;border:0!important}
html.wlh-front .entry-content,html.wlh-front article,html.wlh-front .art-post,html.wlh-front .art-postcontent{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html.wlh-front .post-edit-link{display:none!important}
/* ทุกกล่องใหญ่เป็นการ์ดขาวมุมโค้ง ห่างกันเท่ากัน */
html.wlh-front .elementor-section.elementor-top-section{background:#fff!important;border:1px solid #e3e8f0!important;border-radius:18px!important;box-shadow:0 8px 26px rgba(13,40,90,.07)!important;margin-top:0!important;margin-bottom:16px!important;padding:14px 10px!important;overflow:hidden}
html.wlh-front .elementor-section.elementor-top-section:first-of-type{margin-top:16px!important}
/* กรอบ/เงาเดิมในกล่องย่อยออก (ยกเว้นกล่องประกาศ wale-box4) */
html.wlh-front .elementor-top-section:not(.wale-box4) .elementor-column>.elementor-widget-wrap,html.wlh-front .elementor-inner-section,html.wlh-front .elementor-posts-container{border:0!important;box-shadow:none!important;border-radius:0!important}
html.wlh-front .elementor-inner-section{margin:0!important;padding:0!important}
/* ช่องว่างเปล่า (Spacer) เตี้ยลง และซ่อนกล่องที่มีแต่ช่องว่าง */
html.wlh-front .elementor-widget-spacer .elementor-spacer-inner{height:6px!important}
html.wlh-front .elementor-top-section:not(:has(.elementor-widget:not(.elementor-widget-spacer))){display:none!important}
/* หัวข้อในหน้าแรก: ฟอนต์เดียวกับเมนู + ขีดสีใต้หัวข้อ */
html.wlh-front .elementor-widget-heading .elementor-heading-title{font-family:Kanit,Sarabun,sans-serif!important;font-weight:600!important;color:#0d3b8e!important;letter-spacing:0!important}
html.wlh-front .elementor-widget-heading h2.elementor-heading-title,html.wlh-front .elementor-widget-heading h1.elementor-heading-title{font-size:24px!important;line-height:1.35!important}
html.wlh-front .elementor-widget-heading h2.elementor-heading-title::after,html.wlh-front .elementor-widget-heading h1.elementor-heading-title::after{content:"";display:block;width:56px;height:4px;border-radius:4px;margin:8px auto 0;background:linear-gradient(90deg,#e2a72e,#1f8a5b)}
html.wlh-front .elementor-widget-heading .elementor-heading-title[style*="left"]::after,html.wlh-front .elementor-align-left .elementor-heading-title::after{margin-left:0}
/* รูปในหน้าแรก มุมโค้ง */
html.wlh-front .elementor-widget-image img{border-radius:12px}
html.wlh-front .elementor-button{border-radius:30px!important;font-family:Kanit,Sarabun,sans-serif!important}

/* ---------- หน้าด้านใน ---------- */
html.wlh-inner body>*:not(#wpadminbar):not(#wlh):not(#wlh-foot):has(h1){background:#fff!important;border-radius:18px;box-shadow:0 8px 28px rgba(13,40,90,.08);padding:26px 32px 36px!important;margin-top:18px!important;margin-bottom:0!important}
html.wlh-inner h1{font-family:Kanit,Sarabun,sans-serif!important;font-size:28px!important;font-weight:600!important;line-height:1.35!important;color:#0d3b8e!important;position:relative;margin:0 0 18px!important;padding:0 0 14px 18px!important;border-bottom:1px solid #e3e8f0!important}
html.wlh-inner h1::before{content:"";position:absolute;left:0;top:.15em;height:1.1em;width:6px;border-radius:4px;background:linear-gradient(#e2a72e,#1f8a5b)}
html.wlh-inner iframe{border-radius:12px;border:1px solid #e3e8f0!important;max-width:100%}
@media(max-width:767px){
  html.wlh-inner body>*:not(#wpadminbar):not(#wlh):not(#wlh-foot):has(h1){padding:18px 16px 24px!important;border-radius:0}
  html.wlh-inner h1{font-size:22px!important}
  html.wlh-front .elementor-section.elementor-top-section{border-radius:12px!important}
}

/* ---------- กล่องประกาศ 4 คอลัมน์ (section ที่ใส่ CSS Class: wale-box4) ---------- */
.wale-box4 .elementor-column>.elementor-widget-wrap{display:flex!important;flex-direction:column;flex-wrap:nowrap!important;height:560px;background:#fff;border:1px solid #e3e8f0;border-radius:14px;box-shadow:0 6px 18px rgba(13,40,90,.07);padding:14px 16px 16px!important;margin:6px}
.wale-box4 .elementor-widget-wrap>.elementor-widget:not(.elementor-widget-heading):not(.elementor-widget-button){flex:1 1 auto;min-height:0;overflow:hidden;margin-bottom:10px!important}
.wale-box4 ul{margin:0!important;padding-left:18px!important}.wale-box4 li{margin:0 0 10px!important;line-height:1.5}
.wale-box4 li a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wale-box4 li .rss-date,.wale-box4 li .post-date{display:block;font-size:.85em}
.wale-box4 .elementor-widget-button{margin-top:auto!important;margin-bottom:0!important}
@media(max-width:767px){.wale-box4 .elementor-column>.elementor-widget-wrap{height:460px}}
