/*
Theme Name: K Building (Blocksy Child)
Template: blocksy
Description: Child theme ของ Blocksy สำหรับ K Building โทนน้ำเงินเข้ม-ส้ม ฟอนต์ Kanit
Version: 1.0.0
Text Domain: blocksy-child-kbuilding
*/

/* ---------- โทนสีและฟอนต์ ---------- */
:root{
  --kb-navy:#0b214a;
  --kb-blue:#1673ba;
  --kb-blue-dark:#115d98;
  --kb-sky:#e8f1fe;
  --kb-line:#cfe0fb;
  --kb-orange:#1673ba;
  --kb-text:#3d4852;
  --theme-palette-color-1:#1673ba !important;
  --theme-palette-color-2:#115d98 !important;
  --theme-palette-color-3:#3d4852 !important;
  --theme-palette-color-4:#0b214a !important;
  --theme-palette-color-5:#d2e1f2 !important;
  --theme-palette-color-6:#f0f7ff !important;
  --theme-palette-color-7:#f7fafd !important;
  --theme-palette-color-8:#ffffff !important;
  --theme-font-family:'Kanit',sans-serif !important;
  --theme-text-color:#3d4852 !important;
  --theme-headings-color:#0b214a !important;
  --theme-link-initial-color:#1673ba !important;
  --theme-link-hover-color:#115d98 !important;
}
body,button,input,select,textarea,h1,h2,h3,h4,h5,h6,.ct-menu-link{font-family:'Kanit',sans-serif !important;}
body{color:var(--kb-text);font-weight:300;font-size:17px;line-height:1.8;background:#fff;}
h1,h2,h3,h4,h5,h6{color:var(--kb-navy);font-weight:600;letter-spacing:0;}
strong,b{font-weight:500;}

/* ---------- แถบบนสุด ---------- */
.kb-topbar{background:var(--kb-blue);color:#fff;font-size:14px;font-weight:400;}
.kb-topbar__inner{max-width:1290px;margin:0 auto;padding:6px 24px;display:flex;justify-content:flex-end;align-items:center;gap:22px;flex-wrap:wrap;}
.kb-topbar a{color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:6px;}
.kb-topbar a:hover{color:#cfe6fa;}
.kb-topbar svg{width:15px;height:15px;fill:currentColor;}
.kb-topbar__tag{margin-right:auto;opacity:.9;}
@media (max-width:689px){.kb-topbar__tag{display:none;}.kb-topbar__inner{justify-content:center;gap:16px;padding:6px 12px;}}

/* ---------- ส่วนหัวและเมนูแบบแคปซูล ---------- */
#header{position:sticky;top:0;z-index:50;box-shadow:0 2px 14px rgba(16,42,65,.08);}
.admin-bar #header{top:32px;}
#header [data-row*="middle"]{background:#fff !important;--height:84px;}
#header .site-logo-container img{max-height:64px;width:auto;}
#header .site-title a{color:var(--kb-navy);font-weight:700;}
#header .menu > li > .ct-menu-link{
  color:var(--kb-navy) !important;font-weight:500;font-size:15px;text-transform:none;
  height:auto !important;padding:8px 18px !important;margin:0 2px;border-radius:999px;
  transition:background .18s ease,color .18s ease;
}
#header .menu > li > .ct-menu-link:hover{background:var(--kb-sky);color:var(--kb-blue) !important;}
#header .menu > li.current-menu-item > .ct-menu-link,
#header .menu > li.current_page_item > .ct-menu-link,
#header .menu > li.current-menu-ancestor > .ct-menu-link{background:var(--kb-blue);color:#fff !important;}
#header .menu{align-items:center;}
#header .ct-toggle{color:var(--kb-navy);}

/* ---------- ปุ่ม ---------- */
.wp-block-button__link,.ct-button,button[type=submit],input[type=submit]{
  background:var(--kb-orange) !important;color:#fff !important;border-radius:999px !important;
  font-weight:500;padding:12px 30px;border:0;transition:background .18s ease,transform .18s ease;
}
.wp-block-button__link:hover,.ct-button:hover,button[type=submit]:hover,input[type=submit]:hover{background:var(--kb-blue-dark) !important;transform:translateY(-1px);}

/* ---------- หน้าแรก ---------- */
.home .hero-section,.home .entry-header{display:none;}
.home #main .ct-container-full,.home #main [class*="ct-container"]{padding-top:0;}
.home .entry-content > div:first-child,.home .entry-content > .n2-section-smartslider:first-child{margin-top:0 !important;}
.home .entry-content > hr,.home .entry-content hr.wp-block-separator{border:0;height:0;margin:0;background:none;}
.home .entry-content > p{max-width:1040px;margin-left:auto;margin-right:auto;}
.home .entry-content > p:empty{display:none;}

/* หัวข้อ section: ขีดส้มใต้หัวข้อ */
.home .entry-content > h2,
.home .entry-content > h3,
.home .entry-content > h3[style]{
  text-align:center !important;font-size:clamp(24px,2.6vw,34px);line-height:1.35;color:var(--kb-blue-dark);
  margin:72px auto 22px;max-width:1040px;position:relative;padding-bottom:18px;
}
.home .entry-content > h2::after,
.home .entry-content > h3::after{
  content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:72px;height:4px;border-radius:4px;background:var(--kb-orange);
}
.peb-page-h1{
  color:var(--kb-navy);font-size:clamp(26px,3vw,38px);line-height:1.35;text-align:center;
  margin:40px auto 22px;max-width:1040px;
}

/* แถบติดต่อ */
.peb-contact-strip{box-sizing:border-box;margin:0 auto 12px !important;max-width:none !important;width:100%;background:var(--kb-sky);padding:26px 16px;border-bottom:1px solid var(--kb-line);}
.peb-contact-strip > *{max-width:1040px;margin-left:auto !important;margin-right:auto !important;}
.peb-contact-items{align-items:center;gap:clamp(18px,2.5vw,32px) !important;margin-top:0 !important;margin-bottom:0 !important;}
.peb-contact-item{display:flex;justify-content:center;min-width:0;}
.peb-contact-image{margin:0 !important;max-width:300px !important;width:100% !important;}
.peb-contact-image img{display:block;height:auto;width:100%;filter:drop-shadow(0 8px 14px rgba(16,42,65,.14));transition:transform .18s ease;}
.peb-contact-image a:hover img{transform:translateY(-3px);}

/* การ์ด */
.peb-service-showcase,.peb-card-section{box-sizing:border-box;margin:28px auto 48px !important;max-width:min(1180px,calc(100vw - 32px));padding:4px 0;width:auto;}
.peb-service-showcase *,.peb-card-section *{box-sizing:border-box;}
.peb-service-cards,.peb-card-grid{align-items:stretch;gap:clamp(18px,2.4vw,30px) !important;margin:0 0 26px !important;max-width:100%;width:100%;}
.peb-card-grid:last-child{margin-bottom:0 !important;}
.peb-service-card,.peb-info-card{
  background:#fff;border:1px solid var(--kb-line);border-radius:14px;overflow:hidden;
  box-shadow:0 12px 32px rgba(16,42,65,.08);display:flex;flex-direction:column;
  padding:0 0 24px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
  border-bottom:4px solid var(--kb-blue);
}
.peb-service-card:hover,.peb-info-card:hover{transform:translateY(-5px);box-shadow:0 20px 44px rgba(16,42,65,.16);border-bottom-color:var(--kb-navy);}
.peb-service-card > *,.peb-info-card > *{margin-left:22px !important;margin-right:22px !important;}
.peb-service-card > figure,.peb-info-card > figure,
.peb-service-card > .wp-block-image,.peb-info-card > .wp-block-image{margin:0 0 18px !important;max-width:100% !important;width:100% !important;overflow:hidden;}
.peb-service-card figure img,.peb-info-card figure img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:transform .5s ease;}
.peb-service-card:hover figure img,.peb-info-card:hover figure img{transform:scale(1.05);}
.peb-info-kicker,.peb-service-number{
  align-items:center;background:var(--kb-sky);border-radius:999px;color:var(--kb-blue);
  display:inline-flex;font-size:13px;font-weight:500;line-height:1.35;margin-bottom:10px !important;padding:4px 12px;width:fit-content;
}
.peb-service-title,.peb-info-title{color:var(--kb-navy);font-size:clamp(19px,1.45vw,23px);line-height:1.4;margin-top:0 !important;margin-bottom:10px !important;}
.peb-service-copy,.peb-info-copy{color:var(--kb-text);font-size:16px;line-height:1.8;margin-bottom:0 !important;}

/* สองคอลัมน์ "การใช้งาน" ที่มี padding 200px แบบ inline */
.home .entry-content .wp-block-columns.alignwide[style*="padding"]{padding-left:0 !important;padding-right:0 !important;max-width:1040px;margin-left:auto;margin-right:auto;gap:30px;}
.home .entry-content .wp-block-columns.alignwide[style*="padding"] > .wp-block-column{
  background:#fff;border:1px solid var(--kb-line);border-radius:14px !important;overflow:hidden;
  box-shadow:0 12px 32px rgba(16,42,65,.08);padding:0 0 22px !important;
}
.home .entry-content .wp-block-columns.alignwide[style*="padding"] > .wp-block-column > *:not(figure){margin-left:24px;margin-right:24px;}
.peb-inline-image{margin:0 auto 16px;max-width:1024px;}
.peb-inline-image img{display:block;height:auto;max-width:100%;width:100%;border-radius:10px;}
.home .wp-block-columns.alignwide .peb-inline-image img{border-radius:0;aspect-ratio:4/3;object-fit:cover;}
.home .entry-content > figure.wp-block-image img{border-radius:14px;box-shadow:0 14px 36px rgba(16,42,65,.14);}

/* กล่องสรุปท้ายหน้า */
.peb-reader-intro,.peb-reader-section{box-sizing:border-box;margin:56px auto !important;max-width:min(1180px,calc(100vw - 32px));width:auto;}
.peb-reader-intro{background:var(--kb-sky);border:1px solid var(--kb-line);border-radius:14px;padding:28px 30px;}
/* ลิงก์ในกล่องพื้นฟ้าอ่อน: น้ำเงินเข้มขึ้นให้คอนทราสต์ผ่าน 4.5 */
.peb-reader-intro a{color:#115d98;}
/* หัวข้อที่ถูกปรับระดับแท็ก (ดู mu-plugins/thaieuropeb-seo.php) คงขนาดตัวอักษรเท่าระดับเดิม */
.entry-content .kb-h4{--theme-font-size:25px;--theme-line-height:1.5;--theme-font-weight:700;font-size:25px;line-height:1.5;}
.entry-content .kb-h3{--theme-font-size:30px;--theme-line-height:1.5;font-size:30px;line-height:1.5;}
.peb-reader-section{background:linear-gradient(135deg,var(--kb-navy),var(--kb-blue-dark));border-radius:18px;padding:44px 40px;color:#e6eef7;}
.peb-reader-section h2{color:#fff;font-size:clamp(22px,2.2vw,30px);line-height:1.4;margin:0 0 14px;text-align:left;}
.peb-reader-section > p{color:#d5e2f0;}
.peb-reader-section a{color:#9fd0f7;}
.peb-reader-grid{align-items:stretch;gap:20px !important;margin-top:24px;margin-bottom:8px;}
.peb-reader-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:22px;}
.peb-reader-card h3{color:#fff;font-size:19px;line-height:1.4;margin:0 0 8px;padding-left:14px;border-left:4px solid #9fd0f7;}
.peb-reader-card p{color:#d5e2f0;font-size:16px;line-height:1.75;margin:0;}
.peb-reader-list{background:var(--kb-sky);border:1px solid var(--kb-line);border-radius:12px;line-height:1.9;margin:18px 0 24px;padding:20px 24px 20px 44px;}

/* ---------- หน้าใน / บทความ ---------- */
.hero-section[data-type="type-1"] .page-title,.entry-header .page-title{color:var(--kb-blue-dark);}
.entry-card{border-radius:14px;overflow:hidden;box-shadow:0 12px 32px rgba(16,42,65,.08);}
.entry-card .entry-title a{color:var(--kb-navy);}
.entry-card .entry-title a:hover{color:var(--kb-blue);}

/* ---------- ส่วนท้าย ---------- */
#footer,#footer [data-row]{background:var(--kb-navy) !important;color:#c9d6e3;}
#footer a{color:#fff;}
#footer a:hover{color:#9fd0f7;}
#footer .ct-footer-copyright{font-size:14px;}

/* ---------- มือถือ ---------- */
@media (max-width:781px){
  body{font-size:16px;}
  .peb-service-cards,.peb-card-grid{display:block;margin-bottom:0 !important;}
  .peb-service-card,.peb-info-card{margin:0 0 20px;}
  .peb-contact-items{display:block;}
  .peb-contact-item{margin:0 auto 14px;}
  .peb-contact-item:last-child{margin-bottom:0;}
  .peb-reader-section{padding:28px 20px;}
  .home .entry-content > h2,.home .entry-content > h3{margin-top:48px;}
  .admin-bar #header{top:0;}
}

/* โลโก้: ใช้รูปอย่างเดียว (ในรูปมีชื่อ K BUILDING อยู่แล้ว) */
#header .site-branding .site-title-container{display:none;}
#header .site-logo-container img{max-height:90px !important;height:90px;}

/* ---------- โซเชียลในแถบบน ---------- */
.kb-topbar__phones{display:inline-flex;gap:18px;align-items:center;}
.kb-topbar__social{display:inline-flex;gap:10px;align-items:center;}
.kb-topbar__social a{width:22px;height:22px;border-radius:50%;background:#fff;color:var(--kb-blue);justify-content:center;transition:transform .18s ease,background .18s ease;}
.kb-topbar__social a:hover{background:var(--kb-navy);color:#fff;transform:translateY(-1px);}
.kb-topbar__social svg{width:14px;height:14px;}
@media (max-width:689px){
  .kb-topbar{font-size:13px;}
  .kb-topbar__inner{justify-content:space-between;gap:8px;padding:7px 14px;flex-wrap:nowrap;}
  .kb-topbar__phones{gap:10px;white-space:nowrap;}
  .kb-topbar__phones svg{width:13px;height:13px;}
}
@media (max-width:400px){.kb-topbar__phones a + a svg{display:none;}.kb-topbar__phones a + a::before{content:"|";opacity:.5;margin-right:8px;}}

/* ---------- ปุ่มแฮมเบอร์เกอร์ ---------- */
#header .ct-header-trigger{
  width:46px;height:46px;border-radius:10px;background:var(--kb-blue);color:#fff !important;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 6px 14px rgba(22,115,186,.3);transition:background .18s ease,transform .18s ease;
  --theme-icon-color:#fff;--theme-icon-hover-color:#fff;
}
#header .ct-header-trigger:hover,#header .ct-header-trigger:active{background:var(--kb-blue-dark);transform:scale(.96);}
#header .ct-header-trigger svg{fill:#fff !important;width:22px;height:22px;}
#header .ct-header-trigger svg rect:nth-child(2){width:12px;x:6px;}

/* ---------- แผงเมนูมือถือ ---------- */
#offcanvas .ct-panel-inner{background:linear-gradient(160deg,var(--kb-navy),var(--kb-blue-dark)) !important;width:min(86vw,360px);box-shadow:-20px 0 50px rgba(0,0,0,.3);}
#offcanvas .ct-panel-actions{padding:18px 20px 6px;}
#offcanvas .ct-toggle-close{width:40px;height:40px;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;--theme-icon-color:#fff;display:inline-flex;align-items:center;justify-content:center;opacity:1;}
#offcanvas .ct-toggle-close:hover{background:rgba(255,255,255,.28);}
#offcanvas .ct-toggle-close svg{fill:#fff;}
#offcanvas .ct-panel-content{padding:8px 20px 28px;}
#offcanvas .mobile-menu ul{list-style:none;margin:0;padding:0;}
#offcanvas .mobile-menu > ul > li{border-bottom:1px solid rgba(255,255,255,.12);}
#offcanvas .mobile-menu .ct-menu-link{
  color:#fff !important;font-size:17px;font-weight:400;padding:14px 12px !important;display:flex;align-items:center;
  border-radius:10px;transition:background .18s ease,padding-left .18s ease;
}
#offcanvas .mobile-menu .ct-menu-link:hover{background:rgba(255,255,255,.1);padding-left:18px !important;}
#offcanvas .mobile-menu li.current-menu-item > .ct-menu-link,
#offcanvas .mobile-menu li.current_page_item > .ct-menu-link{background:var(--kb-orange);color:#fff !important;font-weight:500;}
#offcanvas .mobile-menu > ul > li.current-menu-item{border-bottom-color:transparent;}
#header .ct-header-trigger.ct-toggle{background:var(--kb-blue) !important;border-radius:10px !important;}
#header .ct-header-trigger.ct-toggle:hover{background:var(--kb-blue-dark) !important;}

/* เมนูมือถือ: หน้าปัจจุบันเป็นแถบขาว ตัวหนังสือน้ำเงิน */
#offcanvas .mobile-menu li.current-menu-item > .ct-menu-link,
#offcanvas .mobile-menu li.current_page_item > .ct-menu-link{background:#fff !important;color:var(--kb-blue-dark) !important;}

/* ---------- แผงเมนูมือถือ แบบเรียบ พื้นขาว (แทนที่แบบไล่สีเดิม) ---------- */
#offcanvas .ct-panel-inner{background:#fff !important;width:min(88vw,340px);box-shadow:-12px 0 40px rgba(11,33,74,.18);}
#offcanvas .ct-panel-actions{padding:14px 16px 0;position:absolute;top:0;right:0;z-index:2;}
#offcanvas .ct-toggle-close{width:40px;height:40px;border-radius:0;background:none !important;color:var(--kb-navy);--theme-icon-color:var(--kb-navy);opacity:.7;}
#offcanvas .ct-toggle-close:hover{background:none !important;opacity:1;}
#offcanvas .ct-toggle-close svg{fill:var(--kb-navy);width:14px;height:14px;}
#offcanvas .ct-panel-content{padding:0;}
#offcanvas .ct-panel-content[data-device="mobile"] .ct-panel-content-inner{display:flex;flex-direction:column;min-height:100%;padding:0;}
.kb-drawer__brand{display:flex;align-items:center;gap:12px;padding:20px 60px 20px 24px;border-bottom:1px solid #e6ebf2;text-decoration:none;}
.kb-drawer__logo{width:48px !important;height:48px !important;object-fit:contain;flex:none;}
.kb-drawer__brand strong{display:block;color:var(--kb-navy);font-size:17px;font-weight:600;line-height:1.2;letter-spacing:.02em;}
.kb-drawer__brand em{display:block;color:#7a8799;font-size:12.5px;font-style:normal;font-weight:300;line-height:1.5;}
#offcanvas .mobile-menu{padding:10px 0;width:100%;}
#offcanvas .mobile-menu > ul > li{border-bottom:0;}
#offcanvas .mobile-menu .ct-menu-link{
  color:var(--kb-navy) !important;font-size:16.5px;font-weight:400;padding:13px 24px !important;border-radius:0;
  border-left:3px solid transparent;justify-content:space-between;background:none !important;
}
#offcanvas .mobile-menu .ct-menu-link::after{content:"";width:7px;height:7px;border-right:1.5px solid #b4bfcd;border-top:1.5px solid #b4bfcd;transform:rotate(45deg);flex:none;}
#offcanvas .mobile-menu .ct-menu-link:hover{background:#f5f8fc !important;padding-left:24px !important;color:var(--kb-blue) !important;}
#offcanvas .mobile-menu li.current-menu-item > .ct-menu-link,
#offcanvas .mobile-menu li.current_page_item > .ct-menu-link{
  background:#f2f7fc !important;color:var(--kb-blue) !important;font-weight:500;border-left-color:var(--kb-blue);
}
#offcanvas .mobile-menu li.current-menu-item > .ct-menu-link::after{border-color:var(--kb-blue);}
.kb-drawer__contact{margin-top:auto;padding:20px 24px 28px;border-top:1px solid #e6ebf2;background:#f7f9fc;}
.kb-drawer__label{margin:0 0 8px;color:#7a8799;font-size:12.5px;font-weight:400;letter-spacing:.04em;}
.kb-drawer__phone{display:block;color:var(--kb-navy);font-size:21px;font-weight:500;line-height:1.5;text-decoration:none;letter-spacing:.01em;}
.kb-drawer__phone:hover{color:var(--kb-blue);}
.kb-drawer__line{display:block;margin-top:14px;padding:11px 16px;text-align:center;background:var(--kb-blue);color:#fff !important;font-size:15px;font-weight:500;border-radius:6px;text-decoration:none;}
.kb-drawer__line:hover{background:var(--kb-blue-dark);}
#offcanvas .ct-panel-inner{display:flex;flex-direction:column;--panel-padding:0px;}
#offcanvas .ct-panel-content[data-device="mobile"]{flex:1 1 auto;display:flex;flex-direction:column;--panel-padding:0px;overflow-y:auto;}
#offcanvas .ct-panel-content[data-device="mobile"] .ct-panel-content-inner{flex:1 1 auto;align-items:stretch;width:100%;max-width:none;}
#offcanvas .ct-panel-content[data-device="mobile"] .ct-panel-content-inner > *{width:100%;max-width:none;margin:0;box-sizing:border-box;}
#offcanvas .kb-drawer__contact{margin-top:auto;}
#offcanvas .ct-panel-inner{height:100%;}
#offcanvas .ct-panel-content[data-device="mobile"]{min-height:0;height:100%;}
#offcanvas .ct-panel-content[data-device="mobile"] .ct-panel-content-inner{display:flex;flex-direction:column;min-height:100%;height:auto;}
#offcanvas .ct-panel-content[data-device="mobile"] .mobile-menu{flex:1 0 auto;}

/* ---------- KG Responsive Slider: ขยายเต็มความกว้างหน้าจอ ---------- */
.entry-content > .kgrs{
  width:100vw !important;max-width:100vw !important;
  margin-left:calc(50% - 50vw) !important;margin-right:calc(50% - 50vw) !important;
}
.home .entry-content > .kgrs:first-child{margin-top:0 !important;}
html,body{overflow-x:clip;}
/* จำกัดความสูงสไลด์ให้เห็น section ถัดไปโดยไม่ต้องเลื่อนมาก (แก้เลข 230px / 600px ได้) */
@media (min-width:577px){
  .entry-content > .kgrs .kgrs-item img{
    max-height:clamp(280px,calc(100vh - 170px),680px);
    object-fit:cover;object-position:center;
  }
}

/* สีขีดเหนือหัวข้อบนสไลด์ */
.kgrs{--kgrs-accent:#3fa2f0;}

/* ---------- เมนูหลัก: ขีดเส้นใต้แทนแคปซูล ---------- */
#header .menu > li > .ct-menu-link{
  position:relative;border-radius:0;background:none !important;padding:10px 2px !important;margin:0 14px;
}
#header .menu > li > .ct-menu-link::after{
  content:"";position:absolute;left:0;right:0;bottom:2px;height:2px;background:var(--kb-blue);
  transform:scaleX(0);transform-origin:left;transition:transform .22s ease;
}
#header .menu > li > .ct-menu-link:hover{background:none !important;color:var(--kb-blue) !important;}
#header .menu > li > .ct-menu-link:hover::after,
#header .menu > li.current-menu-item > .ct-menu-link::after,
#header .menu > li.current_page_item > .ct-menu-link::after,
#header .menu > li.current-menu-ancestor > .ct-menu-link::after{transform:scaleX(1);}
#header .menu > li.current-menu-item > .ct-menu-link,
#header .menu > li.current_page_item > .ct-menu-link,
#header .menu > li.current-menu-ancestor > .ct-menu-link{background:none !important;color:var(--kb-blue) !important;}
#header .menu > li > .ct-menu-link::after{opacity:1 !important;visibility:visible !important;width:auto !important;height:2px !important;top:auto !important;z-index:1;}
/* เมนูมี 8 รายการ: บนจอกว้าง 1000-1279px ลดระยะห่างระหว่างรายการ ไม่ให้รายการสุดท้ายล้นขอบจอ */
@media (min-width:1000px) and (max-width:1279.98px){
  #header .menu > li > .ct-menu-link{margin:0 6px;}
}

/* สโลแกนแถบบน: หนาเฉพาะชื่อ K BUILDING */
.kb-topbar__tag{font-weight:400;opacity:1;}
.kb-topbar__tag strong{font-weight:600;}

/* ส่วนที่ต่อจากสไลด์: ไม่เว้นช่องว่างซ้อนกับระยะในของ section */
.entry-content > .kgrs{margin-bottom:0 !important;}
.entry-content > .kgrs + *{margin-top:0 !important;margin-block-start:0 !important;}

/* ---------- เฮดเดอร์มือถือ: ย่อให้เล็กลง ---------- */
@media (max-width:689px){
  #header [data-row*="middle"]{--height:64px;}
  #header .site-logo-container{height:52px !important;--logo-max-height:52px;}
  #header .site-logo-container img{max-height:52px !important;height:52px;}
  #header .ct-header-trigger{width:40px;height:40px;border-radius:9px !important;box-shadow:0 4px 10px rgba(22,115,186,.25);}
  #header .ct-header-trigger svg{width:19px;height:19px;}
}

/* =====================================================
   หน้าแรก: เนื้อหาแบ่งเป็นส่วน (kbh-*) — แนวเหลี่ยมคม หัวข้อหนา
   บล็อกสีกรมท่าคู่สีน้ำเงิน
   ===================================================== */
.kbh{--kbh-dark:#071a3d;--kbh-text:#5d6675;padding:clamp(52px,6vw,90px) 20px;margin-top:0 !important;margin-bottom:0 !important;background:#fff;color:var(--kbh-text);}
.kbh > *{max-width:1180px !important;margin-left:auto !important;margin-right:auto !important;}
.kbh p{line-height:1.85;}
.kbh figure{margin:0;}
.kbh img{display:block;width:100%;border-radius:0 !important;}
.kbh .wp-block-columns{margin-bottom:0;}

.kbh .kbh-eyebrow{margin:0 0 6px !important;font-size:15px;font-weight:600;letter-spacing:.14em;line-height:1.4;color:var(--kb-blue);}
.kbh .kbh-h{margin:0 0 24px !important;font-size:clamp(27px,3.3vw,44px);font-weight:700;line-height:1.3;color:var(--kbh-dark);text-wrap:balance;}
.kbh .kbh-lead{max-width:860px !important;margin-bottom:clamp(30px,3.6vw,50px) !important;}

.kbh .kbh-split{gap:clamp(24px,4vw,64px);margin-bottom:clamp(32px,4vw,56px) !important;align-items:flex-end;}
.kbh .kbh-split__head{flex-basis:42% !important;flex-grow:0 !important;}
.kbh .kbh-split__head .kbh-h{margin-bottom:0 !important;}
.kbh .kbh-split__body p:last-child{margin-bottom:0;}

/* ปุ่มติดต่อ: เหลี่ยม */
.kbh-btns{gap:12px !important;}
.kbh-btns .wp-block-button__link{display:inline-flex;align-items:center;gap:9px;padding:13px 24px;border-radius:0 !important;font-size:16.5px;font-weight:600;line-height:1.2;text-decoration:none;transition:background .2s ease,color .2s ease;}
.kbh-btns .kbh-btn-line .wp-block-button__link{background:#00843a !important;color:#fff !important;}
.kbh-btns .kbh-btn-line .wp-block-button__link:hover{background:#05a948 !important;}
.kbh-btns .kbh-btn-tel .wp-block-button__link{background:var(--kb-blue) !important;color:#fff !important;}
.kbh-btns .kbh-btn-tel .wp-block-button__link:hover{background:var(--kbh-dark) !important;}
.kbh-btns .kbh-btn-tel .wp-block-button__link::before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat;}

/* 1) แถบติดต่อ: กรมท่า */
.kbh.kbh-cta{padding-top:30px;padding-bottom:30px;background:var(--kbh-dark);}
.kbh-cta .kbh-cta__in{align-items:center;gap:16px 28px;}
.kbh-cta .kbh-cta__title{margin:0;color:#fff;font-size:clamp(20px,2vw,26px);font-weight:600;line-height:1.4;}
.kbh-cta .kbh-btn-tel .wp-block-button__link:hover{background:#fff !important;color:var(--kbh-dark) !important;}

/* 2) แนะนำบริษัท: รูปซ้าย ข้อความขวา */
.kbh-intro .kbh-intro__cols{gap:clamp(28px,4.5vw,64px);align-items:stretch;}
.kbh-intro .kbh-intro__head{flex-basis:40% !important;flex-grow:0 !important;}
.kbh-intro .kbh-intro__head figure,.kbh-intro .kbh-intro__head img{height:100%;}
.kbh-intro .kbh-intro__head img{object-fit:cover;min-height:340px;}
.kbh-intro .kbh-h1{font-size:clamp(26px,2.9vw,40px);line-height:1.4;}
.kbh-intro .kbh-first{color:var(--kbh-dark);font-weight:500;}
.kbh-intro .kbh-intro__body p:last-child{margin-bottom:0;}

/* 3) สินค้าและบริการ: รูป + แถบชื่อกรมท่า + เลขในช่องน้ำเงิน */
.kbh.kbh-services{background:#f3f6ff;}
.kbh-services .kbh-cards{gap:28px;counter-reset:kbs;}
.kbh-services .kbh-card{counter-increment:kbs;background:#fff;display:flex;flex-direction:column;}
.kbh-services .kbh-card > *{margin-top:0 !important;margin-bottom:0 !important;}
.kbh-services .kbh-card img{aspect-ratio:1/1;object-fit:cover;}
.kbh-services .kbh-card__title{display:flex;align-items:stretch;min-height:76px;background:var(--kbh-dark);color:#fff;font-size:18px;font-weight:600;line-height:1.45;}
.kbh-services .kbh-card__title::before{content:"0" counter(kbs);order:2;flex:0 0 64px;display:flex;align-items:center;justify-content:center;margin-left:auto;background:var(--kb-blue);font-size:22px;font-weight:300;}
.kbh-services .kbh-card__title{padding:0 0 0 22px;gap:14px;align-items:center;}
.kbh-services .kbh-card__title::before{align-self:stretch;}
.kbh-services .kbh-card__copy{padding:24px 24px 28px;font-size:15.5px;line-height:1.8;}

/* 4) การใช้งาน: รูปสลับข้าง มีบล็อกสีน้ำเงินซ้อนหลังรูป */
.kbh-uses .kbh-row{align-items:center;gap:clamp(34px,5.5vw,80px);}
.kbh-uses .kbh-row + .kbh-row{margin-top:clamp(48px,6vw,84px) !important;}
.kbh-uses .kbh-row__img{flex-basis:40% !important;flex-grow:0 !important;position:relative;}
.kbh-uses .kbh-row__img::before{content:"";position:absolute;left:-16px;bottom:-16px;width:55%;height:55%;background:var(--kb-blue);}
.kbh-uses .kbh-row--rev .kbh-row__img::before{left:auto;right:-16px;background:var(--kbh-dark);}
.kbh-uses .kbh-row__img figure{position:relative;}
.kbh-uses .kbh-row__img img{aspect-ratio:1/1;object-fit:cover;}
.kbh-uses .kbh-row__title{margin:0 0 14px;font-size:clamp(22px,2.3vw,30px);font-weight:700;color:var(--kbh-dark);}
.kbh-uses .kbh-row__text p{margin-bottom:0;}
@media (min-width:782px){.kbh-uses .kbh-row--rev{flex-direction:row-reverse;}}

/* 5) ทำไมต้องเลือกเรา: ช่องสีกรมท่าสลับน้ำเงิน ชิดกันไม่มีช่องว่าง */
.kbh.kbh-why{background:#f3f6ff;}
.kbh-why .kbh-why-top{align-items:center;gap:clamp(24px,4.5vw,64px);margin-bottom:clamp(36px,4.5vw,60px) !important;}
.kbh-why .kbh-why-top__img{flex-basis:46% !important;flex-grow:0 !important;}
.kbh-why .kbh-why-top__img img{aspect-ratio:3/2;object-fit:cover;}
.kbh-why .kbh-why-top__text p{margin-bottom:0;}
.kbh-why .kbh-why-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:0;}
.kbh-why .kbh-why-grid > *{margin:0 !important;max-width:none !important;}
.kbh-why .kbh-why-item{grid-column:span 2;display:grid;grid-template-columns:78px 1fr;column-gap:18px;align-content:start;padding:34px 30px 36px;background:var(--kbh-dark);color:rgba(255,255,255,.8);}
.kbh-why .kbh-why-item:nth-child(even){background:var(--kb-blue);color:rgba(255,255,255,.92);}
.kbh-why .kbh-why-item:nth-child(n+4){grid-column:span 3;}
.kbh-why .kbh-why-item > *{margin-top:0 !important;margin-bottom:0 !important;grid-column:2;}
.kbh-why .kbh-why-item figure{grid-column:1;grid-row:1 / span 2;width:78px;align-self:center;}
.kbh-why .kbh-why-item img{aspect-ratio:1;object-fit:cover;}
.kbh-why .kbh-kicker{align-self:end;font-size:13px;font-weight:600;letter-spacing:.1em;color:#7fc1f5;}
.kbh-why .kbh-why-item:nth-child(even) .kbh-kicker{color:#fff;opacity:.8;}
.kbh-why .kbh-why-item__title{align-self:start;font-size:20px;font-weight:600;line-height:1.4;color:#fff;}
.kbh-why .kbh-why-item .kbh-why-item__copy{grid-column:1 / -1;margin-top:20px !important;font-size:15px;line-height:1.8;}
@media (max-width:781px){.kbh-why .kbh-why-grid{grid-template-columns:1fr;}.kbh-why .kbh-why-item,.kbh-why .kbh-why-item:nth-child(n+4){grid-column:auto;padding:28px 22px 30px;}}

/* 6) โครงการของเรา: รูป + แถบชื่อซ้อนขอบล่างรูป */
.kbh-projects .kbh-projs{gap:28px;}
.kbh-projects .kbh-proj > *{margin-top:0 !important;}
.kbh-projects .kbh-proj img{aspect-ratio:1/1;object-fit:cover;}
.kbh-projects .kbh-proj__title{position:relative;margin:-30px 22px 18px 0 !important;padding:16px 20px 16px 26px;background:var(--kbh-dark);color:#fff;font-size:18px;font-weight:600;line-height:1.45;}
.kbh-projects .kbh-proj__title::before{content:"";position:absolute;left:0;top:0;bottom:0;width:8px;background:var(--kb-blue);}
.kbh-projects .kbh-proj__copy{margin:0 !important;font-size:15.5px;line-height:1.8;}

/* 7) PEB คืออะไร: แถบสองสี ซ้ายกรมท่า ขวาน้ำเงิน */
.kbh.kbh-what{padding:0;background:linear-gradient(90deg,var(--kbh-dark) 0 50%,var(--kb-blue) 50% 100%);color:#fff;display:grid;grid-template-columns:minmax(0,440px) minmax(0,740px);justify-content:center;}
.kbh-what > *{max-width:none !important;margin:0 !important;text-align:left !important;}
.kbh-what .kbh-eyebrow{grid-column:1;grid-row:1;align-self:end;padding:56px 40px 0 20px;color:#7fc1f5;}
.kbh-what .kbh-h{grid-column:1;grid-row:2;align-self:start;padding:0 40px 56px 20px;color:#fff;font-size:clamp(25px,2.6vw,36px);}
.kbh-what .kbh-what__text{grid-column:2;grid-row:1 / span 2;align-self:center;padding:52px 20px 52px 48px;background:var(--kb-blue);font-size:clamp(16px,1.25vw,18px);line-height:1.9;}
@media (max-width:781px){.kbh.kbh-what{display:block;background:var(--kbh-dark);}.kbh-what .kbh-eyebrow{padding:44px 18px 0;}.kbh-what .kbh-h{padding:0 18px 30px;}.kbh-what .kbh-what__text{padding:30px 18px 40px;}}

/* 8) คุณลักษณะ: กล่องเส้นขอบ มีเลขกำกับ */
.kbh-feat .kbh-h{margin-bottom:clamp(30px,3.6vw,50px) !important;}
.kbh-feat .kbh-feats{gap:28px;counter-reset:kbf;}
.kbh-feat .kbh-feat-item{counter-increment:kbf;position:relative;padding:14px 14px 28px;border:1px solid #dfe5ef;}
.kbh-feat .kbh-feat-item > *{margin-top:0 !important;}
.kbh-feat .kbh-feat-item::before{content:"0" counter(kbf);position:absolute;z-index:1;left:14px;top:14px;width:54px;height:54px;display:flex;align-items:center;justify-content:center;background:var(--kb-blue);color:#fff;font-size:20px;font-weight:600;}
.kbh-feat .kbh-feat-item img{aspect-ratio:1/1;object-fit:cover;}
.kbh-feat .kbh-feat-item__title{margin:22px 10px 10px !important;font-size:19px;font-weight:700;line-height:1.45;color:var(--kbh-dark);}
.kbh-feat .kbh-feat-item__copy{margin:0 10px !important;font-size:15.5px;line-height:1.8;}

/* 9) ปิดท้าย */
.kbh.kbh-end{background:#f3f6ff;}
.kbh-end .kbh-tips{gap:0;margin-bottom:clamp(32px,3.8vw,50px) !important;}
.kbh-end .kbh-tip{padding:32px 28px 34px;background:#fff;border:1px solid #dfe5ef;}
.kbh-end .kbh-tip + .kbh-tip{border-left:0;}
.kbh-end .kbh-tip:nth-child(2){background:var(--kbh-dark);border-color:var(--kbh-dark);color:rgba(255,255,255,.82);}
.kbh-end .kbh-tip > *{margin-top:0 !important;}
.kbh-end .kbh-tip__title{margin:0 0 10px !important;font-size:19px;font-weight:700;color:var(--kbh-dark);}
.kbh-end .kbh-tip:nth-child(2) .kbh-tip__title{color:#fff;}
.kbh-end .kbh-tip p{margin:0;font-size:15.5px;line-height:1.8;}
.kbh-end .kbh-note{max-width:860px !important;margin-bottom:24px !important;color:var(--kbh-dark);}
.kbh-end .kbh-btns{justify-content:center;}

@media (max-width:781px){
  .kbh{padding-left:18px;padding-right:18px;}
  .kbh .kbh-lead,.kbh-end .kbh-note{text-align:left;}
  .kbh .kbh-split{align-items:stretch;}
  .kbh-cta .kbh-cta__in{flex-direction:column;align-items:stretch;}
  .kbh-cta .kbh-cta__title{text-align:center;}
  .kbh-btns{justify-content:center;}
  .kbh-intro .kbh-intro__head img{min-height:0;aspect-ratio:3/2;}
  .kbh-uses .kbh-row__img::before{left:-10px;bottom:-10px;}
  .kbh-uses .kbh-row--rev .kbh-row__img::before{right:-10px;}
  .kbh-end .kbh-tip + .kbh-tip{border-left:1px solid #dfe5ef;border-top:0;}
  .kbh-end .kbh-tip:nth-child(2){border-color:var(--kbh-dark);}
}

/* kbh-feat: ย้ายเลขกำกับมาอยู่หน้าหัวข้อ ไม่ทับข้อความในรูป */
.kbh-feat .kbh-feat-item::before{content:none;}
.kbh-feat .kbh-feat-item__title{display:flex;align-items:center;gap:14px;margin:20px 6px 12px !important;}
.kbh-feat .kbh-feat-item__title::before{content:"0" counter(kbf);flex:0 0 46px;height:46px;display:flex;align-items:center;justify-content:center;background:var(--kb-blue);color:#fff;font-size:18px;font-weight:600;}
.kbh-feat .kbh-feat-item__copy{margin:0 6px !important;}
/* kbh-what: รอยต่อสองสีตรงกับขอบคอลัมน์ */
@media (min-width:782px){.kbh.kbh-what{background:linear-gradient(90deg,var(--kbh-dark) 0 calc(50% - 150px),var(--kb-blue) calc(50% - 150px) 100%);}}
/* kbh-what: ไม่มีคำนำเหนือหัวข้อแล้ว จัดหัวข้อกึ่งกลางแนวตั้ง */
.kbh-what .kbh-h{grid-row:1 / span 2;align-self:center;padding-top:44px;padding-bottom:44px;}
@media (max-width:781px){.kbh-what .kbh-h{padding:40px 18px 26px;}}

/* หัวข้อกึ่งกลาง: บังคับให้ชนะสไตล์ของธีม/ตัวแก้ไข */
.kbh .has-text-align-center{text-align:center !important;}
@media (min-width:782px){.kbh.kbh-what .kbh-h.has-text-align-center{text-align:left !important;}}
/* หัวข้อกึ่งกลาง: กล่องหัวข้อต้องอยู่กลางด้วย (เดิม margin ซ้าย-ขวาเป็น 0 ทำให้เยื้องซ้าย) */
.kbh .kbh-h{margin-left:auto !important;margin-right:auto !important;}
.kbh.kbh-what .kbh-h{margin-left:0 !important;margin-right:0 !important;}

/* kbh-why: ใช้ไอคอนแทนรูป (จุดเด่น 01–05) */
.kbh-why .kbh-why-item{grid-template-columns:72px 1fr !important;column-gap:20px;}
.kbh-why .kbh-why-item::before{content:"";grid-column:1;grid-row:1 / span 2;align-self:center;width:72px;height:72px;background-color:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);}
.kbh-why .kbh-why-item::after{content:"";grid-column:1;grid-row:1 / span 2;align-self:center;justify-self:center;width:38px;height:38px;background:#fff;-webkit-mask:var(--kbh-ico) center/contain no-repeat;mask:var(--kbh-ico) center/contain no-repeat;}
.kbh-why .kbh-why-item > *{grid-column:2 !important;}
.kbh-why .kbh-why-item > .kbh-why-item__copy{grid-column:1 / -1 !important;}
.kbh-why .kbh-why-item:nth-child(1){--kbh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V180a4,4,0,0,1,4-4h36a8,8,0,0,0,8-8.53,8.18,8.18,0,0,0-8.25-7.47H148a4,4,0,0,1-4-4V140a4,4,0,0,1,4-4h36a8,8,0,0,0,8-8.53,8.18,8.18,0,0,0-8.25-7.47H148a4,4,0,0,1-4-4V100a4,4,0,0,1,4-4h36a8,8,0,0,0,8-8.53A8.18,8.18,0,0,0,183.73,80H148a4,4,0,0,1-4-4V48a16,16,0,0,1,16-16h48A16,16,0,0,1,224,48ZM109.66,58.34A8,8,0,0,1,112,64V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V64a8,8,0,0,1,2.34-5.66l32-32a8,8,0,0,1,11.32,0ZM48,80V184H64V80Zm32,0V184H96V80ZM51.31,64H92.69L72,43.31Z'/%3E%3C/svg%3E");}
.kbh-why .kbh-why-item:nth-child(2){--kbh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm-34.32,69.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");}
.kbh-why .kbh-why-item:nth-child(3){--kbh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z'/%3E%3C/svg%3E");}
.kbh-why .kbh-why-item:nth-child(4){--kbh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l40-40,15.08-15.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41Zm-41.87,41.86L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm-25.72,34.8a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z'/%3E%3C/svg%3E");}
.kbh-why .kbh-why-item:nth-child(5){--kbh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M184,89.57V84c0-25.08-37.83-44-88-44S8,58.92,8,84v40c0,20.89,26.25,37.49,64,42.46V172c0,25.08,37.83,44,88,44s88-18.92,88-44V132C248,111.3,222.58,94.68,184,89.57ZM56,146.87C36.41,141.4,24,132.39,24,124V109.93c8.16,5.78,19.09,10.44,32,13.57Zm80-23.37c12.91-3.13,23.84-7.79,32-13.57V124c0,8.39-12.41,17.4-32,22.87Zm-16,71.37C100.41,189.4,88,180.39,88,172v-4.17c2.63.1,5.29.17,8,.17,3.88,0,7.67-.13,11.39-.35A121.92,121.92,0,0,0,120,171.41Zm0-44.62A163,163,0,0,1,96,152a163,163,0,0,1-24-1.75V126.46A183.74,183.74,0,0,0,96,128a183.74,183.74,0,0,0,24-1.54Zm64,48a165.45,165.45,0,0,1-48,0V174.4a179.48,179.48,0,0,0,24,1.6,183.74,183.74,0,0,0,24-1.54ZM232,172c0,8.39-12.41,17.4-32,22.87V171.5c12.91-3.13,23.84-7.79,32-13.57Z'/%3E%3C/svg%3E");}
@media (max-width:480px){.kbh-why .kbh-why-item{grid-template-columns:60px 1fr !important;column-gap:16px;}.kbh-why .kbh-why-item::before{width:60px;height:60px;}.kbh-why .kbh-why-item::after{width:32px;height:32px;}}

/* 2) แนะนำบริษัท (v3): รูปมีกรอบน้ำเงินซ้อนหลัง + ป้ายตัวเลข, รายการจุดแข็ง, 3 หัวข้อย่อย */
.kbh-intro .kbh-intro__cols{gap:clamp(40px,6vw,90px);align-items:center;}
.kbh-intro .kbh-intro__head{position:relative;flex-basis:42% !important;padding:0 0 26px 26px;}
.kbh-intro .kbh-intro__head::before{content:"";position:absolute;left:0;bottom:0;width:72%;height:72%;background:var(--kb-blue);}
.kbh-intro .kbh-intro__head figure{position:relative;height:auto;}
.kbh-intro .kbh-intro__head img{height:auto;min-height:0;aspect-ratio:4/5;object-fit:cover;box-shadow:0 24px 50px rgba(7,26,61,.22);}
.kbh-intro .kbh-badge{position:absolute;right:-28px;bottom:64px;margin:0 !important;padding:22px 28px 20px;background:var(--kbh-dark);color:#fff;box-shadow:0 18px 40px rgba(7,26,61,.3);display:flex;flex-direction:column-reverse;}
.kbh-intro .kbh-badge > *{margin:0 !important;}
.kbh-intro .kbh-badge__num{font-size:clamp(34px,3.4vw,48px);font-weight:700;line-height:1.1;color:#fff;}
.kbh-intro .kbh-badge__num::after{content:"";display:block;width:44px;height:4px;margin-top:12px;background:var(--kb-blue);}
.kbh-intro .kbh-badge__label{font-size:14.5px;line-height:1.5;color:rgba(255,255,255,.8);margin-bottom:4px !important;}
.kbh-intro .kbh-h1{font-size:clamp(28px,3.2vw,44px);line-height:1.35;margin-bottom:22px !important;}
.kbh-intro .kbh-h1 strong{color:var(--kb-blue);font-weight:700;}
.kbh-intro .kbh-first{padding-left:18px;border-left:4px solid var(--kb-blue);font-size:clamp(16.5px,1.3vw,18px);font-weight:500;color:var(--kbh-dark);}
.kbh-intro .kbh-checks{list-style:none;margin:26px 0 0 !important;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:14px 28px;}
.kbh-intro .kbh-checks li{position:relative;margin:0;padding-left:38px;font-size:15.5px;font-weight:500;line-height:1.55;color:var(--kbh-dark);}
.kbh-intro .kbh-checks li::before{content:"";position:absolute;left:0;top:0;width:26px;height:26px;background:var(--kb-blue) 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='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/15px no-repeat;}
.kbh-intro .kbh-intro__more{gap:0;margin-top:clamp(48px,6vw,84px) !important;border-top:1px solid #dfe5ef;}
.kbh-intro .kbh-intro__point{position:relative;padding:34px 34px 0 0;}
.kbh-intro .kbh-intro__point + .kbh-intro__point{padding-left:34px;border-left:1px solid #dfe5ef;}
.kbh-intro .kbh-intro__point:last-child{padding-right:0;}
.kbh-intro .kbh-intro__point::before{content:"";position:absolute;left:0;top:-2px;width:64px;height:3px;background:var(--kb-blue);}
.kbh-intro .kbh-intro__point + .kbh-intro__point::before{left:34px;}
.kbh-intro .kbh-intro__sub{margin:0 0 12px !important;font-size:20px;font-weight:700;line-height:1.4;color:var(--kbh-dark);}
.kbh-intro .kbh-intro__point p{margin:0;font-size:15.5px;line-height:1.85;}
@media (max-width:781px){
  .kbh-intro .kbh-intro__head{padding:0 0 18px 18px;margin-bottom:10px;}
  .kbh-intro .kbh-intro__head img{aspect-ratio:4/3;}
  .kbh-intro .kbh-badge{right:0;bottom:40px;padding:16px 20px 14px;}
  .kbh-intro .kbh-checks{grid-template-columns:1fr;}
  .kbh-intro .kbh-intro__more{border-top:0;margin-top:36px !important;}
  .kbh-intro .kbh-intro__point,.kbh-intro .kbh-intro__point + .kbh-intro__point{padding:26px 0 0;border-left:0;border-top:1px solid #dfe5ef;margin-top:26px;}
  .kbh-intro .kbh-intro__point + .kbh-intro__point::before{left:0;}
}

/* 2) แนะนำบริษัท (v4): เรียบขึ้น — ไม่มีป้ายตัวเลข ไม่มีบล็อกสีหลังรูป รายการเป็นเส้นคั่นบาง */
.kbh-intro .kbh-intro__head{padding:0;}
.kbh-intro .kbh-intro__head::before{content:none;}
.kbh-intro .kbh-intro__head img{box-shadow:none;}
.kbh-intro .kbh-checks{gap:0 40px;margin-top:22px !important;border-top:1px solid #dfe5ef;}
.kbh-intro .kbh-checks li{padding:13px 0 13px 18px;border-bottom:1px solid #dfe5ef;font-size:15.5px;font-weight:400;color:#414b5a;}
.kbh-intro .kbh-checks li::before{left:0;top:23px;width:6px;height:6px;background:var(--kb-blue);}
@media (min-width:782px){.kbh-intro .kbh-checks li:nth-last-child(-n+2){border-bottom:0;}.kbh-intro .kbh-checks{border-bottom:1px solid #dfe5ef;}}
@media (max-width:781px){.kbh-intro .kbh-intro__head{padding:0;}}

/* 2) แนะนำบริษัท (v5): แบบเว็บตัวอย่าง — รูปสูงเท่าข้อความ หัวข้อ ย่อหน้า และปุ่มเดียว */
.kbh-intro .kbh-intro__cols{align-items:stretch;gap:clamp(36px,5vw,72px);}
.kbh-intro .kbh-intro__head{flex-basis:44% !important;}
.kbh-intro .kbh-intro__head figure{height:100%;}
.kbh-intro .kbh-intro__head img{height:100%;min-height:380px;aspect-ratio:auto;object-fit:cover;}
.kbh-intro .kbh-intro__body{align-self:center;padding:10px 0;}
.kbh-intro .kbh-h1{font-size:clamp(27px,2.9vw,40px);line-height:1.4;margin-bottom:20px !important;}
.kbh-intro .kbh-first{padding-left:0;border-left:0;font-size:inherit;font-weight:400;color:var(--kbh-dark);}
.kbh-intro .kbh-intro__btns{margin-top:28px !important;}
.kbh-intro .kbh-btn-main .wp-block-button__link{padding:15px 34px;border-radius:0 !important;background:var(--kb-blue) !important;color:#fff !important;font-size:16.5px;font-weight:600;transition:background .2s ease;}
.kbh-intro .kbh-btn-main .wp-block-button__link:hover{background:var(--kbh-dark) !important;}
@media (max-width:781px){.kbh-intro .kbh-intro__head img{min-height:0;height:auto;aspect-ratio:4/3;}.kbh-intro .kbh-intro__btns{justify-content:flex-start;}}
/* v5 แก้: รูปเติมเต็มความสูงของคอลัมน์ข้อความ โดยไม่ดันความสูงของแถว */
@media (min-width:782px){
  .kbh-intro .kbh-intro__head{position:relative;min-height:400px;}
  .kbh-intro .kbh-intro__head figure{position:absolute;inset:0;height:auto;}
  .kbh-intro .kbh-intro__head img{position:absolute;inset:0;width:100%;height:100% !important;min-height:0;object-fit:cover;}
}
@media (max-width:781px){
  .kbh-intro .kbh-intro__head figure{height:auto;}
  .kbh-intro .kbh-intro__head img{height:auto !important;min-height:0;aspect-ratio:4/3;object-fit:cover;}
}

/* 2) แนะนำบริษัท: 3 หัวข้อย่อยเป็นการ์ดมีไอคอน */
.kbh-intro .kbh-intro__more{gap:26px;border-top:0;margin-top:clamp(44px,5.5vw,76px) !important;align-items:stretch;}
.kbh-intro .kbh-intro__point,.kbh-intro .kbh-intro__point + .kbh-intro__point{position:relative;margin-top:0;padding:38px 32px 36px;border:0;background:#f3f6ff;transition:background .25s ease,transform .25s ease;}
.kbh-intro .kbh-intro__point::before,.kbh-intro .kbh-intro__point + .kbh-intro__point::before{content:"";position:static;display:block;width:68px;height:68px;margin-bottom:24px;background:var(--kb-blue);}
.kbh-intro .kbh-intro__point::after{content:"";position:absolute;left:47px;top:53px;width:38px;height:38px;background:#fff;-webkit-mask:var(--kbh-ico) center/contain no-repeat;mask:var(--kbh-ico) center/contain no-repeat;}
.kbh-intro .kbh-intro__point:hover{transform:translateY(-4px);}
.kbh-intro .kbh-intro__sub{position:relative;margin:0 0 14px !important;padding-bottom:14px;font-size:21px;}
.kbh-intro .kbh-intro__sub::after{content:"";position:absolute;left:0;bottom:0;width:36px;height:3px;background:var(--kb-blue);}
.kbh-intro .kbh-intro__point p{color:#5d6675;}
@media (max-width:781px){.kbh-intro .kbh-intro__more{gap:18px;margin-top:34px !important;}.kbh-intro .kbh-intro__point,.kbh-intro .kbh-intro__point + .kbh-intro__point{padding:30px 24px;border-top:0;margin-top:0;}.kbh-intro .kbh-intro__point::after{left:39px;top:45px;}}
.kbh-intro .kbh-intro__point:nth-child(1){--kbh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M152,152H104V40a16,16,0,0,1,16-16h16a16,16,0,0,1,16,16Zm72,16H32a16,16,0,0,0-16,16v8a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16v-8A16,16,0,0,0,224,168Zm0-20V136a96.44,96.44,0,0,0-50.11-84.31A4,4,0,0,0,168,55.22V152h52A4,4,0,0,0,224,148ZM36,152H88V55.22a4,4,0,0,0-5.89-3.53A96.44,96.44,0,0,0,32,136v12A4,4,0,0,0,36,152Z'/%3E%3C/svg%3E");}
.kbh-intro .kbh-intro__point:nth-child(2){--kbh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M232,208h-8V136c0-.05,0-.09,0-.14s0-.29,0-.43,0-.28,0-.41a.76.76,0,0,0,0-.15l-15-105.13A16.08,16.08,0,0,0,193.06,16H174.94A16.08,16.08,0,0,0,159.1,29.74l-11.56,80.91L108.8,81.6A8,8,0,0,0,96,88v32L44.8,81.6A8,8,0,0,0,32,88V208H24a8,8,0,0,0,0,16H232a8,8,0,0,0,0-16ZM108,184H80a8,8,0,0,1,0-16h28a8,8,0,0,1,0,16Zm68,0H148a8,8,0,0,1,0-16h28a8,8,0,0,1,0,16Zm-5.33-56-8.53-6.4L174.94,32h18.12l13.72,96Z'/%3E%3C/svg%3E");}
.kbh-intro .kbh-intro__point:nth-child(3){--kbh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z'/%3E%3C/svg%3E");}
/* การ์ด 3 หัวข้อย่อย: จัดกึ่งกลาง */
.kbh-intro .kbh-intro__point,.kbh-intro .kbh-intro__point + .kbh-intro__point{text-align:center;}
.kbh-intro .kbh-intro__point::before,.kbh-intro .kbh-intro__point + .kbh-intro__point::before{margin-left:auto;margin-right:auto;}
.kbh-intro .kbh-intro__point::after{left:50%;margin-left:-19px;}
.kbh-intro .kbh-intro__sub::after{left:50%;margin-left:-18px;}
@media (max-width:781px){.kbh-intro .kbh-intro__point::after{left:50%;}}

/* หัวส่วนแบบ split (การใช้งาน / โครงการ): เปลี่ยนเป็นหัวข้อกึ่งกลางด้านบน คำอธิบาย 2 คอลัมน์ด้านล่าง */
.kbh .kbh-split{display:block;margin-bottom:clamp(36px,4.5vw,64px) !important;}
.kbh .kbh-split__head{flex-basis:auto !important;}
.kbh .kbh-split__head .kbh-h{text-align:center;margin-bottom:26px !important;}
.kbh .kbh-split__body{max-width:1040px;margin:0 auto;column-count:2;column-gap:56px;}
.kbh .kbh-split__body p{margin:0 0 1em;}
.kbh .kbh-split__body p:last-child{margin-bottom:0;}
@media (max-width:781px){.kbh .kbh-split__body{column-count:1;}}
/* คำอธิบายใต้หัวส่วน: ไม่แบ่งคอลัมน์ เป็นย่อหน้าเดียวกึ่งกลาง */
.kbh .kbh-split__body{column-count:1;max-width:920px;text-align:center;}
@media (max-width:781px){.kbh .kbh-split__body{text-align:left;}}

/* หน้าแรก: ข้อความเนื้อหาเป็นสีดำ (#000) — ยกเว้นข้อความบนพื้นสีเข้มที่ต้องเป็นสีขาว */
.kbh{--kbh-text:#000;color:#000;}
.kbh p,.kbh li{color:#000;}
.kbh-intro .kbh-first,.kbh-intro .kbh-intro__point p,.kbh-services .kbh-card__copy,.kbh-projects .kbh-proj__copy,.kbh-feat .kbh-feat-item__copy,.kbh-end .kbh-note,.kbh-end .kbh-tip p,.kbh .kbh-lead,.kbh .kbh-split__body p{color:#000;}
.home .kgz .kgz-lead{color:#000;}
/* พื้นเข้ม: คงสีขาว */
.kbh-why .kbh-why-item p,.kbh-why .kbh-why-item .kbh-why-item__copy{color:#fff;}
.kbh-why .kbh-why-item .kbh-kicker{color:#7fc1f5;}
.kbh-why .kbh-why-item:nth-child(even) .kbh-kicker{color:#fff;opacity:1;}
.kbh.kbh-what p{color:#fff;}
.kbh-end .kbh-tip:nth-child(2) p{color:rgba(255,255,255,.9);}
.kbh.kbh-cta p{color:#fff;}

/* =====================================================
   Footer (kb-footer) — ซ่อน footer เดิมของธีม
   ===================================================== */
#footer.ct-footer,footer.ct-footer{display:none !important;}
.kb-footer{background:#071a3d;color:rgba(255,255,255,.78);font-size:15.5px;line-height:1.8;border-top:4px solid var(--kb-blue);}
.kb-footer a{color:rgba(255,255,255,.82);text-decoration:none;transition:color .18s ease;}
.kb-footer a:hover{color:#fff;}
.kb-footer__inner{max-width:1220px;margin:0 auto;padding:clamp(44px,5vw,68px) 20px clamp(36px,4vw,52px);display:grid;grid-template-columns:1.5fr .8fr 1fr 1.2fr;gap:clamp(28px,4vw,60px);}
.kb-footer p{margin:0;}
.kb-footer__logo-link{display:inline-flex;padding:8px;background:#fff;}
.kb-footer__logo{display:block;width:84px;height:84px;object-fit:contain;}
.kb-footer__name{margin:16px 0 8px !important;color:#fff;font-size:21px;font-weight:700;letter-spacing:.02em;}
.kb-footer__about{max-width:330px;}
.kb-footer__social{display:flex;gap:10px;margin-top:18px;}
.kb-footer__social a{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.1);transition:background .18s ease;}
.kb-footer__social a:hover{background:var(--kb-blue);}
.kb-footer__social svg{width:20px;height:20px;fill:#fff;}
.kb-footer__title{position:relative;margin-bottom:20px !important;padding-bottom:12px;color:#fff;font-size:18px;font-weight:600;}
.kb-footer__title::after{content:"";position:absolute;left:0;bottom:0;width:34px;height:3px;background:var(--kb-blue);}
.kb-footer__links,.kb-footer__info{list-style:none;margin:0;padding:0;}
.kb-footer__links li{margin:0 0 9px;}
.kb-footer__links a{position:relative;padding-left:16px;}
.kb-footer__links a::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;background:var(--kb-blue);}
.kb-footer__info li{display:flex;align-items:flex-start;gap:12px;margin:0 0 11px;}
.kb-footer__info svg{flex:0 0 18px;width:18px;height:18px;margin-top:5px;fill:#5fb0ee;}
.kb-footer__info a{color:#fff;font-weight:500;}
.kb-footer__btn{display:inline-block;margin-top:10px;padding:11px 22px;background:var(--kb-blue);color:#fff !important;font-weight:600;transition:background .18s ease;}
.kb-footer__btn:hover{background:#fff;color:#071a3d !important;}
.kb-footer__bottom{border-top:1px solid rgba(255,255,255,.12);font-size:14px;}
.kb-footer__inner--bottom{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;flex-wrap:wrap;padding-top:18px;padding-bottom:18px;}
@media (max-width:980px){.kb-footer__inner{grid-template-columns:1fr 1fr;}.kb-footer__brand{grid-column:1 / -1;}}
@media (max-width:560px){.kb-footer__inner{grid-template-columns:1fr;gap:30px;}.kb-footer__inner--bottom{display:flex;flex-direction:column;align-items:flex-start;}}
/* Footer: โลโก้คู่ชื่อแบรนด์ */
.kb-footer__lockup{display:inline-flex;align-items:center;gap:16px;margin-bottom:18px;}
.kb-footer__lockup .kb-footer__logo-link{flex:0 0 auto;padding:6px;}
.kb-footer__lockup .kb-footer__logo{width:64px;height:64px;}
.kb-footer .kb-footer__name{margin:0 !important;color:#fff;font-size:26px;font-weight:700;line-height:1.2;letter-spacing:.03em;white-space:nowrap;}
.kb-footer .kb-footer__name em{font-style:normal;color:#5fb0ee;}
.kb-footer__about{max-width:340px;padding-top:16px;border-top:1px solid rgba(255,255,255,.14);}

/* Footer: โทนน้ำเงินแบรนด์ */
/* ปุ่มสีทองหน้า K-Span: คืนสีตัวหนังสือเข้มตามแบบเดิมของปุ่ม (ถูกสีลิงก์ของธีมทับเป็นขาว คอนทราสต์ไม่ผ่าน) */
.entry-content a.ks-btn:not(.ks-btn-light),.entry-content a.ks-btn:not(.ks-btn-light):hover{color:#17130b !important;}
.kb-footer{background:var(--kb-blue);color:#fff;border-top:0;}
.kb-footer a{color:#fff;}
.kb-footer .kb-footer__name em{color:#fff;font-weight:300;}
.kb-footer__about{border-top-color:rgba(255,255,255,.28);}
.kb-footer__title::after{background:#fff;}
.kb-footer__links a::before{background:#fff;opacity:.75;}
.kb-footer__info svg{fill:#fff;}
.kb-footer__social a{background:rgba(255,255,255,.16);}
.kb-footer__social a:hover{background:#fff;}
.kb-footer__social a:hover svg{fill:var(--kb-blue);}
.kb-footer__btn{background:#fff;color:var(--kb-blue-dark) !important;}
.kb-footer__btn:hover{background:#071a3d;color:#fff !important;}
.entry-meta:empty{display:none !important;}
/* หน้าบทความเดี่ยว: ชื่อบทความต้องใหญ่กว่าหัวข้อย่อยในเนื้อหา */
body.single-post .hero-section .entry-header h1{font-size:clamp(30px,3.4vw,46px) !important;line-height:1.3 !important;margin-bottom:14px;}
@media (max-width:640px){
  body.single-post .entry-content h2{font-size:24px !important;line-height:1.4 !important;}
  body.single-post .entry-content h3{font-size:20px !important;line-height:1.45 !important;}
}
/* หน้าหลัก: บทความที่เกี่ยวข้อง (topic cluster) สร้างจาก mu-plugin ตาม custom field kb_pillar */
.kgr.kgb-section{padding-bottom:12px !important;}
.kgr .kgr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:clamp(28px,3vw,44px) !important;}
.kgr .kgr-grid--2{grid-template-columns:repeat(2,minmax(0,1fr));}
.kgb-section.kgb-section.kgb-section.kgr > .kgr-grid--2{max-width:880px !important;}
.kgr .kgr-grid--1{grid-template-columns:minmax(0,1fr);}
.kgb-section.kgb-section.kgb-section.kgr > .kgr-grid--1{max-width:560px !important;}
.kgr .kgr-card{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;padding:24px 24px 22px;border-radius:22px;background:#f3f6ff;border:1px solid #e1e8f6;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;}
.kgr .kgr-card:hover{transform:translateY(-4px);border-color:#c9d6f0;box-shadow:0 16px 34px rgba(7,26,61,.12);}
.kgr .kgr-card > p{margin:0 !important;}
.kgr .kgr-kicker{font-size:13px;font-weight:400;line-height:1.3;color:var(--kb-blue,#1667a8);}
.kgr .kgr-name{font-size:18px;font-weight:500;line-height:1.45;color:#0e1116;}
.kgr .kgr-nb{white-space:nowrap;}
@media (max-width:379px){ .kgr .kgr-nb{white-space:normal;} }
.kgr .kgr-name a{color:inherit;text-decoration:none;}
.kgr .kgr-name a::after{content:"";position:absolute;inset:0;border-radius:22px;}
.kgr .kgr-card:hover .kgr-name{color:var(--kb-blue,#1667a8);}
.kgr .kgr-desc{font-size:15px;font-weight:300;line-height:1.7;color:#5a6370;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.kgr .kgr-more{margin-top:auto !important;padding-top:4px;font-size:14px;font-weight:500;color:var(--kb-blue,#1667a8);}
@media (max-width:1024px){ .kgr .kgr-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:640px){ .kgr .kgr-grid,.kgr .kgr-grid--2{grid-template-columns:minmax(0,1fr);gap:12px;} .kgr .kgr-card{padding:20px 20px 18px;border-radius:18px;} .kgr .kgr-name{font-size:17px;} }
/* หน้าบทความ: บรรทัดข้อมูลอัปเดตล่าสุด ชิดซ้ายตรงกับชื่อบทความ */
body.single-post .entry-content > .kb-updated{text-align:left !important;margin:0 auto 22px !important;}
/* รูปหน้างานจริงในบทความ: 2 รูปเรียงคู่ */
.entry-content .kb-article-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:28px 0 32px;}
.entry-content .kb-article-photos figure{margin:0;}
.entry-content .kb-article-photos img{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;border-radius:6px;}
@media (max-width:480px){ .entry-content .kb-article-photos{grid-template-columns:1fr;gap:10px;} }
/* Footer: รายการลิงก์แบบแถวมีเส้นคั่น + ลูกศร, ช่องทางติดต่อมีไอคอนวงกลม */
.kb-footer .kb-footer__links li{margin:0;border-bottom:1px solid rgba(255,255,255,.2);}
.kb-footer .kb-footer__links li:last-child{border-bottom:0;}
.kb-footer .kb-footer__links a{display:flex;align-items:center;gap:11px;padding:10px 0 10px 2px;color:rgba(255,255,255,.94);font-size:16px;line-height:1.45;text-decoration:none;transition:color .15s ease,padding-left .15s ease;}
.kb-footer .kb-footer__links a::before{content:"";position:static;flex:none;width:7px;height:7px;background:none;border-top:2px solid #ffc531;border-right:2px solid #ffc531;opacity:1;transform:rotate(45deg);}
.kb-footer .kb-footer__links a:hover{padding-left:7px;color:#ffd257;}
.kb-footer .kb-footer__info li{align-items:center;gap:12px;margin:0 0 10px;}
.kb-footer .kb-footer__info svg{flex:0 0 38px;box-sizing:border-box;width:38px;height:38px;margin:0;padding:10px;border-radius:50%;background:rgba(255,255,255,.17);fill:#fff;}
.kb-footer .kb-footer__info a{font-size:18px;font-weight:700;line-height:1.3;text-decoration:none;transition:color .15s ease;}
.kb-footer .kb-footer__info a:hover{color:#ffd257;}
.kb-footer .kb-footer__btn{margin-top:8px;padding:11px 24px;border-radius:999px;}
.kb-footer__bottom{background:var(--kb-blue-dark);border-top:0;color:rgba(255,255,255,.88);}

/* ---------- แกลเลอรี 3D (kgz): ป้ายชื่อรูปเป็นแถบขาวโปร่งคาดล่างเต็มกว้าง ตัวหนังสือกรมท่าหนา ชิดขวา ---------- */
.home .kgz .kgz-item figcaption,
.home .kgz .kgz-item:nth-child(1) figcaption{
  left:0;right:0;bottom:0;width:100%;box-sizing:border-box;
  padding:12px 18px;
  background:rgba(255,255,255,.78);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  color:#071a3d;font-size:15px;font-weight:700;line-height:1.35;letter-spacing:.01em;
  text-align:right;text-shadow:none;
  transition:background .25s ease;
}
.home .kgz .kgz-item:nth-child(1) figcaption{padding:16px 24px;font-size:22px;}
.home .kgz .kgz-item:nth-child(4) figcaption,
.home .kgz .kgz-item:nth-child(5) figcaption{padding:14px 20px;font-size:18px;}
.home .kgz .kgz-item figcaption::before{display:none;}
.home .kgz .kgz-item:hover figcaption{background:rgba(255,255,255,.9);}
@media (max-width:900px){
  .home .kgz .kgz-item figcaption,
  .home .kgz .kgz-item:nth-child(n) figcaption{padding:9px 12px;font-size:13px;}
  .home .kgz .kgz-item:nth-child(1) figcaption{padding:12px 16px;font-size:17px;}
}

/* ---------- แกลเลอรี 3D (kgz): พื้นหลังไล่สีฟ้าอ่อนลงมาขาว (ไม่มีเส้น ไม่มีลายตาราง) ---------- */
.home .kgz.kgb-section{
  border-top:0 !important;
  background:linear-gradient(180deg,#eef2f8 0%,#f6f8fc 45%,#ffffff 100%) !important;
}
.home .kgz .kgz-title{color:var(--kb-navy);}
.home .kgz .kgz-item{box-shadow:0 10px 28px rgba(7,26,61,.14);}

/* แกลเลอรี 3D: ขยับหัวข้อขึ้นให้ใกล้การ์ด 4 ใบด้านบน (ลดช่องว่างบน-ล่างระหว่างสอง section) */
.home .kgy.kgb-section{padding-bottom:clamp(28px,3vw,40px) !important;}
.home .kgz.kgb-section{padding-top:clamp(22px,2.6vw,34px) !important;}
.home .kgz .kgz-title{margin-top:0 !important;}

/* การ์ด 4 ใบ (kgy): การ์ดคงแบบเดิม ปรับเฉพาะพื้นหลัง section ให้ไล่จากขาวลงมาฟ้าอ่อน ต่อเนื่องกับแกลเลอรี 3D ด้านล่าง */
.home .kgy.kgb-section{
  background:
    radial-gradient(760px 300px at 50% 0%,rgba(22,115,186,.10),transparent 72%),
    linear-gradient(180deg,#ffffff 0%,#f6f8fc 55%,#eef2f8 100%) !important;
}
/* ปิดช่องว่าง 25px ระหว่าง section การ์ดกับแกลเลอรี ให้สีพื้นต่อเนื่องกัน */
.home .kgy.kgb-section{margin-bottom:0 !important;}
.home .kgy.kgb-section + .kgz.kgb-section{margin-top:0 !important;}
/* ปิดช่องว่าง 25px ใต้แกลเลอรี 3D ไม่ให้มีแถบสีคั่นก่อน section ถัดไป */
.home .kgz.kgb-section{margin-bottom:0 !important;}
.home .kgz.kgb-section + *{margin-top:0 !important;}
/* หัวข้อ section การ์ด: ไม่มีเส้นขีดใต้ */
.home .kgy > .kgy-title::after,
.home .kgy > .wp-block-group__inner-container > .kgy-title::after{display:none !important;}
.home .kgy > .kgy-title,
.home .kgy > .wp-block-group__inner-container > .kgy-title{padding-bottom:0 !important;}

/* ---------- สไลเดอร์หน้าแรก: สูงเต็มจอของอุปกรณ์นั้น ๆ (ความสูงจอ ลบ แถบเบอร์โทร+เมนู) ---------- */
.home .entry-content > .kgrs{--kb-head:122px;}
@media (max-width:689px){.home .entry-content > .kgrs{--kb-head:101px;}}
.home .entry-content > .kgrs .kgrs-item img{
  width:100% !important;
  height:calc(100vh - var(--kb-head)) !important;
  height:calc(100svh - var(--kb-head)) !important;
  min-height:360px;max-height:none !important;
  object-fit:cover;object-position:center;
}

/* ---------- section การ์ด 4 ใบ (kgy): พื้นหลังสีขาว ---------- */
.home .kgy.kgb-section{
  background:#fff !important;
  padding-top:clamp(40px,4.6vw,64px) !important;padding-bottom:clamp(44px,5vw,72px) !important;
}
.home .kgz.kgb-section{padding-top:clamp(40px,4.6vw,64px) !important;}

/* ---------- section การ์ด 4 ใบ (kgy): พื้นขาวล้วน ไม่มีลายน้ำ ไม่มีแสงสี — การ์ดเรียงเสมอกัน + เลื่อนขึ้นตอนสกรอลล์ ---------- */
.home .kgy.kgb-section{
  background:#fff !important;
  padding-top:clamp(48px,5.4vw,84px) !important;padding-bottom:clamp(56px,6vw,96px) !important;
}
.home .kgy > .kgy-title,
.home .kgy > .wp-block-group__inner-container > .kgy-title{margin-bottom:clamp(30px,3.6vw,52px) !important;}
.home .kgy .kgy-card{box-shadow:0 18px 40px rgba(7,26,61,.18);}
.home .kgy .kgy-card:hover{transform:translateY(-10px);box-shadow:0 30px 60px rgba(7,26,61,.28);}
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .home .kgy .kgy-card{animation:kb-rise linear both;animation-timeline:view();animation-range:entry 0% entry 60%;}
    .home .kgy .kgy-card:nth-child(2){animation-range:entry 8% entry 70%;}
    .home .kgy .kgy-card:nth-child(3){animation-range:entry 16% entry 80%;}
    .home .kgy .kgy-card:nth-child(4){animation-range:entry 24% entry 90%;}
  }
}
@keyframes kb-rise{from{opacity:0;translate:0 60px;}to{opacity:1;translate:0 0;}}

/* section การ์ด 4 ใบ: ลดระยะบน + หัวข้อสองโทน (กรมท่า / น้ำเงิน) */
.home .kgy.kgb-section{padding-top:clamp(24px,2.8vw,40px) !important;}
.home .kgy > .kgy-title,
.home .kgy > .wp-block-group__inner-container > .kgy-title{
  font-size:clamp(30px,3.6vw,50px) !important;font-weight:700 !important;line-height:1.25;letter-spacing:-.005em;
  color:#071a3d !important;margin-bottom:clamp(24px,2.8vw,40px) !important;
}
.home .kgy .kgy-title strong{font-weight:700;color:var(--kb-blue);}
@media (max-width:600px){.home .kgy .kgy-title strong{display:block;}}

/* =========================================================
   KSP — เทมเพลต section สำหรับหน้าบริการ (ใช้คู่กับคลาส .kbh)
   hero / points / sizes / highlights / uses / scope / faq / contact
   ========================================================= */
/* หน้าที่ขึ้นต้นด้วย hero: ไม่เว้นช่องว่างใต้เมนู */
.ct-container-full:has(.entry-content > .ksp-hero:first-child),
.ct-container-full:has(.entry-content > .kgrs:first-child){padding-top:0 !important;}
/* สไลเดอร์บนสุดของทุกหน้า (รวมหน้าแรก) บนมือถือ: ข้อความและไอคอนจุดเด่นใหญ่ขึ้น */
@media (max-width:576px){
  /* พื้นหลังเข้มขึ้นและสม่ำเสมอ ให้ตัวหนังสือสีขาวอ่านง่ายบนรูปถ่าย */
  body .entry-content > .kgrs:first-child .kgrs-item.has-overlay::after{background:linear-gradient(180deg,rgba(6,18,38,.82) 0%,rgba(6,18,38,.72) 46%,rgba(6,18,38,.86) 100%) !important;}
  body .entry-content > .kgrs:first-child .kgrs-caption .kgrs-title{line-height:1.3 !important;text-wrap:balance;text-shadow:0 2px 14px rgba(0,0,0,.6) !important;}
  body .entry-content > .kgrs:first-child .kgrs-caption .kgrs-text{font-size:15.5px !important;line-height:1.65 !important;-webkit-line-clamp:5 !important;font-weight:500 !important;color:#fff !important;text-wrap:pretty;text-shadow:0 1px 8px rgba(0,0,0,.65) !important;}
  body .entry-content > .kgrs:first-child .kgrs-caption .kgrs-feature-label{text-shadow:0 1px 6px rgba(0,0,0,.65) !important;}
  body .entry-content > .kgrs:first-child .kgrs-caption .kgrs-features{border-top-color:rgba(255,255,255,.4) !important;}
  body .entry-content > .kgrs:first-child .kgrs-caption .kgrs-features{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:20px 14px !important;padding-top:20px !important;}
  body .entry-content > .kgrs:first-child .kgrs-caption .kgrs-features li{gap:8px !important;}
  body .entry-content > .kgrs:first-child .kgrs-caption .kgrs-feature-icon,
  body .entry-content > .kgrs:first-child .kgrs-caption .kgrs-feature-icon svg{width:40px !important;height:40px !important;}
  body .entry-content > .kgrs:first-child .kgrs-caption .kgrs-feature-label{font-size:15px !important;line-height:1.35 !important;font-weight:500 !important;}
}
/* สไลเดอร์ที่อยู่บนสุดของหน้าใดก็ตาม: สูงเต็มจอเหมือนหน้าแรก (ความสูงจอ ลบ แถบเบอร์โทร+เมนู) */
.entry-content > .kgrs:first-child{--kb-head:122px;margin-top:0 !important;}
@media (max-width:689px){.entry-content > .kgrs:first-child{--kb-head:101px;}}
.entry-content > .kgrs:first-child .kgrs-item img{
  width:100% !important;
  height:calc(100vh - var(--kb-head)) !important;
  height:calc(100svh - var(--kb-head)) !important;
  min-height:360px;max-height:none !important;
  object-fit:cover;object-position:center;
}
/* มือถือ: หน้าบริการ (ไม่รวมหน้าแรก) ไม่ต้องสูงเต็มจอ ให้สูงพอดีกับข้อความในสไลด์ */
@media (max-width:781px){
  body:not(.home) .entry-content > .kgrs:first-child .kgrs-item img{
    height:clamp(500px,120vw,560px) !important;min-height:0 !important;
  }
}
.kbh.ksp-hero{padding:0;background:#071a3d;color:#fff;}
.kbh.ksp-hero > *{width:100% !important;max-width:none !important;margin-left:0 !important;margin-right:0 !important;}
.ksp-hero .ksp-hero__cols{gap:0;align-items:stretch;margin:0;}
.ksp-hero .ksp-hero__text{padding:clamp(40px,5vw,84px) clamp(24px,4vw,64px) clamp(40px,5vw,84px) max(24px,calc((100vw - 1290px) / 2));display:flex;flex-direction:column;justify-content:center;}
.ksp-hero .ksp-hero__text > *{margin-top:0 !important;}
.ksp-hero .ksp-crumb{margin:0 0 14px !important;font-size:14px;letter-spacing:.04em;color:#9fd0f7;}
.ksp-hero .ksp-crumb a{color:#9fd0f7;text-decoration:none;}
.ksp-hero .ksp-crumb a:hover{color:#fff;}
.ksp-hero h1{margin:0 0 18px !important;color:#fff;font-size:clamp(30px,3.8vw,52px);font-weight:700;line-height:1.25;text-wrap:balance;}
.ksp-hero h1 strong{color:#ffc93c;font-weight:700;}
.ksp-hero .ksp-hero__lead{margin:0 0 26px !important;font-size:clamp(16px,1.3vw,18.5px);line-height:1.85;color:rgba(255,255,255,.88);}
.ksp-hero .kbh-btns{justify-content:flex-start;}
.ksp-hero .kbh-btns .kbh-btn-tel .wp-block-button__link{background:#fff !important;color:#071a3d !important;}
.ksp-hero .kbh-btns .kbh-btn-tel .wp-block-button__link:hover{background:#ffc93c !important;color:#071a3d !important;}
.ksp-hero .ksp-hero__img{flex-basis:50% !important;flex-grow:0 !important;}
.ksp-hero .ksp-hero__img figure,.ksp-hero .ksp-hero__img img{height:100%;}
.ksp-hero .ksp-hero__img img{object-fit:cover;min-height:420px;}

.ksp-intro .ksp-intro__text{max-width:900px !important;font-size:clamp(16px,1.25vw,18px);}
.ksp-intro .ksp-points{list-style:none;margin-top:clamp(22px,2.6vw,34px) !important;padding:0 !important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;}
.ksp-intro .ksp-points li{position:relative;margin:0;padding:15px 18px 15px 54px;background:#f3f6ff;border-left:4px solid var(--kb-blue);color:#071a3d;font-weight:500;line-height:1.6;}
.ksp-intro .ksp-points li::before,.ksp-sizes .ksp-card li::before{content:"";position:absolute;background:var(--kb-blue);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;}
.ksp-intro .ksp-points li::before{left:17px;top:50%;width:24px;height:24px;transform:translateY(-50%);}

.ksp-intro .kbh-btns{justify-content:center;margin-top:28px !important;}

/* ส่วนแนะนำแบบรูป + ข้อความ (ใช้คู่กับ .kbh-uses .kbh-row ของหน้าแรก) */
.ksp-about .kbh-row__img{flex-basis:44% !important;}
.ksp-about .kbh-row{align-items:stretch !important;}
.ksp-about .kbh-row__img figure{height:100%;}
.ksp-about .kbh-row__img img{height:100%;min-height:320px;aspect-ratio:auto;object-fit:cover;}
.ksp-about .kbh-row__text{align-self:center;}
@media (max-width:781px){
  .ksp-about .kbh-row__img figure{height:auto;}
  .ksp-about .kbh-row__img img{height:auto;min-height:0;aspect-ratio:4/3;}
}
.ksp-about .kbh-row__text > *{margin-top:0 !important;}
.ksp-about .kbh-row__title{margin:0 0 16px !important;font-size:clamp(26px,2.7vw,38px);line-height:1.32;text-wrap:balance;}
.ksp-about .ksp-list{list-style:none;margin:24px 0 28px !important;padding:0 !important;counter-reset:ksl;border-top:1px solid #dfe5ef;}
.ksp-about .ksp-list li{counter-increment:ksl;display:flex;align-items:baseline;gap:18px;margin:0;padding:13px 0;border-bottom:1px solid #dfe5ef;color:#071a3d;font-weight:500;line-height:1.6;}
.ksp-about .ksp-list li::before{content:"0" counter(ksl);flex:none;font-size:13px;font-weight:600;letter-spacing:.1em;color:var(--kb-blue);}
.ksp-about .kbh-btns{justify-content:flex-start;}

.kbh.ksp-sizes{background:#f3f6ff;}
.ksp-sizes .ksp-cards{gap:24px;}
.ksp-sizes .ksp-card{background:#fff;display:flex;flex-direction:column;border-top:6px solid var(--kb-blue);box-shadow:0 10px 30px rgba(7,26,61,.08);transition:transform .2s ease,box-shadow .2s ease;}
.ksp-sizes .ksp-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(7,26,61,.14);}
.ksp-sizes .ksp-card:nth-child(2){border-top-color:#ffb400;}
.ksp-sizes .ksp-card:nth-child(3){border-top-color:#071a3d;}
.ksp-sizes .ksp-card > *{margin:0 !important;}
.ksp-sizes .ksp-card__tag{padding:22px 26px 0;font-size:13px;font-weight:600;letter-spacing:.14em;color:var(--kb-blue);}
.ksp-sizes .ksp-card__title{padding:4px 26px 0;font-size:clamp(24px,2.2vw,30px);font-weight:700;line-height:1.3;color:#071a3d;}
.ksp-sizes .ksp-card__sub{padding:6px 26px 18px;font-size:15.5px;line-height:1.7;color:#5d6675;border-bottom:1px solid #e3e9f4;}
.ksp-sizes .ksp-card ul{list-style:none;flex:1;padding:18px 26px 12px !important;}
.ksp-sizes .ksp-card li{position:relative;margin:0;padding:6px 0 6px 26px;font-size:15.5px;line-height:1.7;}
.ksp-sizes .ksp-card li::before{left:0;top:12px;width:16px;height:16px;}
.ksp-sizes .ksp-card__price{padding:16px 26px;background:#071a3d;color:#fff;font-size:17px;font-weight:600;text-align:center;}
.ksp-sizes .ksp-card:nth-child(2) .ksp-card__price{background:var(--kb-blue);}
.ksp-sizes .ksp-card__price,.ksp-sizes .ksp-card__price a{color:#fff !important;text-decoration:none;}
.ksp-sizes .ksp-card__price a{display:block;}
.ksp-sizes .ksp-card__price a:hover{text-decoration:underline;}
.ksp-sizes .ksp-sizes__note{max-width:860px !important;margin-top:26px !important;font-size:15px;text-align:center;}

.kbh.ksp-hl{padding-top:clamp(18px,2.2vw,32px);}
.kbh.ksp-sizes + .kbh.ksp-hl{border-top:1px solid #e3e9f4;padding-top:clamp(30px,3.2vw,46px);}
.ksp-hl .ksp-hl__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:38px 24px;}
.ksp-hl .ksp-hl__grid > *{margin:0 !important;max-width:none !important;text-align:center;}
.ksp-hl .ksp-hl__item > *{margin-top:0 !important;}
.ksp-hl .ksp-hl__item figure{width:min(150px,62%);margin:0 auto 18px !important;}
.ksp-hl .ksp-hl__item img{aspect-ratio:1/1;object-fit:cover;border-radius:50% !important;border:5px solid #fff;box-shadow:0 0 0 3px var(--kb-blue),0 12px 26px rgba(7,26,61,.16);}
.ksp-hl .ksp-hl__title{margin:0 0 6px !important;font-size:17.5px;font-weight:700;line-height:1.45;color:#071a3d;}
.ksp-hl .ksp-hl__copy{margin:0 !important;font-size:15px;line-height:1.7;}

.ksp-uses2 ul{list-style:none;padding:0 !important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.ksp-uses2 li{margin:0;padding:22px 22px 24px;background:#fff;border:1px solid #dfe5ef;border-bottom:4px solid var(--kb-blue);font-size:15.5px;line-height:1.75;}
.ksp-uses2 li strong{display:block;margin-bottom:6px;font-size:18px;color:#071a3d;}
.ksp-uses2 li a{color:var(--kb-blue);font-weight:600;}

/* ปุ่มขอใบเสนอราคา (สีเหลือง) และปุ่มใต้แผงแนะนำ */
.kbh-btns .ksp-btn-quote .wp-block-button__link{background:#ffb400 !important;color:#071a3d !important;}
.kbh-btns .ksp-btn-quote .wp-block-button__link:hover{background:#ffc531 !important;color:#071a3d !important;}
/* ปุ่มขอใบเสนอราคา: ทรงแคปซูลเข้าชุดกับรูปเบอร์โทร */
.kbh-btns .ksp-btn-quote .wp-block-button__link{display:inline-flex !important;align-items:center;gap:12px;min-height:0 !important;padding:6px 24px 6px 6px !important;border:0 !important;border-radius:999px !important;font-size:17px !important;font-weight:700 !important;line-height:1.2 !important;letter-spacing:0;box-shadow:0 3px 0 #cf8f00,0 10px 18px rgba(7,26,61,.18) !important;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;}
.kbh-btns .ksp-btn-quote .wp-block-button__link::before{content:"" !important;display:block !important;position:static !important;inset:auto !important;z-index:auto !important;filter:none !important;opacity:1 !important;transform:none !important;flex:none;width:42px;height:42px;border-radius:50%;background:#0b3a6e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center/21px no-repeat;box-shadow:inset 0 0 0 2px rgba(255,255,255,.28);}
.kbh-btns .ksp-btn-quote .wp-block-button__link::after{content:"";flex:none;width:8px;height:8px;margin-left:2px;border-top:2.5px solid currentColor;border-right:2.5px solid currentColor;transform:rotate(45deg);transition:transform .15s ease;}
.kbh-btns .ksp-btn-quote .wp-block-button__link:hover{transform:translateY(-1px);box-shadow:0 4px 0 #cf8f00,0 14px 22px rgba(7,26,61,.22) !important;}
.kbh-btns .ksp-btn-quote .wp-block-button__link:hover::after{transform:translateX(3px) rotate(45deg);}
.kbh-btns .ksp-btn-quote .wp-block-button__link:active{transform:translateY(2px);box-shadow:0 1px 0 #cf8f00,0 4px 8px rgba(7,26,61,.18) !important;}
.kbh-btns .ksp-btn-quote .wp-block-button__link{justify-content:space-between;text-align:center;background-image:linear-gradient(180deg,#ffd257 0%,#ffb400 52%,#f5a300 100%) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 3px 0 #c98a00,0 10px 18px rgba(7,26,61,.18) !important;}
/* แถบขอราคา: จัดกึ่งกลาง ปุ่มและรูปเบอร์อยู่แถวเดียวกัน */
.ksp-cta-top:not(.ksp-contact) .ksp-cta2{display:flex !important;flex-wrap:wrap !important;justify-content:center;align-items:center;gap:16px 20px;text-align:center;}
.ksp-cta-top:not(.ksp-contact) .ksp-cta2__text,.ksp-cta-top:not(.ksp-contact) .ksp-cta2__phones{display:contents !important;}
.ksp-cta-top:not(.ksp-contact) .ksp-cta2__title{flex:0 0 100%;margin:0 !important;text-align:center;font-size:clamp(23px,2.3vw,32px);}
.ksp-cta-top:not(.ksp-contact) .ksp-cta2__sub{flex:0 0 100%;margin:-10px 0 4px !important;text-align:center;font-size:clamp(15.5px,1.15vw,17.5px);}
.ksp-cta-top:not(.ksp-contact) .ksp-cta2 .kbh-btns{flex:0 0 auto;width:auto;margin:0 !important;justify-content:center;}
.ksp-cta-top:not(.ksp-contact) .ksp-cta2 .ksp-btn-quote .wp-block-button__link{min-width:248px;padding:7px 26px 7px 7px !important;font-size:19px !important;}
.ksp-cta-top:not(.ksp-contact) .ksp-cta2 .ksp-btn-quote .wp-block-button__link::before{width:46px;height:46px;background-size:23px;}
.ksp-cta-top:not(.ksp-contact) .ksp-cta2__phones figure{flex:0 0 auto !important;width:auto !important;margin:0 !important;}
.ksp-cta-top:not(.ksp-contact) .ksp-cta2__phones img{display:block;width:auto !important;height:84px !important;max-width:100%;}
@media (max-width:1100px){
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2 .kbh-btns{flex-basis:100%;}
}
.ksp-cta-top:not(.ksp-contact) .ksp-cta2__phones a{display:block;width:fit-content;margin:0 auto;}
/* ปุ่มขอใบเสนอราคาอยู่ใต้รูปเบอร์โทร */
.ksp-cta-top:not(.ksp-contact) .ksp-cta2 .kbh-btns{order:5;flex:0 0 100% !important;margin:2px 0 4px !important;}
@media (min-width:1101px){
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2 .kbh-btns{flex:0 0 auto !important;margin:0 0 6px !important;}
}
@media (max-width:780px){
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2{--cw:min(372px,calc(100vw - 44px));flex-direction:column;flex-wrap:nowrap !important;gap:10px;}
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2__title,.ksp-cta-top:not(.ksp-contact) .ksp-cta2__sub{flex:0 0 auto;width:100%;}
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2__sub{margin:-4px 0 6px !important;}
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2 .kbh-btns{flex:0 0 auto;width:100%;margin:0 0 4px !important;}
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2 .ksp-btn-quote{margin:0 auto !important;}
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2 .ksp-btn-quote .wp-block-button__link{box-sizing:border-box;width:calc(var(--cw) * .896);min-width:0;}
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2__phones figure{flex:0 0 auto !important;width:100% !important;}
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2__phones a{width:var(--cw);}
  .ksp-cta-top:not(.ksp-contact) .ksp-cta2__phones img{width:100% !important;height:auto !important;}
}
.ksp-show .kbh-btns{justify-content:center;margin-top:clamp(20px,2.4vw,30px) !important;}

/* แถบชวนขอราคาใต้แผงแนะนำ */
.kbh.ksp-contact.ksp-cta-top{padding-top:24px;padding-bottom:26px;background:#071a3d;}
.ksp-cta-top .ksp-cta-top__text{margin:0 auto 16px !important;font-size:clamp(16px,1.3vw,19px);line-height:1.6;}
.ksp-cta-top .ksp-cta-top__text strong{color:#ffc93c;font-weight:600;}

/* แถบขอราคาแบบใหม่: ข้อความ + ปุ่มด้านซ้าย รูปเบอร์โทร 2 รูปด้านขวา */
.kbh.ksp-cta-top:not(.ksp-contact){padding-top:clamp(22px,2.4vw,34px);padding-bottom:clamp(22px,2.4vw,34px);border-top:1px solid #dfe5ef;border-bottom:1px solid #dfe5ef;
  background:#f1f2f4 repeating-linear-gradient(125deg,rgba(255,255,255,.85) 0 54px,rgba(255,255,255,0) 54px 150px);}
.ksp-cta-top .ksp-cta2{align-items:center;gap:clamp(18px,3vw,48px);margin-bottom:0;}
.ksp-cta-top .ksp-cta2__text > *{margin-top:0 !important;}
.ksp-cta-top .ksp-cta2__title{margin:0 0 4px !important;font-size:clamp(21px,2vw,28px);font-weight:700;line-height:1.35;color:#071a3d;}
.ksp-cta-top .ksp-cta2__sub{margin:0 0 16px !important;color:#5d6675;line-height:1.7;}
.ksp-cta-top .ksp-cta2__text .kbh-btns{justify-content:flex-start;margin:0 !important;}
.ksp-cta-top .ksp-cta2__phones{flex-basis:56% !important;flex-grow:0 !important;display:flex;align-items:center;gap:14px;}
.ksp-cta-top .ksp-cta2__phones figure{flex:1;margin:0 !important;}
.ksp-cta-top .ksp-cta2__phones a{display:block;}
.ksp-cta-top .ksp-cta2__phones img{width:100%;height:auto;filter:drop-shadow(0 6px 10px rgba(7,26,61,.16));transition:transform .18s ease;}
.ksp-cta-top .ksp-cta2__phones a:hover img{transform:translateY(-2px);}
@media (max-width:781px){
  .ksp-cta-top .ksp-cta2__text{text-align:center;}
  .ksp-cta-top .ksp-cta2__text .kbh-btns{justify-content:center;}
  .ksp-cta-top .ksp-cta2__phones{flex-basis:100% !important;}
}
@media (max-width:520px){
  .ksp-cta-top .ksp-cta2__phones{flex-direction:column;gap:8px;}
  .ksp-cta-top .ksp-cta2__phones figure{width:min(100%,330px);}
}

/* ขั้นตอนสั่งผลิต 4 ขั้น */
.kbh.ksp-steps{background:#f3f6ff;padding-top:clamp(34px,3.8vw,58px);padding-bottom:clamp(34px,3.8vw,58px);}
.ksp-steps .ksp-steps__row{gap:22px;counter-reset:kst;margin-bottom:clamp(24px,3vw,36px) !important;}
.ksp-steps .ksp-step{counter-increment:kst;padding:26px 22px 24px;background:#fff;border-top:4px solid var(--kb-blue);}
.ksp-steps .ksp-step::before{content:"0" counter(kst);display:block;margin-bottom:10px;font-size:36px;font-weight:700;line-height:1;color:#bfd3ea;}
.ksp-steps .ksp-step > *{margin-top:0 !important;}
.ksp-steps .ksp-step h3{margin:0 0 8px !important;font-size:19px;line-height:1.45;color:#071a3d;}
.ksp-steps .ksp-step p{margin:0;font-size:15.5px;line-height:1.75;}
.ksp-steps .kbh-btns,.kbh-end .kbh-btns{justify-content:center;}
.kbh.ksp-steps + .kbh.kbh-end{background:#fff;}

/* ส่วนคำนิยาม "คืออะไร" ของหน้าบริการ: การ์ดขาวมีแถบสีด้านซ้าย */
.kbh.ksp-def{background:#fff;padding-top:clamp(30px,3.4vw,54px);padding-bottom:clamp(30px,3.4vw,54px);}
.kbh.ksp-def > *{max-width:960px !important;background:#f3f6ff;border-left:6px solid var(--kb-blue);border-right:1px solid #dfe5ef;text-align:left !important;}
.ksp-def .kbh-h{margin:0 auto !important;padding:clamp(24px,2.6vw,36px) clamp(20px,3vw,44px) 0;border-top:1px solid #dfe5ef;font-size:clamp(24px,2.5vw,34px);line-height:1.35;}
.ksp-def .kbh-h::before{content:none;}
.ksp-def .kbh-what__text{margin:0 auto !important;padding:14px clamp(20px,3vw,44px) clamp(24px,2.6vw,36px);border-bottom:1px solid #dfe5ef;font-size:clamp(16px,1.2vw,18px);line-height:1.9;color:#2b3a52;text-wrap:pretty;}
.ksp-def .kbh-what__text strong{color:#071a3d;}
.ksp-def .kbh-what__text a{color:var(--kb-blue);font-weight:600;text-decoration:underline;text-underline-offset:3px;}
.ksp-def .kbh-what__text:not(:last-child){border-bottom:0;padding-bottom:20px;}
.ksp-def h3{margin:0 auto !important;padding:0 clamp(20px,3vw,44px);font-size:clamp(19px,1.6vw,22px);line-height:1.45;color:#071a3d;}
.ksp-def h3 + .kbh-what__text{padding-top:8px;}
/* หน้าโกดังสำเร็จรูป: เหมาะกับธุรกิจ / ขั้นตอน 5 ขั้น / ตารางเปรียบเทียบ */
.kbh.ksp-fit{background:#f3f6ff;}
.ksp-fit li{color:#27303d;}
.ksp-fit ul{grid-template-columns:repeat(2,minmax(0,1fr));}
@media (min-width:1100px){.ksp-fit ul{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (min-width:782px) and (max-width:1099px){
  .ksp-steps5 .ksp-steps__row{flex-wrap:wrap !important;}
  .ksp-steps5 .ksp-steps__row .ksp-step{flex:1 1 calc(33.333% - 15px) !important;}
}
.ksp-steps5 .ksp-steps__row{margin-bottom:0 !important;}
.ksp-steps .ksp-step .ksp-step__title{margin:0 0 8px !important;font-size:19px;font-weight:700;line-height:1.45;color:#071a3d;}
.ksp-compare .ksp-compare__table{max-width:980px !important;margin:0 auto !important;overflow-x:auto;}
.ksp-compare table{width:100%;border-collapse:collapse;border:1px solid #dfe5ef;font-size:15.5px;line-height:1.7;color:#27303d;}
.ksp-compare th,.ksp-compare td{padding:14px 18px;border:1px solid #dfe5ef;text-align:left;vertical-align:top;}
.ksp-compare thead th{background:#071a3d;color:#fff;font-weight:600;border-color:#071a3d;}
.ksp-compare thead th:nth-child(2){background:var(--kb-blue);border-color:var(--kb-blue);}
.ksp-compare tbody td:first-child{width:24%;background:#f3f6ff;color:#071a3d;font-weight:600;}
.ksp-compare tbody td:nth-child(2){background:#f7fbff;color:#071a3d;}
@media (max-width:600px){.ksp-compare th,.ksp-compare td{padding:10px 9px;font-size:14px;line-height:1.6;}}
/* หน้าโกดังสำเร็จรูป: สเปกวัสดุ (การ์ด) และรายการข้อแนะนำ (ksp-pts) */
.kbh.ksp-spec{background:#f3f6ff;}
.ksp-spec li{color:#27303d;}
.kbh.ksp-pts--tint{background:#f3f6ff;}
.kbh.ksp-pts ul,.kbh.ksp-pts ol{list-style:none;max-width:900px !important;margin-left:auto !important;margin-right:auto !important;padding:0 !important;counter-reset:kpt;}
.ksp-pts li{position:relative;margin:0 0 12px;padding:16px 22px 17px 24px;background:#fff;border:1px solid #dfe5ef;border-left:5px solid var(--kb-blue);font-size:15.5px;line-height:1.75;color:#27303d;}
.ksp-pts li:last-child{margin-bottom:0;}
.ksp-pts li strong{display:block;margin-bottom:4px;font-size:17.5px;line-height:1.5;color:#071a3d;}
.ksp-pts ol li{padding-left:70px;counter-increment:kpt;}
.ksp-pts ol li::before{content:counter(kpt);position:absolute;left:20px;top:18px;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--kb-blue);color:#fff;font-size:16px;font-weight:700;line-height:1;}
.ksp-pts .ksp-pts__more{max-width:900px !important;margin-top:22px !important;margin-bottom:0 !important;color:#071a3d;}
.ksp-pts .ksp-pts__more a,.ksp-pts li a{color:var(--kb-blue);font-weight:600;text-decoration:underline;text-underline-offset:3px;}
@media (max-width:600px){.ksp-pts li{padding:14px 16px 15px 18px;}.ksp-pts ol li{padding-left:60px;}.ksp-pts ol li::before{left:14px;top:16px;}}

/* ส่วนบ้านน็อคดาวน์: รูปวาด + ข้อความ */
.kbh.kbh-knockdown{background:#fff;padding-top:clamp(30px,3.4vw,52px);padding-bottom:clamp(34px,3.8vw,58px);}
.kbh-knockdown .ksp-kd{gap:clamp(24px,4.5vw,68px);align-items:center;margin-bottom:0;}
.kbh-knockdown .ksp-kd__img{flex-basis:46% !important;flex-grow:0 !important;}
.kbh-knockdown .ksp-kd__img img{aspect-ratio:640/440;height:auto;box-shadow:14px 14px 0 var(--kb-blue);}
.kbh-knockdown .ksp-kd__body > *{margin-top:0 !important;}
.kbh-knockdown .ksp-kd__body .kbh-h{margin:0 0 14px !important;font-size:clamp(25px,2.7vw,38px);text-align:left;text-wrap:balance;}
.kbh-knockdown .ksp-kd__body p{margin-bottom:0;}
.kbh-knockdown .ksp-ticks{list-style:none;margin:18px 0 !important;padding:0 !important;}
.kbh-knockdown .ksp-ticks li{position:relative;margin:0;padding:7px 0 7px 34px;color:#071a3d;font-weight:500;line-height:1.6;}
.kbh-knockdown .ksp-ticks li::before{content:"";position:absolute;left:0;top:9px;width:22px;height:22px;border-radius:50%;background:var(--kb-blue);}
.kbh-knockdown .ksp-ticks li::after{content:"";position:absolute;left:5px;top:14px;width:12px;height:12px;background:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.400 1.400L9 19 21 7l-1.400-1.400z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.400 1.400L9 19 21 7l-1.400-1.400z'/%3E%3C/svg%3E") center/contain no-repeat;}
.kbh-knockdown .ksp-kd__note{margin-bottom:20px !important;font-size:15.5px;color:#5d6675;}
.kbh-knockdown .kbh-btns{justify-content:flex-start;}
@media (max-width:781px){
  .kbh-knockdown .ksp-kd__img{flex-basis:100% !important;padding-right:14px;}
  .kbh-knockdown .ksp-kd__img img{box-shadow:10px 10px 0 var(--kb-blue);}
  .kbh-knockdown .ksp-kd__body{margin-top:14px;}
}

.kbh.ksp-scope{background:#071a3d;color:rgba(255,255,255,.86);}
.ksp-scope .kbh-h{color:#fff;}
.ksp-scope .kbh-lead{color:rgba(255,255,255,.8);}
.ksp-scope .ksp-scope__cols{gap:clamp(24px,4vw,56px);}
.ksp-scope .ksp-scope__col > *{margin-top:0 !important;}
.ksp-scope h3{margin:0 0 14px !important;padding-bottom:10px;border-bottom:2px solid var(--kb-blue);color:#ffc93c;font-size:20px;font-weight:600;}
.ksp-scope ul{list-style:none;margin:0;padding:0 !important;}
.ksp-scope li{position:relative;margin:0;padding:7px 0 7px 24px;line-height:1.7;color:rgba(255,255,255,.9) !important;}
.ksp-scope li::before{content:"";position:absolute;left:0;top:16px;width:9px;height:9px;background:#7fc1f5;}
/* แถบเมนูลัดไปยังหัวข้อในหน้า */
.kbh.ksp-jump{padding-top:14px !important;padding-bottom:14px !important;background:#fff;border-top:1px solid #e3e8f0;}
.kbh.ksp-jump .ksp-jump__list{list-style:none !important;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 10px;margin:0 auto !important;padding:0 !important;}
.kbh.ksp-jump .ksp-jump__list li{margin:0 !important;padding:0 !important;}
.kbh.ksp-jump .ksp-jump__list li::before,.kbh.ksp-jump .ksp-jump__list li::marker{content:none !important;display:none !important;}
.kbh.ksp-jump .ksp-jump__list a{display:block;padding:8px 17px;border:1px solid #cdd7e6;border-radius:999px;background:#fff;color:#0b3a6e !important;font-size:15.5px;font-weight:600;line-height:1.35;text-decoration:none !important;transition:background .15s ease,color .15s ease,border-color .15s ease;}
.kbh.ksp-jump .ksp-jump__list a:hover{background:#0b3a6e;border-color:#0b3a6e;color:#fff !important;}
.kbh.ksp-jump .ksp-jump__list a[href^="http"]{background:#0b3a6e;border-color:#0b3a6e;color:#fff !important;}
.kbh.ksp-jump .ksp-jump__list a[href^="http"]:hover{background:#071a3d;border-color:#071a3d;}
.kbh h2[id]{scroll-margin-top:calc(var(--kb-head,84px) + 22px);}
@media (max-width:780px){
  /* มือถือ: แถวเดียว ปัดซ้ายขวาได้ */
  .kbh.ksp-jump{position:relative;padding:10px 0 !important;}
  .kbh.ksp-jump .ksp-jump__list{flex-wrap:nowrap;justify-content:flex-start;gap:8px;max-width:none !important;width:100%;box-sizing:border-box;margin:0 !important;padding:2px 34px 2px 16px !important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
  .kbh.ksp-jump .ksp-jump__list::-webkit-scrollbar{display:none;}
  .kbh.ksp-jump .ksp-jump__list li{flex:none;}
  .kbh.ksp-jump .ksp-jump__list a{padding:7px 14px;font-size:14.5px;white-space:nowrap;}
  .kbh.ksp-jump::after{content:"";position:absolute;top:0;right:0;bottom:0;width:44px;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 78%);pointer-events:none;}
}
/* ขอบเขตงาน v2: พื้นหลังลายตารางแบบแปลน + การ์ด 2 ใบ + รายการติ๊กถูก/ลำดับเลข */
.kbh.ksp-scope{background-color:#0a2147;background-image:radial-gradient(ellipse 70% 60% at 50% 0%,rgba(46,125,209,.30),rgba(46,125,209,0) 70%),linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);background-size:100% 100%,120px 120px,120px 120px,24px 24px,24px 24px;background-position:center top,center top,center top,center top,center top;}
.kbh.ksp-scope .kbh-h{margin-bottom:clamp(22px,2.4vw,34px) !important;}
.kbh.ksp-scope .ksp-scope__cols{gap:clamp(18px,2.2vw,30px);align-items:stretch;}
.kbh.ksp-scope .ksp-scope__col{padding:clamp(20px,2.2vw,30px) clamp(18px,2.2vw,32px) clamp(14px,1.6vw,22px);background:rgba(8,26,58,.78);border:1px solid rgba(255,255,255,.14);border-top:4px solid #ffb400;border-radius:4px;box-shadow:0 18px 34px rgba(0,0,0,.22);}
.kbh.ksp-scope .ksp-scope__col:last-child{border-top-color:#4aa8ee;}
.kbh.ksp-scope h3{display:flex;align-items:center;gap:12px;margin:0 0 6px !important;padding:0 0 14px;border-bottom:1px solid rgba(255,255,255,.16);color:#fff;font-size:clamp(19px,1.5vw,22px);font-weight:700;line-height:1.35;}
.kbh.ksp-scope h3::before{content:"";flex:none;width:40px;height:40px;border-radius:50%;background:#ffb400 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071a3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V8l7-5 7 5v13M9 21v-6h6v6'/%3E%3C/svg%3E") center/22px no-repeat;}
.kbh.ksp-scope .ksp-scope__col:last-child h3::before{background-color:#4aa8ee;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071a3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6v3H9zM9 5H6v16h12V5h-3M9 12h6M9 16h4'/%3E%3C/svg%3E");}
.kbh.ksp-scope ul{counter-reset:kspscope;}
.kbh.ksp-scope li{counter-increment:kspscope;padding:13px 0 13px 40px;border-bottom:1px dashed rgba(255,255,255,.14);font-size:clamp(15.5px,1.1vw,17px);line-height:1.6;color:#eef4fc !important;}
.kbh.ksp-scope li:last-child{border-bottom:0;}
.kbh.ksp-scope li::before{left:0;top:13px;width:25px;height:25px;border-radius:50%;background:rgba(255,180,0,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc531' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;box-shadow:inset 0 0 0 1.5px rgba(255,197,49,.75);}
.kbh.ksp-scope .ksp-scope__col:last-child li::before{content:counter(kspscope);display:flex;align-items:center;justify-content:center;background:rgba(74,168,238,.16);box-shadow:inset 0 0 0 1.5px rgba(122,193,245,.8);color:#a9d6fa;font-size:13.5px;font-weight:700;line-height:1;}
/* ขอบเขตงาน v3: พื้นหลังลายทแยงสีอ่อนแบบเดียวกับแถบขอราคา */
.kbh.ksp-scope{border-top:1px solid #dfe5ef;border-bottom:1px solid #dfe5ef;background:#f1f2f4 repeating-linear-gradient(125deg,rgba(255,255,255,.85) 0 54px,rgba(255,255,255,0) 54px 150px) !important;color:#2b3443 !important;}
.kbh.ksp-scope .kbh-h{color:#071a3d !important;}
.kbh.ksp-scope .kbh-lead{color:#4a5464 !important;}
.kbh.ksp-scope .ksp-scope__col{background:#fff;border:1px solid #dde3ec;border-top:4px solid #ffb400;box-shadow:0 10px 24px rgba(7,26,61,.08);}
.kbh.ksp-scope .ksp-scope__col:last-child{border-top-color:#1a74c4;}
.kbh.ksp-scope h3{border-bottom:1px solid #e3e8f0;color:#071a3d !important;}
.kbh.ksp-scope .ksp-scope__col:last-child h3::before{background-color:#1a74c4;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6v3H9zM9 5H6v16h12V5h-3M9 12h6M9 16h4'/%3E%3C/svg%3E");}
.kbh.ksp-scope li{border-bottom:1px dashed #d9dfe8;color:#27303d !important;}
.kbh.ksp-scope li::before{background-color:#fff4d6;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b97a00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");box-shadow:inset 0 0 0 1.5px #f0b429;}
.kbh.ksp-scope .ksp-scope__col:last-child li::before{background:#e8f2fc;box-shadow:inset 0 0 0 1.5px #1a74c4;color:#0f4f8a;}

.kbh-faq > h3{max-width:900px !important;margin:0 auto !important;padding:18px 22px;background:#f3f6ff;border-left:5px solid var(--kb-blue);font-size:18px;line-height:1.5;color:#071a3d;}
.kbh-faq > p{max-width:900px !important;margin:0 auto 14px !important;padding:16px 22px 20px;border:1px solid #e3e9f4;border-top:0;line-height:1.8;}

.kbh.ksp-contact{padding-top:40px;padding-bottom:40px;background:var(--kb-blue);color:#fff;}
.ksp-contact .kbh-h{margin-bottom:8px !important;color:#fff;font-size:clamp(24px,2.6vw,34px);}
.ksp-contact p{margin:0 auto 20px !important;text-align:center;color:rgba(255,255,255,.88);}
.ksp-contact .kbh-btns{justify-content:center;}
.ksp-contact .kbh-btns .kbh-btn-tel .wp-block-button__link{background:#fff !important;color:#071a3d !important;}

/* ---------- ksp-show: แผงแนะนำสินค้า (รูปใหญ่ + หัวข้อ + ป้ายวงกลม 2 อัน) ---------- */
.kbh.ksp-show{padding-top:clamp(22px,2.4vw,32px);padding-bottom:clamp(20px,2.6vw,36px);}
.ksp-show .ksp-show__lead{max-width:1000px !important;margin-top:0 !important;margin-bottom:clamp(22px,2.6vw,34px) !important;text-align:center;font-size:clamp(17px,1.4vw,20.5px);font-weight:400;line-height:1.8;color:#2b3a52;text-wrap:pretty;}
.ksp-show .ksp-show__lead strong{font-weight:600;color:#0b3f6b;}
.ksp-show .ksp-show__panel{gap:0;align-items:center;margin-bottom:0;overflow:hidden;
  background:#f1f2f4 repeating-linear-gradient(125deg,rgba(255,255,255,.85) 0 54px,rgba(255,255,255,0) 54px 150px);}
.ksp-show .ksp-show__img{flex-basis:50% !important;flex-grow:0 !important;align-self:stretch;}
.ksp-show .ksp-show__img figure,.ksp-show .ksp-show__img img{height:100%;}
.ksp-show .ksp-show__img img{object-fit:cover;min-height:400px;-webkit-mask-image:linear-gradient(90deg,#000 58%,transparent 100%);mask-image:linear-gradient(90deg,#000 58%,transparent 100%);}
.ksp-show .ksp-show__body{padding:clamp(22px,2.8vw,40px) clamp(18px,3vw,48px) clamp(26px,3vw,44px) clamp(8px,1.5vw,20px);}
.ksp-show .ksp-show__body > *{margin-top:0 !important;}
.ksp-show .ksp-show__title{margin:0 0 6px !important;font-size:clamp(21px,2.05vw,32px);text-wrap:balance;font-weight:500;line-height:1.5;color:#0b4a78;}
.ksp-show .ksp-badge{display:flex;align-items:center;margin-top:clamp(16px,1.8vw,24px) !important;}
.ksp-show .ksp-badge > *{margin:0 !important;}
.ksp-show .ksp-badge figure{position:relative;z-index:1;flex:0 0 clamp(108px,11vw,164px);}
.ksp-show .ksp-badge figure img{aspect-ratio:1/1;object-fit:cover;border-radius:50% !important;border:4px solid #fff;box-shadow:0 0 0 2px #0b214a,0 8px 20px rgba(7,26,61,.18);}
.ksp-show .ksp-badge__label{flex:1;margin-left:-30px !important;padding:14px 20px 14px 46px;background:#0b6299;color:#fff;}
.ksp-show .ksp-badge__label > *{margin:0 !important;}
.ksp-show .ksp-badge__head{font-size:clamp(18px,1.75vw,25px);font-weight:700;line-height:1.35;color:#ffe45c;}
.ksp-show .ksp-badge__sub{font-size:clamp(14px,1.05vw,16px);line-height:1.55;color:#fff;}

/* ---------- ksp-sizes แบบป้ายริบบิ้น + การ์ดหัวสี ---------- */
.kbh.ksp-sizes{background:#fff;padding-top:clamp(14px,2vw,26px);padding-bottom:clamp(26px,3vw,42px);}
.ksp-sizes .kbh-h{display:block;width:fit-content !important;max-width:92% !important;margin:0 auto 22px !important;padding:10px clamp(34px,5vw,70px);background:#0b3f6b;color:#fff;font-size:clamp(21px,2.3vw,32px);font-weight:500;line-height:1.4;
  clip-path:polygon(18px 0,100% 0,calc(100% - 18px) 100%,0 100%);filter:drop-shadow(0 6px 8px rgba(7,26,61,.25));}
.ksp-sizes .ksp-card{border:2px solid #a9b1bb;border-top:2px solid #a9b1bb !important;box-shadow:none;text-align:center;}
.ksp-sizes .ksp-card ul{text-align:left;}
.ksp-sizes .ksp-card__tag{padding:16px 16px 0;font-size:clamp(24px,2.3vw,31px);font-weight:600;letter-spacing:0;line-height:1.3;color:#0b3f6b;}
.ksp-sizes .ksp-card__title{padding:2px 16px 0;font-size:18px;font-weight:600;}
.ksp-sizes .ksp-card__sub{padding:4px 18px 16px;border-bottom:0;font-size:14.5px;color:#22324a;}
.ksp-sizes .ksp-card:nth-child(1) :is(.ksp-card__tag,.ksp-card__title,.ksp-card__sub){background:#3fd9f5;}
.ksp-sizes .ksp-card:nth-child(2) :is(.ksp-card__tag,.ksp-card__title,.ksp-card__sub){background:#ffe81a;}
.ksp-sizes .ksp-card:nth-child(3) :is(.ksp-card__tag,.ksp-card__title,.ksp-card__sub){background:#ffa51f;}
.ksp-sizes .ksp-card__price,.ksp-sizes .ksp-card:nth-child(2) .ksp-card__price{background:#0b3f6b;}
@media (max-width:781px){
  .ksp-show .ksp-show__img{flex-basis:100% !important;}
  .ksp-show .ksp-show__img img{min-height:0;aspect-ratio:16/9;-webkit-mask-image:linear-gradient(180deg,#000 70%,transparent 100%);mask-image:linear-gradient(180deg,#000 70%,transparent 100%);}
  .ksp-show .ksp-show__body{padding:6px 14px 26px;}
  .ksp-show .ksp-badge figure{flex-basis:96px;}
  .ksp-show .ksp-badge__label{margin-left:-24px !important;padding:12px 14px 12px 36px;}
}

@media (max-width:1000px){
  .ksp-uses2 ul{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ksp-hl .ksp-hl__grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:781px){
  .ksp-hero .ksp-hero__img{flex-basis:100% !important;order:-1;}
  .ksp-hero .ksp-hero__img img{min-height:0;aspect-ratio:16/9;}
  .ksp-hero .ksp-hero__text{padding:32px 20px 40px;}
  .ksp-hero .kbh-btns{justify-content:flex-start;}
  .ksp-intro .ksp-points{grid-template-columns:1fr;}
  .ksp-uses2 ul{grid-template-columns:1fr;}
  .ksp-hl .ksp-hl__grid{gap:28px 16px;}
  .ksp-hl .ksp-hl__title{font-size:16px;}
}

/* ===== หน้าโรงงานสำเร็จรูป: ส่วนบนของหน้า (kf-*) ใช้เฉพาะหน้าที่มีคลาสเหล่านี้ ไม่กระทบหน้าอื่น ===== */
.kf-intro .kf-intro__cols,.kf-band .kf-band__grid,.kf-diff .kf-cards,.kf-sizes .kf-size-grid{max-width:1200px !important;margin-left:auto !important;margin-right:auto !important;margin-bottom:0 !important;}
.kf-band .kf-band__grid,.kf-diff .kf-cards,.kf-sizes .kf-size-grid{display:grid !important;}
.kf-band .kf-band__grid > *,.kf-diff .kf-cards > *,.kf-sizes .kf-size-grid > *{margin:0 !important;min-width:0;}

/* 1) แนะนำ: ข้อความซ้าย รูปขวา */
.kbh.kf-intro{padding-top:clamp(40px,5vw,76px);padding-bottom:clamp(44px,5vw,80px);background:linear-gradient(180deg,#fff 0%,#f3f6ff 100%);}
.kf-intro .kf-intro__cols{gap:clamp(28px,4.5vw,72px) !important;align-items:center !important;}
.kf-intro .kf-intro__text > *{margin-top:0 !important;}
.kf-intro .kf-eyebrow{display:inline-block;margin:0 0 16px !important;padding:6px 14px;border-radius:999px;background:var(--kb-sky);color:var(--kb-blue);font-size:13px;font-weight:600;letter-spacing:.12em;}
.kf-intro .kf-intro__title{margin:0 0 18px !important;font-size:clamp(28px,3.2vw,44px);font-weight:700;line-height:1.25;color:#071a3d;text-align:left;text-wrap:balance;}
.kf-intro .kf-intro__title .kf-hl{color:var(--kb-blue);}
.kf-intro .kf-intro__lead{margin:0 0 24px !important;font-size:17px;line-height:1.85;color:#2b3442;}
.kf-intro .kf-checks{list-style:none !important;display:grid;gap:12px;margin:0 0 28px !important;padding:0 !important;}
.kf-intro .kf-checks li{position:relative;margin:0;padding:14px 18px 14px 58px;background:#fff;border:1px solid #dfe7f5;border-radius:12px;font-size:15.5px;line-height:1.6;color:#3d4852;}
.kf-intro .kf-checks li strong{display:block;font-size:16.5px;color:#071a3d;}
.kf-intro .kf-checks li::before{content:"";position:absolute;left:16px;top:16px;width:28px;height:28px;border-radius:50%;background:var(--kb-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;}
.kf-intro .kbh-btns{justify-content:flex-start !important;margin:0 0 14px !important;}
.kf-intro .kf-intro__call{margin:0 !important;font-size:15px;line-height:1.7;color:#5d6675;}
.kf-intro .kf-intro__call a{color:var(--kb-blue);font-weight:600;text-decoration:none;white-space:nowrap;}
.kf-intro .kf-intro__media{position:relative;z-index:0;}
.kf-intro .kf-intro__media::before{content:"";position:absolute;right:-16px;bottom:-16px;width:52%;height:52%;border-radius:20px;background:var(--kb-blue);z-index:-1;}
.kf-intro .kf-intro__media::after{content:"";position:absolute;left:-16px;top:-16px;width:96px;height:96px;background:radial-gradient(var(--kb-line) 2px,transparent 2.5px) 0 0/16px 16px;z-index:-1;}
.kf-intro .kf-intro__img{margin:0 !important;}
.kf-intro .kf-intro__img img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:20px;box-shadow:0 24px 50px rgba(7,26,61,.18);}

/* 2) แถบจุดเด่นสีน้ำเงิน + เมนูลัด */
.kbh.kf-band{padding-top:clamp(44px,5vw,72px);padding-bottom:clamp(36px,4vw,56px);background:linear-gradient(135deg,#0d4f86 0%,#1673ba 58%,#1f8ad8 100%);color:#fff;}
.kf-band .kf-band__title{margin:0 auto clamp(26px,3vw,38px) !important;font-size:clamp(24px,2.6vw,34px);font-weight:700;line-height:1.35;color:#fff;text-align:center;}
.kf-band .kf-band__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px !important;}
.kf-band .kf-band__item{padding:28px 20px 26px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.24);border-radius:16px;text-align:center;}
.kf-band .kf-band__item > *{margin:0 !important;}
.kf-band .kf-band__icon img{display:block;width:60px;height:60px;margin:0 auto 14px;}
.kf-band .kf-band__head{margin-bottom:6px !important;font-size:18px;font-weight:700;line-height:1.4;color:#fff;}
.kf-band .kf-band__sub{font-size:15px;line-height:1.65;color:rgba(255,255,255,.86);}
.kf-band .kf-jump{list-style:none !important;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:1200px !important;margin:clamp(28px,3vw,40px) auto 0 !important;padding:clamp(20px,2.4vw,28px) 0 0 !important;border-top:1px solid rgba(255,255,255,.24);}
.kf-band .kf-jump li{margin:0;}
.kf-band .kf-jump a{display:inline-block;padding:8px 18px;border-radius:999px;background:#fff;color:#0b214a !important;font-size:14.5px;font-weight:600;line-height:1.5;text-decoration:none;transition:background .2s ease;}
.kf-band .kf-jump a:hover{background:var(--kb-sky);}

/* 3) การ์ดรูปมีเลขลำดับ */
.kbh.kf-diff{background:#f3f6ff;}
.kf-diff .kf-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px !important;}
.kf-diff .kf-card{overflow:hidden;background:#fff;border:1px solid #e3e9f4;border-radius:16px;box-shadow:0 12px 34px rgba(7,26,61,.10);}
.kf-diff .kf-card > *{margin:0 !important;}
.kf-diff .kf-card figure img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;}
.kf-diff .kf-card__num{padding:22px 26px 0;font-size:34px;font-weight:700;line-height:1;color:var(--kb-blue);}
.kf-diff .kf-card__title{padding:10px 26px 0;font-size:20px;font-weight:700;line-height:1.4;color:#071a3d;}
.kf-diff .kf-card p:not(.kf-card__num){padding:8px 26px 28px;font-size:15.5px;line-height:1.75;color:#3d4852;}
.kf-diff .kf-note{max-width:860px !important;margin:28px auto 0 !important;font-size:15px;text-align:center;color:#000;}

/* 4) เลือกขนาด: หัวการ์ดสีน้ำเงิน + ภาพลายเส้นอาคาร */
.kbh.kf-sizes{background:#fff;}
.kf-sizes .kf-size-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px !important;}
.kf-sizes .kf-size{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e3e9f4;border-radius:16px;box-shadow:0 10px 30px rgba(7,26,61,.08);}
.kf-sizes .kf-size > *{margin:0 !important;}
.kf-sizes .kf-size__head{padding:18px 22px 16px;background:var(--kb-blue);text-align:center;}
.kf-sizes .kf-size:nth-child(3) .kf-size__head{background:#0b214a;}
.kf-sizes .kf-size__head > *{margin:0 !important;}
.kf-sizes .kf-size__tag{font-size:13px;font-weight:600;letter-spacing:.16em;color:#fff;}/* ขาวทึบ: เดิมขาวโปร่ง 82% บนฟ้า #1673ba ได้คอนทราสต์ 3.91 ไม่ผ่านเกณฑ์ 4.5 ของ PageSpeed ขาวทึบได้ประมาณ 5.0 */
.kf-sizes .kf-size__title{font-size:clamp(20px,1.9vw,24px);font-weight:700;line-height:1.35;color:#fff;}
.kf-sizes .kf-size__pic{padding:16px 22px 0;background:linear-gradient(180deg,#f3f7ff 0%,#fff 100%);}
.kf-sizes .kf-size__pic img{display:block;width:100%;height:auto;}
.kf-sizes .kf-size__sub{padding:6px 24px 16px;font-size:15.5px;line-height:1.7;text-align:center;color:#5d6675;border-bottom:1px solid #e3e9f4;}
.kf-sizes .kf-size ul{flex:1;list-style:none;padding:16px 24px 12px !important;}
.kf-sizes .kf-size li{position:relative;margin:0;padding:6px 0 6px 30px;font-size:15.5px;line-height:1.7;}
.kf-sizes .kf-size li::before{content:"";position:absolute;left:0;top:11px;width:19px;height:19px;border-radius:50%;background:var(--kb-sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231673ba' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;}
.kf-sizes .kf-size__cta{padding:4px 24px 24px;}
.kf-sizes .kf-size__cta a{display:block;padding:12px 16px;border:2px solid var(--kb-blue);border-radius:10px;color:var(--kb-blue) !important;font-weight:600;text-align:center;text-decoration:none;transition:background .2s ease,color .2s ease;}
.kf-sizes .kf-size__cta a:hover{background:var(--kb-blue);color:#fff !important;}
.kf-sizes .kf-sizes__note{max-width:860px !important;margin:26px auto 0 !important;font-size:15px;text-align:center;}

@media (max-width:999px){
  .kf-band .kf-band__grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .kf-diff .kf-cards,.kf-sizes .kf-size-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:781px){
  .kf-intro .kf-intro__title{text-align:center;}
  .kf-intro .kf-eyebrow{display:table;margin-left:auto !important;margin-right:auto !important;}
  .kf-intro .kf-intro__lead{font-size:16px;}
  .kf-intro .kbh-btns{justify-content:center !important;}
  .kf-intro .kf-intro__call{text-align:center;}
  .kf-intro .kf-intro__media{margin:8px 16px 0 0;}
  .kf-band .kf-band__grid{gap:12px !important;}
  .kf-band .kf-band__item{padding:20px 12px 18px;}
  .kf-band .kf-band__icon img{width:48px;height:48px;margin-bottom:10px;}
  .kf-band .kf-band__head{font-size:16px;}
  .kf-band .kf-band__sub{font-size:14px;}
  .kf-band .kf-jump a{padding:7px 14px;font-size:14px;}
  .kf-diff .kf-cards,.kf-sizes .kf-size-grid{grid-template-columns:1fr;gap:20px !important;}
}
/* แนะนำ: คอลัมน์ข้อความกว้างกว่ารูป หัวข้อจึงอยู่ 2 บรรทัดบนจอคอม */
.kf-intro .kf-intro__title{font-size:clamp(28px,3vw,42px);text-wrap:wrap;}
@media (min-width:782px){
  .kf-intro .kf-intro__cols > .kf-intro__text{flex:1.3 1 0 !important;}
  .kf-intro .kf-intro__cols > .kf-intro__media{flex:1 1 0 !important;}
}
/* แถบจุดเด่นบนมือถือ: เรียงเป็นแถว ไอคอนซ้าย ข้อความขวา ไม่ให้คำถูกตัดกลางคำ */
@media (max-width:600px){
  .kf-band .kf-band__grid{grid-template-columns:1fr;gap:10px !important;}
  .kf-band .kf-band__item{display:grid;grid-template-columns:46px 1fr;column-gap:14px;align-items:center;padding:14px 16px;text-align:left;}
  .kf-band .kf-band__icon{grid-row:1 / span 2;}
  .kf-band .kf-band__icon img{width:44px;height:44px;margin:0;}
  .kf-band .kf-band__head{margin-bottom:2px !important;font-size:16.5px;}
}
/* หน้า GMP: การ์ดวัสดุ (ใช้การ์ดหัวสีน้ำเงินแบบเดียวกับการ์ดขนาด แต่มีแค่ข้อความ) */
.kf-mats .kf-size__sub{flex:1;padding:22px 26px 26px;border-bottom:0;text-align:left;font-size:15.5px;line-height:1.8;color:#3d4852;}
/* หัวข้อส่วนแนะนำ: กลุ่มคำใน .kf-nb ไม่ถูกตัดกลาง จึงไม่เหลือคำเดียวในบรรทัดสุดท้ายบนมือถือ */
.kf-intro .kf-nb{white-space:nowrap;}

/* ===== kf-*: ลดลูกเล่นแบบเทมเพลต ให้ดูเป็นงานออกแบบของบริษัทจริง (พื้นเรียบ มุมเหลี่ยม ไม่มีเงาฟุ้ง ไม่มีกล่องซ้อนกล่อง) ===== */
/* แนะนำ */
.kbh.kf-intro{background:#fff;padding-top:clamp(40px,4.5vw,64px);padding-bottom:clamp(40px,4.5vw,64px);}
.kf-intro .kf-eyebrow{display:none !important;}
.kf-intro .kf-intro__title{margin-bottom:16px !important;padding-left:18px;border-left:5px solid var(--kb-blue);font-size:clamp(26px,2.7vw,38px);line-height:1.3;color:#0b214a;}
.kf-intro .kf-intro__title .kf-hl{color:inherit;}
.kf-intro .kf-intro__lead{font-size:16.5px;line-height:1.85;color:#333;}
.kf-intro .kf-checks{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin-bottom:26px !important;padding-top:4px !important;}
.kf-intro .kf-checks li{padding:16px 0 0;background:none;border:0;border-top:1px solid #d9dee6;border-radius:0;font-size:15px;color:#555;}
.kf-intro .kf-checks li strong{margin-bottom:2px;font-size:16px;color:#0b214a;}
.kf-intro .kf-checks li::before{content:none;}
.kf-intro .kf-intro__title{padding-left:0;border-left:0;}
/* เบอร์โทรเป็นรูปฝ่ายขายจริง 2 รูป ใต้ปุ่มขอใบเสนอราคา */
.kf-intro .kf-intro__phones{display:flex;flex-wrap:wrap;gap:10px 12px;margin:4px 0 0 !important;}
.kf-intro .kf-intro__phones figure{flex:0 1 250px;margin:0 !important;}
.kf-intro .kf-intro__phones a,.kf-intro .kf-intro__phones img{display:block;width:100%;height:auto;}
@media (max-width:781px){.kf-intro .kf-intro__phones{row-gap:0;}.kf-intro .kf-intro__phones figure{flex:1 1 100%;max-width:300px;}}
/* ส่วนแนะนำ: จัดหัวข้อ ข้อความ จุดเด่น และรูปเบอร์โทรไว้กึ่งกลางคอลัมน์ */
.kf-intro .kf-intro__text,.kf-intro .kf-intro__title,.kf-intro .kf-intro__lead,.kf-intro .kf-checks li{text-align:center !important;}
.kf-intro .kf-checks{margin-bottom:22px !important;}
.kf-intro .kf-intro__phones{justify-content:center;margin-top:0 !important;}
/* แถบจุดเด่นแบบพื้นหลังเป็นรูปงานจริง (หน้าโรงงานสำเร็จรูป): เงาดำจางให้ตัวหนังสือขาวอ่านได้ ไม่ใช้สีน้ำเงินทับ */
.kbh.kf-band.kf-band--photo{background:linear-gradient(rgba(8,12,18,.58),rgba(8,12,18,.58)),url("https://www.kbuildingthai.com/wp-content/uploads/2026/11/steel-frame-work-01.webp") center 40%/cover no-repeat;padding-top:clamp(52px,6vw,96px);padding-bottom:clamp(52px,6vw,96px);}
.kf-band--photo .kf-band__item{background:rgba(22,115,186,.86);border-color:rgba(255,255,255,.3);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);}
.kf-band--photo .kf-band__sub{color:rgba(255,255,255,.94);}
.kf-band--photo .kf-band__title,.kf-band--photo .kf-band__head{text-shadow:0 1px 10px rgba(0,0,0,.35);}
@media (max-width:781px){.kbh.kf-band.kf-band--photo{background:linear-gradient(rgba(8,12,18,.62),rgba(8,12,18,.62)),url("https://www.kbuildingthai.com/wp-content/uploads/2026/11/steel-frame-work-01-768x576.webp") center/cover no-repeat;}}
/* หน้าที่ขึ้นต้นด้วยส่วนแนะนำ (ไม่มีแบนเนอร์): ไม่เว้นแถบว่างใต้เมนู */
.ct-container-full:has(.entry-content > .kf-intro:first-child){padding-top:0 !important;}
.entry-content > .kf-intro:first-child{margin-top:0 !important;}
@media (max-width:781px){
  .entry-content > .kf-intro:first-child{padding-top:0 !important;}
  .entry-content > .kf-intro:first-child .kf-intro__media{order:-1;margin:0 calc(50% - 50vw) 6px !important;}
  .entry-content > .kf-intro:first-child .kf-intro__img img{border-radius:0;}
}
/* ส่วนหัวหน้าโรงงาน (763) และหน้า GMP (780): รูปจริงสว่างเต็มที่ ไม่มีชั้นสีทับ
   ข้อความอยู่ในกล่องขาว ตัวหนังสือสีเข้ม (จอคอม) และอยู่ใต้รูป (มือถือ) */
body .entry-content > #kgrs-763 .kgrs-item.has-overlay::after,
body .entry-content > #kgrs-780 .kgrs-item.has-overlay::after{background:none !important;}
body .entry-content > #kgrs-763 .kgrs-caption .kgrs-title,
body .entry-content > #kgrs-780 .kgrs-caption .kgrs-title{color:#0b214a !important;text-shadow:none !important;}
body .entry-content > #kgrs-763 .kgrs-caption .kgrs-text,
body .entry-content > #kgrs-780 .kgrs-caption .kgrs-text{color:#333 !important;text-shadow:none !important;font-weight:400 !important;}
body .entry-content > #kgrs-763 .kgrs-caption .kgrs-features,
body .entry-content > #kgrs-780 .kgrs-caption .kgrs-features{border-top-color:#dde3ec !important;}
body .entry-content > #kgrs-763 .kgrs-caption .kgrs-features li,
body .entry-content > #kgrs-780 .kgrs-caption .kgrs-features li{border-left-color:#dde3ec !important;}
body .entry-content > #kgrs-763 .kgrs-caption .kgrs-feature-icon svg,
body .entry-content > #kgrs-780 .kgrs-caption .kgrs-feature-icon svg{fill:#1673ba !important;filter:none !important;}
body .entry-content > #kgrs-763 .kgrs-caption .kgrs-feature-label,
body .entry-content > #kgrs-780 .kgrs-caption .kgrs-feature-label{color:#0b214a !important;text-shadow:none !important;font-weight:500 !important;}
@media (min-width:782px){
  body .entry-content > #kgrs-763 .kgrs-caption-inner,
  body .entry-content > #kgrs-780 .kgrs-caption-inner{max-width:620px;padding:clamp(26px,2.4vw,38px) clamp(26px,2.6vw,42px);background:rgba(255,255,255,.94);border-radius:4px;box-shadow:0 8px 24px rgba(0,0,0,.10);}
  /* จุดเด่น 4 ข้อในกล่อง: 2 x 2 ไอคอนอยู่ซ้ายข้อความ ไม่ให้คำถูกตัดกลาง */
  body .entry-content > #kgrs-763 .kgrs-caption .kgrs-features,
  body .entry-content > #kgrs-780 .kgrs-caption .kgrs-features{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;}
  body .entry-content > #kgrs-763 .kgrs-caption .kgrs-features li,
  body .entry-content > #kgrs-780 .kgrs-caption .kgrs-features li{flex-direction:row;justify-content:flex-start;gap:10px;padding:0 !important;border-left:0 !important;text-align:left;}
  body .entry-content > #kgrs-763 .kgrs-caption .kgrs-feature-icon svg,
  body .entry-content > #kgrs-780 .kgrs-caption .kgrs-feature-icon svg{width:28px;height:28px;}
  body .entry-content > #kgrs-763 .kgrs-caption .kgrs-feature-label,
  body .entry-content > #kgrs-780 .kgrs-caption .kgrs-feature-label{font-size:15px;}
}
@media (max-width:781px){
  body:not(.home) .entry-content > #kgrs-763 .kgrs-item img,
  body:not(.home) .entry-content > #kgrs-780 .kgrs-item img{height:clamp(220px,62vw,420px) !important;min-height:0 !important;}
  body .entry-content > #kgrs-763 .kgrs-caption,
  body .entry-content > #kgrs-780 .kgrs-caption{position:static !important;display:block !important;padding:26px 20px 30px !important;background:#fff;text-align:center;}
  body .entry-content > #kgrs-763 .kgrs-caption-inner,
  body .entry-content > #kgrs-780 .kgrs-caption-inner{max-width:100% !important;}
  body .entry-content > #kgrs-763 .kgrs-caption .kgrs-text,
  body .entry-content > #kgrs-780 .kgrs-caption .kgrs-text{display:block !important;-webkit-line-clamp:unset !important;overflow:visible !important;}
}
.kf-intro .kf-intro__media::before,.kf-intro .kf-intro__media::after{content:none;}
.kf-intro .kf-intro__img img{border-radius:4px;box-shadow:none;}
/* การ์ดรูป: ไม่มีกรอบการ์ด รูปมุมเหลี่ยม ข้อความอยู่ใต้รูปตรง ๆ */
.kbh.kf-diff{background:#f4f6f9;}
.kf-diff .kf-cards{gap:32px !important;}
.kf-diff .kf-card{overflow:visible;background:none;border:0;border-radius:0;box-shadow:none;}
.kf-diff .kf-card figure img{border-radius:4px;}
.kf-diff .kf-card__num{padding:18px 0 0;font-size:14px;font-weight:600;letter-spacing:.08em;color:var(--kb-blue);}
.kf-diff .kf-card__title{padding:4px 0 0;font-size:19px;}
.kf-diff .kf-card figure + .kf-card__title{padding-top:18px;}
.kf-diff .kf-card p:not(.kf-card__num){padding:6px 0 0;font-size:15px;color:#444;}
/* การ์ดขนาดและวัสดุ: มุมเหลี่ยม เส้นขอบบาง ไม่มีเงา */
.kf-sizes .kf-size{border:1px solid #d9dee6;border-radius:4px;box-shadow:none;}
.kf-sizes .kf-size__head{text-align:left;padding:16px 22px;}
.kf-sizes .kf-size__pic{background:#fff;}
.kf-sizes .kf-size__sub{text-align:left;}
.kf-sizes .kf-size li::before{width:14px;height:2px;top:17px;border-radius:0;background:var(--kb-blue);}
.kf-sizes .kf-size li{padding-left:24px;}
.kf-sizes .kf-size__cta a{border-width:1px;border-radius:4px;}
@media (max-width:781px){
  .kf-intro .kf-intro__title{text-align:left;}
  .kf-intro .kf-checks{grid-template-columns:1fr;gap:14px;}
  .kf-intro .kbh-btns{justify-content:flex-start !important;}
  .kf-intro .kf-intro__call{text-align:left;}
  .kf-intro .kf-intro__media{margin:4px 0 0;}
}
/* โครงหัวข้อ H2 > H3 > H4: หัวข้อย่อยในหัวข้อใหญ่ */
.kbh h3[id]{scroll-margin-top:calc(var(--kb-head,84px) + 22px);}
.kbh .kf-nb{white-space:nowrap;}
.kbh .kf-subhead{max-width:860px !important;margin:0 auto 12px !important;font-size:clamp(21px,2vw,27px);font-weight:700;line-height:1.4;color:#071a3d;text-align:center;}
.kbh .kf-subhead + .kbh-lead{margin-bottom:clamp(24px,2.8vw,38px) !important;}
.kbh .kf-subhead--next{max-width:1180px !important;margin-top:clamp(48px,5.4vw,80px) !important;padding-top:clamp(40px,4.4vw,64px);border-top:1px solid #dde3ec;}
.kf-types .kbh-tips{margin-bottom:0 !important;}
/* จุดเด่น 7 ข้อ: 4 + 3 จัดกลาง */
.kbh.kf-band--why .kf-band__grid{display:flex !important;flex-wrap:wrap !important;justify-content:center;gap:20px !important;}
.kbh.kf-band--why .kf-band__grid > .kf-band__item{flex:0 0 calc((100% - 60px) / 4) !important;max-width:calc((100% - 60px) / 4);}
.kf-band--why .kf-band__head{font-size:17.5px;}
@media (max-width:999px){.kbh.kf-band--why .kf-band__grid > .kf-band__item{flex-basis:calc((100% - 20px) / 2) !important;max-width:calc((100% - 20px) / 2);}}
@media (max-width:781px){.kbh.kf-band--why .kf-band__grid{gap:12px !important;}.kbh.kf-band--why .kf-band__grid > .kf-band__item{flex-basis:calc((100% - 12px) / 2) !important;max-width:calc((100% - 12px) / 2);}}
@media (max-width:600px){.kbh.kf-band--why .kf-band__grid{gap:10px !important;}.kbh.kf-band--why .kf-band__grid > .kf-band__item{flex-basis:100% !important;max-width:100%;}}
/* เหล็กเทียบคอนกรีต */
.kf-diff .kf-vs{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px !important;max-width:960px !important;margin:0 auto !important;}
.kf-diff .kf-subhead + .kf-vs{margin-top:26px !important;}
.kf-diff .kf-vs > *{margin:0 !important;min-width:0;}
.kf-diff .kf-vs__col{padding:24px 28px 26px;background:#fff;border:1px solid #d9dee6;border-radius:4px;}
.kf-diff .kf-vs__col > *{margin:0 !important;}
.kf-diff .kf-vs__label{margin-bottom:8px !important;font-size:18px;font-weight:700;line-height:1.4;color:#071a3d;}
.kf-diff .kf-vs__col:last-child .kf-vs__label{color:var(--kb-blue);}
.kf-diff .kf-vs p:not(.kf-vs__label){font-size:15.5px;line-height:1.8;color:#333;}
.kf-diff .kf-vs + .kf-note{margin-top:24px !important;}
/* เลือกแบบโรงงาน 5 ข้อ: รายการแบบแถว */
.kbh.kf-choose{background:#fff;}
.kf-choose .kf-choose__list{max-width:960px !important;border-top:1px solid #d9dee6;}
.kf-choose .kf-choose__list > *{margin:0 !important;}
.kf-choose .kf-choose__item{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);column-gap:clamp(24px,3.4vw,48px);align-items:baseline;padding:clamp(20px,2.2vw,28px) 4px;border-bottom:1px solid #d9dee6;}
.kf-choose .kf-choose__item > *{margin:0 !important;}
.kf-choose .kf-choose__title{font-size:clamp(18px,1.5vw,20px);font-weight:700;line-height:1.45;color:#071a3d;}
.kf-choose .kf-choose__item p{font-size:15.5px;line-height:1.8;color:#333;}
@media (max-width:781px){
  .kf-diff .kf-vs{grid-template-columns:1fr;gap:14px !important;}
  .kf-diff .kf-vs__col{padding:20px 20px 22px;}
  .kf-choose .kf-choose__item{grid-template-columns:1fr;row-gap:6px;padding:18px 0;}
}
/* ตาราง PEB เทียบโครงเหล็กแบบเดิม */
.kf-diff .kf-table{max-width:960px !important;margin:26px auto 0 !important;overflow-x:auto;}
.kf-diff .kf-table table{width:100%;border-collapse:collapse;background:#fff;font-size:15.5px;line-height:1.6;}
.kf-diff .kf-table thead{border-bottom:0;}
.kf-diff .kf-table th,.kf-diff .kf-table td{padding:13px 18px;border:1px solid #d9dee6;text-align:left;vertical-align:top;color:#333;}
.kf-diff .kf-table thead th{background:#071a3d;border-color:#071a3d;color:#fff;font-weight:600;}
.kf-diff .kf-table tbody td:first-child{width:27%;font-weight:600;color:#071a3d;}
.kf-diff .kf-table + .kf-note{margin-top:20px !important;}
/* วัสดุหลังคา ผนัง พื้น: การ์ด 2 คอลัมน์ ใบสุดท้ายเต็มแถว */
.kbh.kf-materials{background:#fff;border-top:1px solid #e3e8f0;}
.kf-materials .kf-mat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1040px !important;}
.kf-materials .kf-mat-grid > *{margin:0 !important;min-width:0;}
.kf-materials .kf-mat{padding:24px 26px 26px;background:#fff;border:1px solid #d9dee6;border-radius:4px;}
.kf-materials .kf-mat > *{margin:0 !important;}
.kf-materials .kf-mat--wide{grid-column:1 / -1;}
.kf-materials .kf-mat__title{margin-bottom:8px !important;font-size:clamp(18px,1.5vw,20px);font-weight:700;line-height:1.45;color:#071a3d;}
.kf-materials .kf-mat p{font-size:15.5px;line-height:1.8;color:#333;}
.kf-materials .kf-mat a{color:var(--kb-blue);font-weight:600;text-decoration:underline;text-underline-offset:3px;}
/* วิธีเลือกบริษัท: การ์ด 3 + 2 จัดกลาง */
.kbh.kf-pick{background:#fff;}
.kf-pick .kf-pick__grid{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;}
.kf-pick .kf-pick__grid > *{margin:0 !important;min-width:0;}
.kf-pick .kf-pick__item{flex:0 0 calc((100% - 40px) / 3);padding:24px 26px 26px;background:#f4f6f9;border-radius:4px;}
.kf-pick .kf-pick__item > *{margin:0 !important;}
.kf-pick .kf-pick__title{margin-bottom:8px !important;font-size:clamp(18px,1.5vw,20px);font-weight:700;line-height:1.45;color:#071a3d;}
.kf-pick .kf-pick__item p{font-size:15.5px;line-height:1.8;color:#333;}
.kf-pick .kf-pick__note{max-width:860px !important;margin-top:28px !important;font-size:16px;font-weight:600;color:#071a3d;}
/* การดูแลรักษา: รายการ 2 คอลัมน์ */
.kbh.kf-care{background:#f4f6f9;}
.kf-care .kf-care__list{list-style:none !important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px;max-width:1000px !important;padding:0 !important;border-bottom:1px solid #d9dee6;}
.kf-care .kf-care__list li{position:relative;margin:0 !important;padding:16px 0 16px 26px !important;border-top:1px solid #d9dee6;font-size:15.5px;line-height:1.75;color:#333;}
.kf-care .kf-care__list li::before{content:"" !important;position:absolute;left:2px;top:26px;width:8px;height:8px;margin:0;border-radius:0;background:#071a3d;box-shadow:none;}
@media (max-width:999px){.kf-pick .kf-pick__item{flex-basis:calc((100% - 20px) / 2);}}
@media (max-width:781px){
  .kf-diff .kf-table table{font-size:14px;}
  .kf-diff .kf-table th,.kf-diff .kf-table td{padding:10px 10px;}
  .kf-materials .kf-mat-grid{grid-template-columns:1fr;gap:14px;}
  .kf-materials .kf-mat{padding:20px;}
  .kf-pick .kf-pick__grid{gap:12px;}
  .kf-pick .kf-pick__item{flex-basis:100%;padding:20px;}
  .kf-care .kf-care__list{grid-template-columns:1fr;}
}
/* มือถือ: ตารางเทียบเป็นการ์ดทีละแถว หัวข้อแถวเต็มความกว้าง */
@media (max-width:600px){
  .kf-diff .kf-table thead{display:none;}
  .kf-diff .kf-table table,.kf-diff .kf-table tbody{display:block;background:none;}
  .kf-diff .kf-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:10px;background:#fff;border:1px solid #d9dee6;}
  .kf-diff .kf-table td{border:0;padding:10px 12px;}
  .kf-diff .kf-table tbody td:first-child{grid-column:1 / -1;width:auto;background:#071a3d;color:#fff;}
  .kf-diff .kf-table td:nth-child(3){border-left:1px solid #d9dee6;}
  .kf-diff .kf-table td:nth-child(2)::before,.kf-diff .kf-table td:nth-child(3)::before{display:block;margin-bottom:2px;font-size:12.5px;font-weight:600;}
  .kf-diff .kf-table td:nth-child(2)::before{content:"ระบบ PEB";color:var(--kb-blue);}
  .kf-diff .kf-table td:nth-child(3)::before{content:"โครงเหล็กแบบเดิม";color:#5d6675;}
}
/* รูปผลงานจริง 6 รูป ก่อนส่วน "คืออะไร" พื้นเดียวกับส่วนถัดไป เส้นบนหัวข้อ "คืออะไร" เป็นตัวคั่น */
.kbh.kf-works{background:#fff;padding-top:clamp(40px,4.6vw,68px);padding-bottom:clamp(40px,4.6vw,68px);}
.kbh.kf-works .kbh-h{margin-bottom:12px !important;font-size:clamp(24px,2.5vw,34px);line-height:1.35;}
.kbh.kf-works .kbh-lead{margin-bottom:clamp(24px,2.8vw,36px) !important;}
.kf-works .kf-works__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.2vw,16px);}
.kf-works .kf-works__grid > *{margin:0 !important;}
.kf-works .kf-works__grid img{aspect-ratio:4 / 3;height:auto;object-fit:cover;}
@media (max-width:781px){
  .kf-works .kf-works__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
}
/* รูปส่วนแนะนำ (จอคอม): รูปสูงเท่าคอลัมน์ข้อความ คอลัมน์รูปกว้างขึ้น */
@media (min-width:782px){
  .kf-intro .kf-intro__cols{align-items:stretch !important;}
  .kf-intro .kf-intro__cols > .kf-intro__media{flex:1.15 1 0 !important;align-self:stretch !important;display:flex;}
  .kf-intro .kf-intro__img{flex:1;display:flex;}
  .kf-intro .kf-intro__img img{height:100%;min-height:400px;aspect-ratio:auto;object-fit:cover;object-position:center 45%;}
}
/* ส่วนแนะนำแบบซ้อนชั้น (จอ 1200px ขึ้นไป): รูปเต็มความสูงชิดขอบขวาจอ การ์ดข้อความสีขาวทับขอบรูปพร้อมเงา */
@media (min-width:1200px){
  .kbh.kf-intro{position:relative;overflow:hidden;padding-top:clamp(56px,5vw,84px);padding-bottom:clamp(56px,5vw,84px);background:#f3f6ff;}
  .kf-intro .kf-intro__cols{position:static;align-items:center !important;min-height:500px;}
  .kf-intro .kf-intro__cols > .kf-intro__media{position:absolute !important;top:0;bottom:0;right:0;left:calc(50% - 40px);width:auto !important;max-width:none !important;margin:0 !important;flex:none !important;display:block;}
  .kf-intro .kf-intro__img{position:absolute !important;inset:0;display:block;}
  .kf-intro .kf-intro__img img{width:100%;height:100% !important;min-height:0;aspect-ratio:auto;object-fit:cover;object-position:center 45%;border-radius:0 !important;}
  .kf-intro .kf-intro__cols > .kf-intro__text{position:relative;z-index:1;flex:0 0 60% !important;max-width:720px;padding:clamp(36px,3.4vw,52px) clamp(28px,2.6vw,42px);background:#fff;border-radius:4px;box-shadow:0 24px 60px rgba(7,26,61,.16);}
  /* พื้นหลังฝั่งซ้ายสีขาว การ์ดข้อความสีน้ำเงิน ตัวหนังสือขาว เงาซ้อนหลายชั้น */
  .kbh.kf-intro{background:#fff;}
  .kf-intro .kf-intro__cols > .kf-intro__text{background:#1667a8;border:0;border-radius:8px;box-shadow:0 2px 4px rgba(7,26,61,.08),0 12px 28px rgba(7,26,61,.14),0 40px 80px -20px rgba(7,26,61,.35);}
  .kbh.kf-intro .kf-intro__text .kf-intro__title,.kbh.kf-intro .kf-intro__text .kf-intro__title *{color:#fff;}
  .kbh.kf-intro .kf-intro__text .kf-intro__lead{color:rgba(255,255,255,.9);}
  .kbh.kf-intro .kf-intro__text .kf-intro__lead strong{color:#fff;}
  .kbh.kf-intro .kf-intro__text .kf-checks li{color:rgba(255,255,255,.82);border-top-color:rgba(255,255,255,.25);}
  .kbh.kf-intro .kf-intro__text .kf-checks li strong{color:#fff;}
}
/* หน้าเกี่ยวกับเรา: ตารางข้อมูลสำหรับสื่อมวลชน */
.kb-press-table{max-width:860px;margin:18px auto 0 !important;}
.kb-press-table table{width:100%;border-collapse:collapse;background:#fff;font-size:15.5px;line-height:1.65;}
.kb-press-table td{padding:12px 16px;border:1px solid #d9dee6;text-align:left;vertical-align:top;color:#333;}
.kb-press-table td:first-child{width:28%;background:#f4f6f9;color:#071a3d;font-weight:600;}
@media (max-width:600px){
  .kb-press-table table,.kb-press-table tbody,.kb-press-table tr,.kb-press-table td{display:block;width:auto !important;}
  .kb-press-table tr{margin-bottom:10px;border:1px solid #d9dee6;}
  .kb-press-table td{border:0;padding:8px 12px;}
}
/* หน้าแรก: ตารางเทียบ PEB ต่อจากแถบ "ระบบ PEB คืออะไร" */
.kbh.kf-peb{background:#fff;padding-top:clamp(36px,4vw,56px);padding-bottom:0;}
.kbh.kf-peb .kf-table{margin-top:0 !important;}
/* หน้า GMP: ป้ายคอลัมน์ของตารางบนมือถือ (คอลัมน์ GMP เป็นสีน้ำเงิน) */
@media (max-width:600px){
  .kf-diff .kf-table--gmp td:nth-child(2)::before{content:"โรงงานทั่วไป";color:#5d6675;}
  .kf-diff .kf-table--gmp td:nth-child(3)::before{content:"โรงงาน GMP";color:var(--kb-blue);}
}
/* หน้าโรงงานสำเร็จรูป (764): ส่วนบนแบบรูปซ้อน 2 ชั้น ตัดมุมขวาบน ข้อความอยู่ขวา พื้นหลังรูปงานจริงจาง ๆ (kf-hero) */
.kbh.kf-hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(48px,6vw,100px) 20px;background:#fff;}
.kbh.kf-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:url("https://www.kbuildingthai.com/wp-content/themes/blocksy-child-kbuilding/assets/kf-hero-bg.webp") center 60%/cover no-repeat;opacity:.06;}
.kf-hero .kf-hero__cols{width:100% !important;max-width:1200px !important;gap:clamp(32px,5vw,76px) !important;align-items:center !important;margin:0 auto !important;}
.kf-hero .kf-hero__media{position:relative;flex:1.05 1 0 !important;padding:0 3% 16px 0;}
.kf-hero .kf-hero__text{flex:1 1 0 !important;}
.kf-hero .kf-hero__main,.kf-hero .kf-hero__inset{margin:0 !important;}
.kf-hero .kf-hero__main img{width:100%;height:auto;aspect-ratio:5/4;object-fit:cover;object-position:center 45%;clip-path:polygon(0 0,calc(100% - 72px) 0,100% 92px,100% 100%,0 100%);}
.kf-hero .kf-hero__inset{position:absolute;right:0;bottom:0;width:44%;filter:drop-shadow(0 12px 22px rgba(7,26,61,.28));}
.kf-hero .kf-hero__inset img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;clip-path:polygon(0 0,calc(100% - 38px) 0,100% 58px,100% 100%,0 100%);}
/* รูปเล็กซ้อนมุมเป็นรูปสินค้าพื้นขาว: วางพื้นฟ้าเทา (ตัดมุมเท่ารูป) ไว้ใต้รูปแล้วผสมแบบ multiply
   พื้นขาวของรูปจึงเป็นสีฟ้าอ่อนเข้ากับรูปหลักและสีเว็บ และมีเส้นขอบบาง + เงา ไม่กลืนกับพื้นหลังขาวของหน้า */
.kf-hero .kf-hero__inset{isolation:isolate;filter:drop-shadow(0 0 1px rgba(7,26,61,.35)) drop-shadow(0 16px 30px rgba(7,26,61,.30));}
.kf-hero .kf-hero__inset::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(155deg,#efefef 0%,#e6e6e6 100%);clip-path:polygon(0 0,calc(100% - 38px) 0,100% 58px,100% 100%,0 100%);}
.kf-hero .kf-hero__inset img{mix-blend-mode:multiply;}
@media (max-width:781px){ .kf-hero .kf-hero__inset::before{clip-path:polygon(0 0,calc(100% - 24px) 0,100% 36px,100% 100%,0 100%);} }
.kf-hero .kf-nb{white-space:nowrap;}
.kf-hero .kf-hero__text > *{margin-top:0 !important;}
.kf-hero .kf-hero__title{margin:0 0 20px !important;font-size:clamp(30px,3.6vw,54px);font-weight:700;line-height:1.22;color:#071a3d;text-align:left;}
.kf-hero .kf-hero__lead{margin:0 0 30px !important;font-size:16.5px;line-height:1.8;color:#3d434b;}
.kf-hero .kf-hero__lead strong{color:#071a3d;font-weight:500;}
.kf-hero .kf-hero__btns{justify-content:flex-start !important;margin:0 !important;}
.kf-hero .kf-hero__btns .wp-block-button__link{padding:15px 30px;font-size:17px;background:var(--kb-blue) !important;color:#fff !important;}
.kf-hero .kf-hero__btns .wp-block-button__link:hover{background:var(--kbh-dark) !important;}
/* ไอคอนโทรศัพท์หน้าปุ่ม: Blocksy ซ่อน ::before ของปุ่มทุกปุ่มไว้ (ใช้ทำเงา) จึงต้องสั่งให้แสดง */
.kf-hero .kf-hero__btns .kbh-btn-tel .wp-block-button__link::before{display:block !important;position:static !important;inset:auto !important;z-index:auto !important;filter:none !important;opacity:1 !important;transform:none !important;flex:none;width:18px;height:18px;}
.ct-container-full:has(.entry-content > .kf-hero:first-child){padding-top:0 !important;}
.entry-content > .kf-hero:first-child{margin-top:0 !important;}
@media (max-width:781px){
  .kbh.kf-hero{padding:28px 16px 44px;}
  .kbh.kf-hero::before{opacity:.05;}
  .kf-hero .kf-hero__cols{gap:30px !important;}
  /* มือถือ: รูปใหญ่เต็มความกว้างอยู่กึ่งกลาง รูปเล็กซ้อนอยู่ในกรอบรูปใหญ่ ห้อยลงด้านล่าง; ข้อความและปุ่มจัดกึ่งกลาง */
  .kf-hero .kf-hero__media{padding:0 0 22px;}
  .kf-hero .kf-hero__main img{clip-path:polygon(0 0,calc(100% - 44px) 0,100% 56px,100% 100%,0 100%);}
  .kf-hero .kf-hero__inset{width:50%;right:14px;}
  .kf-hero .kf-hero__inset img{clip-path:polygon(0 0,calc(100% - 24px) 0,100% 36px,100% 100%,0 100%);}
  .kf-hero .kf-hero__text,.kf-hero .kf-hero__title,.kf-hero .kf-hero__lead{text-align:center !important;}
  .kf-hero .kf-hero__btns{justify-content:center !important;}
}
/* ความเร็ว (ทุกหน้า): เมนูช่องทางของปุ่มติดต่อลอยตอนยังปิดอยู่ซ่อนด้วย visibility ด้วย
   เดิมโปร่งใสแต่ยังนับเป็นชิ้นที่ขยับ เมื่อฟอนต์ Kanit โหลดตามมาแล้วป้ายชื่อกว้างขึ้น PageSpeed จึงนับเป็น CLS
   ตอนปิด: ซ่อนหลังเล่นแอนิเมชันจางหายเสร็จ (0.4 วินาที) ตอนเปิด: แสดงทันที */
/* ความเร็ว: รูปพื้นแถบ kf-band--photo โหลดเมื่อเลื่อนมาใกล้ (สคริปต์ใน functions.php ใส่คลาส kb-bg-in) ระหว่างรอเป็นสีเข้มเรียบ ตัวหนังสือขาวยังอ่านได้ */
html.kb-lazybg .kbh.kf-band.kf-band--photo:not(.kb-bg-in){background-image:none !important;background-color:#2a3038 !important;}
.bcf-wrap:not(.bcf-open) .bcf-items{visibility:hidden;transition:visibility 0s linear .4s;}
.bcf-wrap.bcf-open .bcf-items{visibility:visible;transition:none;}

/* ---------- kpa: ส่วนบทความของหน้าโครงเหล็กสำเร็จรูป (หัวข้อ H2 + ย่อหน้าเปิด + หัวข้อย่อย H3) ----------
   kpa-rows = หัวข้อย่อยซ้าย เนื้อหาขวา / kpa-cards = การ์ด 2-3 คอลัมน์ / kpa-steps = ขั้นตอนมีเลขกำกับ
   kpa-example = การ์ดตัวอย่างคำนวณ / kpa-end = แถบปิดท้าย / kpa--band = พื้นลายทแยงแบบเดียวกับแถบขอราคา */
.ksp-show .ksp-show__h{max-width:1000px !important;margin:clamp(4px,.8vw,12px) auto 14px !important;font-size:clamp(23px,2.6vw,36px);line-height:1.4;}
.ksp-show .ksp-show__lead.kpa-lead{font-size:clamp(16px,1.25vw,18px);line-height:1.85;}

.kbh.kpa{padding-top:clamp(38px,4.4vw,68px);padding-bottom:clamp(40px,4.6vw,72px);}
.kbh.kpa--band{border-top:1px solid #dfe5ef;border-bottom:1px solid #dfe5ef;background:#f1f2f4 repeating-linear-gradient(125deg,rgba(255,255,255,.85) 0 54px,rgba(255,255,255,0) 54px 150px);}
.kbh.kpa + .kbh.ksp-hl{border-top:1px solid #e3e9f4;padding-top:clamp(34px,3.8vw,56px);}
.kpa .kbh-h{margin-bottom:14px !important;}
.kpa .kpa-intro{max-width:900px !important;margin-top:0 !important;margin-bottom:10px !important;font-size:clamp(16px,1.2vw,17.5px);line-height:1.85;color:#2b3a52;text-wrap:pretty;}
.kpa .kpa-row__body p,.kpa .kpa-card__body p,.kpa .kpa-step p,.kpa .kpa-example p{font-size:clamp(15.5px,1.1vw,16.5px);line-height:1.85;color:#27303d;text-wrap:pretty;}

/* หัวข้อย่อยซ้าย เนื้อหาขวา */
.kpa .kpa-rows{width:100% !important;max-width:1080px !important;margin-top:clamp(22px,2.8vw,38px) !important;border-bottom:1px solid #d5dce8;}
.kpa .kpa-row{position:relative;display:grid;grid-template-columns:minmax(0,32fr) minmax(0,68fr);column-gap:clamp(24px,4vw,64px);margin:0 !important;max-width:none !important;padding:clamp(22px,2.5vw,34px) 0;border-top:1px solid #d5dce8;}
.kpa .kpa-row::before{content:"";position:absolute;left:0;top:-2px;width:64px;height:3px;background:var(--kb-blue);}
.kpa .kpa-row > *{margin:0 !important;max-width:none !important;}
.kpa .kpa-row__title{font-size:clamp(19px,1.65vw,23px);font-weight:700;line-height:1.45;color:#071a3d;text-wrap:balance;}
.kpa .kpa-row__body > *{margin:0 0 12px !important;}
.kpa .kpa-row__body > :last-child{margin-bottom:0 !important;}

/* รูป + ข้อความ สลับซ้ายขวา */
.kpa .kpa-splits{width:100% !important;max-width:1120px !important;margin-top:clamp(28px,3.6vw,52px) !important;}
.kpa .kpa-split{display:flex;flex-wrap:nowrap !important;align-items:center;gap:clamp(30px,4.8vw,72px);margin:0 0 clamp(44px,5.4vw,80px) !important;max-width:none !important;}
.kpa .kpa-split:last-child{margin-bottom:0 !important;}
.kpa .kpa-split--rev{flex-direction:row-reverse;}
.kpa .kpa-split > *{margin:0 !important;}
.kpa .kpa-split__img{flex:0 0 46% !important;padding:0 14px 14px 0;}
.kpa .kpa-split--rev .kpa-split__img{padding:0 0 14px 14px;}
.kpa .kpa-split__img img{height:auto;aspect-ratio:4/3;object-fit:cover;box-shadow:14px 14px 0 var(--kb-blue);}
.kpa .kpa-split--rev .kpa-split__img img{box-shadow:-14px 14px 0 #ffb400;}
.kpa .kpa-split__body{flex:1 1 0 !important;min-width:0;}
.kpa .kpa-split__body > *{margin:0 0 12px !important;}
.kpa .kpa-split__body > :last-child{margin-bottom:0 !important;}
.kpa .kpa-split__body .kpa-split__title{margin-bottom:16px !important;font-size:clamp(20px,1.9vw,27px);font-weight:700;line-height:1.4;color:#071a3d;text-wrap:balance;}
.kpa .kpa-split__body p{font-size:clamp(15.5px,1.1vw,16.5px);line-height:1.85;color:#27303d;text-wrap:pretty;}
@media (max-width:781px){
  .kpa .kpa-split,.kpa .kpa-split--rev{flex-direction:column;align-items:stretch;gap:24px;}
  .kpa .kpa-split__img,.kpa .kpa-split--rev .kpa-split__img{flex:0 0 auto !important;padding:0 10px 10px 0;}
  .kpa .kpa-split__img img,.kpa .kpa-split--rev .kpa-split__img img{box-shadow:10px 10px 0 var(--kb-blue);}
  .kpa .kpa-split--rev .kpa-split__img img{box-shadow:10px 10px 0 #ffb400;}
}

/* การ์ด */
.kpa .kpa-cards{width:100% !important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,1.8vw,24px);margin-top:clamp(24px,3vw,40px) !important;}
.kpa .kpa-cards--2{grid-template-columns:repeat(2,minmax(0,1fr));}
.kpa .kpa-card{margin:0 !important;max-width:none !important;padding:clamp(20px,2.2vw,30px) clamp(18px,2vw,28px) clamp(22px,2.3vw,30px);background:#fff;border:1px solid #dde3ec;border-top:4px solid #ffb400;box-shadow:0 10px 24px rgba(7,26,61,.08);}
.kpa .kpa-card:nth-child(3n+2){border-top-color:#1a74c4;}
.kpa .kpa-card:nth-child(3n){border-top-color:#071a3d;}
.kpa .kpa-cards--2 .kpa-card:nth-child(odd){border-top-color:#ffb400;}
.kpa .kpa-cards--2 .kpa-card:nth-child(even){border-top-color:#1a74c4;}
.kpa .kpa-card > *{margin:0 !important;max-width:none !important;}
.kpa .kpa-card .kpa-card__title{margin-bottom:14px !important;padding-bottom:13px;border-bottom:1px solid #e3e8f0;font-size:clamp(18.5px,1.5vw,21px);font-weight:700;line-height:1.45;color:#071a3d;text-wrap:pretty;}
.kpa .kpa-card__body > *{margin:0 0 12px !important;}
.kpa .kpa-card__body > :last-child{margin-bottom:0 !important;}
/* หัวการ์ดในแถวเดียวกันสูงเท่ากัน เส้นใต้หัวข้อจึงตรงกันทุกใบ */
@supports (grid-template-rows:subgrid){
  .kpa .kpa-card{display:grid;grid-template-rows:subgrid;grid-row:span 2;row-gap:0;}
}

/* การ์ดตัวอย่างคำนวณ (กว้างเต็มแถว 2 คอลัมน์) */
.kpa .kpa-example{width:100% !important;margin-top:clamp(16px,1.8vw,24px) !important;padding:clamp(22px,2.4vw,34px) clamp(18px,2.4vw,36px) clamp(24px,2.6vw,36px);background:#fff;border:1px solid #dde3ec;border-top:4px solid #071a3d;box-shadow:0 10px 24px rgba(7,26,61,.08);}
.kpa .kpa-example > *{margin-top:0 !important;max-width:none !important;}
.kpa .kpa-example .kpa-example__title{margin:0 0 18px !important;padding-bottom:14px;border-bottom:1px solid #e3e8f0;font-size:clamp(19px,1.7vw,24px);font-weight:700;line-height:1.45;color:#071a3d;}
.kpa .kpa-example__cols{gap:14px clamp(22px,3.4vw,52px);margin:0 !important;}
.kpa .kpa-example__cols .wp-block-column > *{margin:0 0 12px !important;}
.kpa .kpa-example__cols .wp-block-column > :last-child{margin-bottom:0 !important;}
.kpa .kpa-example p.kpa-formula{padding:13px 18px;background:#fff7df;border-left:5px solid #ffb400;font-size:clamp(16px,1.2vw,17.5px);font-weight:600;line-height:1.6;color:#071a3d;text-wrap:balance;}
.kpa .kpa-formula strong{font-weight:600;}

/* ขั้นตอน */
.kpa .kpa-steps{width:100% !important;max-width:980px !important;margin-top:clamp(24px,3vw,40px) !important;counter-reset:kps;}
.kpa .kpa-step{counter-increment:kps;display:grid;grid-template-columns:clamp(54px,6.4vw,84px) minmax(0,1fr);margin:0 0 14px !important;max-width:none !important;background:#fff;border:1px solid #dde3ec;box-shadow:0 10px 24px rgba(7,26,61,.07);}
.kpa .kpa-step:last-child{margin-bottom:0 !important;}
.kpa .kpa-step::before{content:"0" counter(kps);display:flex;align-items:flex-start;justify-content:center;padding-top:clamp(18px,2.1vw,27px);background:#071a3d;color:#fff;font-size:clamp(22px,2.4vw,32px);font-weight:700;line-height:1.25;}
.kpa .kpa-step:nth-child(even)::before{background:#1a74c4;}
.kpa .kpa-step__body{margin:0 !important;max-width:none !important;padding:clamp(18px,2.1vw,28px) clamp(16px,2.3vw,32px) clamp(20px,2.2vw,28px);}
.kpa .kpa-step__body > *{margin:0 0 12px !important;}
.kpa .kpa-step__body > :last-child{margin-bottom:0 !important;}
.kpa .kpa-step__body .kpa-step__title{margin-bottom:10px !important;font-size:clamp(18.5px,1.55vw,22px);font-weight:700;line-height:1.45;color:#071a3d;text-wrap:balance;}

/* คำถามที่พบบ่อย: คำตอบหลายย่อหน้าอยู่ในกรอบเดียวกัน */
.kpa-faq > p:has(+ p){margin-bottom:0 !important;padding-bottom:0;border-bottom:0;}
.kpa-faq > p.kb-updated{margin:-6px auto 20px !important;padding:0;border:0;}
.kbh.ksp-works + .kbh.kpa-faq{padding-top:0;}

/* แถบปิดท้าย */
.kbh.kpa-end{padding-top:clamp(34px,4vw,60px);padding-bottom:clamp(36px,4.2vw,64px);background:#071a3d repeating-linear-gradient(125deg,rgba(255,255,255,.04) 0 54px,rgba(255,255,255,0) 54px 150px);}
.kbh.kpa-end .kpa-end__title{max-width:900px !important;margin:0 auto 14px !important;font-size:clamp(22px,2.5vw,34px);font-weight:700;line-height:1.4;color:#fff;text-wrap:balance;}
.kbh.kpa-end .kpa-end__title strong{font-weight:700;}
.kbh.kpa-end .kpa-end__text{max-width:880px !important;margin:0 auto 10px !important;font-size:clamp(15.5px,1.15vw,17px);line-height:1.85;color:rgba(255,255,255,.88);text-wrap:pretty;}
.kbh.kpa-end .kbh-btns{justify-content:center;margin-top:clamp(20px,2.2vw,28px) !important;}
.kbh.kpa-end .ksp-btn-quote .wp-block-button__link{white-space:normal;text-align:left;}

@media (max-width:1023px){
  .kpa .kpa-cards{grid-template-columns:1fr;}
  .kpa .kpa-cards--2{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:781px){
  /* มือถือ: ย่อหน้ายาวชิดซ้ายให้อ่านง่าย */
  .kpa .kpa-intro,.ksp-show .ksp-show__lead.kpa-lead,.kbh.kpa-end .kpa-end__text{text-align:left !important;}
  .kpa .kpa-row{grid-template-columns:1fr;row-gap:10px;}
  .kpa .kpa-cards--2{grid-template-columns:1fr;}
}
