/*
Theme Name: BT Hybrid Refresh 1.2.2
Theme URI: https://btpest.my/
Author: BT PEST TERMINATE
Description: Refreshed responsive theme for BT PEST TERMINATE staging.
Version: 1.2.8
Text Domain: bt-hybrid-refresh-v12
*/
:root{--bt-red:#F3151A;--bt-green:#40A275;--bt-deep:#003b30;--bt-deeper:#002c25;--bt-mint:#27d6a0;--bt-ink:#171817;--bt-muted:#64716d;--bt-pale:#f3f8f5;--bt-line:#dfe9e4;--bt-radius:14px;--bt-shadow:0 10px 30px rgba(0,45,34,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--bt-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.6;background:#fff}img{max-width:100%;height:auto;display:block}a{color:var(--bt-green);text-decoration:none}a:hover{color:var(--bt-red)}button,input,textarea,select{font:inherit}.container{width:min(1240px,calc(100% - 40px));margin-inline:auto}.topbar{background:var(--bt-deeper);color:#eaf7f2;font-size:12px}.topbar-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:18px}.topbar a{color:#eaf7f2}.topbar-contact,.topbar-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.site-header{position:relative;z-index:20;background:#fff;border-bottom:1px solid var(--bt-line)}.header-inner{min-height:82px;display:flex;align-items:center;gap:26px}.brand{display:flex;align-items:center;gap:15px;flex-shrink:0;color:var(--bt-ink)}.brand img{width:158px;max-height:58px;object-fit:contain}.brand-tagline{border-left:1px solid #cbd8d2;padding-left:15px;font-size:11px;font-weight:800;line-height:1.45;letter-spacing:.02em;color:#1c2925}.main-nav{margin-left:auto}.main-nav ul{display:flex;align-items:center;gap:21px;list-style:none;padding:0;margin:0}.main-nav a{font-size:13px;font-weight:700;color:#25312d}.main-nav a:hover,.main-nav .current-menu-item>a{color:#252E2A}.header-cta,.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 20px;border-radius:8px;background:var(--bt-red);color:#fff;font-size:14px;font-weight:800;border:1px solid var(--bt-red);transition:transform .2s,background .2s;box-shadow:0 5px 14px rgba(243,21,26,.15)}.header-cta:hover,.btn:hover{background:#d90e15;color:#fff;transform:translateY(-1px)}.btn-outline{background:transparent;border-color:#fff;color:#fff;box-shadow:none}.btn-outline:hover{background:#fff;color:var(--bt-deep)}.btn-green{background:var(--bt-green);border-color:var(--bt-green)}.menu-toggle{display:none;background:transparent;border:1px solid var(--bt-line);border-radius:8px;padding:8px 11px;color:var(--bt-deep);font-size:23px}.hero{position:relative;isolation:isolate;overflow:hidden;background:var(--bt-deep);color:#fff;min-height:430px;display:flex;align-items:center}.hero:before{content:"";position:absolute;inset:0;z-index:-2;background-image:linear-gradient(90deg,rgba(0,44,35,.98) 0%,rgba(0,55,43,.88) 30%,rgba(0,48,38,.25) 70%,rgba(0,35,29,.15) 100%),url("assets/hero-technician-sabah.jpg");background-position:center,right center;background-size:cover}.hero:after{content:"";position:absolute;inset:auto 0 0;height:105px;background:linear-gradient(0deg,rgba(0,40,31,.85),transparent);z-index:-1}.hero-inner{padding:44px 0 30px}.eyebrow{margin:0 0 12px;color:var(--bt-mint);font-size:12px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}.hero h1{max-width:650px;margin:0 0 14px;font-size:clamp(40px,5vw,66px);line-height:.99;letter-spacing:-.045em;color:#fff}.hero h1 span{color:var(--bt-mint)}.hero-copy{max-width:590px;margin:0 0 22px;color:#e8f4ef;font-size:18px;line-height:1.5}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-trust{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:36px;max-width:920px}.trust-item{display:flex;align-items:center;gap:12px;font-size:12px;color:#e9f7f1;line-height:1.35}.trust-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(39,214,160,.5);border-radius:12px;color:var(--bt-mint);font-size:21px;flex-shrink:0}.trust-item strong{display:block;color:#fff;font-size:13px}.section{padding:48px 0}.section-soft{background:var(--bt-pale)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-kicker{margin:0 0 5px;color:var(--bt-green);font-size:11px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}.section h2,.section-head h2{margin:0;color:var(--bt-ink);font-size:clamp(27px,3vw,38px);line-height:1.15;letter-spacing:-.035em}.section h2 .green,.section-head h2 .green{color:var(--bt-green)}.section-intro{margin:8px 0 0;color:var(--bt-muted);font-size:14px}.text-link{font-size:13px;font-weight:800;color:var(--bt-green);white-space:nowrap}.text-link:hover{color:var(--bt-red)}.service-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.service-card{overflow:hidden;border:1px solid var(--bt-line);border-radius:10px;background:#fff;box-shadow:0 3px 12px rgba(0,35,25,.035);transition:transform .2s,box-shadow .2s}.service-card:hover{transform:translateY(-4px);box-shadow:var(--bt-shadow)}.service-photo{height:125px;overflow:hidden;background:#dcebe3}.service-photo img{width:100%;height:100%;object-fit:cover}.service-body{padding:13px}.service-body h3{font-size:15px;line-height:1.25;margin:0 0 6px}.service-body p{font-size:12px;line-height:1.5;color:var(--bt-muted);margin:0 0 10px}.learn-link{font-size:12px;font-weight:800;color:var(--bt-green)}.photo-cockroach{background:linear-gradient(135deg,#6a4a2e,#c5a17a)}.photo-termite{background:linear-gradient(135deg,#7b4e22,#e0bd7b)}.photo-rodent{background:linear-gradient(135deg,#65746b,#c5d4c9)}.photo-mosquito{background:linear-gradient(135deg,#1e6546,#b5d69c)}.photo-technician{background:linear-gradient(135deg,#193d33,#a6c5b5)}.photo-construction{background:linear-gradient(135deg,#a6c5d8,#e0c28a)}.service-symbol{display:inline-grid;place-items:center;width:35px;height:35px;margin-top:-26px;position:relative;border:3px solid #fff;border-radius:50%;background:var(--bt-green);color:#fff;font-size:17px}.service-card:nth-child(1) .service-symbol,.service-card:nth-child(4) .service-symbol,.service-card:nth-child(6) .service-symbol{background:var(--bt-red)}.about-band{display:grid;grid-template-columns:1fr 1.1fr 1.3fr;background:var(--bt-deep);color:#fff}.about-photo{min-height:320px;background:#183d31;overflow:hidden}.about-photo img{width:100%;height:100%;object-fit:cover}.about-copy{padding:34px 30px;align-self:center}.about-copy .section-kicker{color:var(--bt-mint)}.about-copy h2{margin:0 0 12px;color:#fff;font-size:clamp(26px,3vw,36px);line-height:1.08}.about-copy p{margin:0 0 18px;color:#d4e6de;font-size:13px}.proof-grid{padding:28px 30px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:center}.proof-card{border:1px solid rgba(39,214,160,.25);border-radius:10px;padding:18px 14px;text-align:center;background:rgba(255,255,255,.035)}.proof-icon{font-size:25px;color:var(--bt-mint);display:block;margin-bottom:5px}.proof-card strong{display:block;font-size:13px}.proof-card span:last-child{font-size:11px;color:#c9ded5}.industry-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.industry-card{padding:0;border:1px solid var(--bt-line);border-radius:9px;overflow:hidden;background:#fff}.industry-image{height:95px;background:linear-gradient(135deg,#d4e9df,#8ba99b)}.industry-image img{width:100%;height:100%;object-fit:cover}.industry-card strong{display:block;padding:9px 10px;font-size:12px;line-height:1.3}.projects-grid,.posts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.project-card,.post-card{border:1px solid var(--bt-line);border-radius:12px;overflow:hidden;background:#fff}.project-thumb,.post-thumb{height:180px;background:#dcebe3;overflow:hidden}.project-thumb img,.post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.project-card:hover img,.post-card:hover img{transform:scale(1.04)}.project-content,.post-content{padding:16px}.project-content h3,.post-content h3{font-size:17px;line-height:1.3;margin:0 0 7px}.project-content p,.post-content p{font-size:13px;color:var(--bt-muted);margin:0 0 10px}.post-meta{font-size:11px;color:var(--bt-muted);margin-bottom:8px}.knowledge-layout{display:grid;grid-template-columns:.8fr 2fr;gap:28px;align-items:center}.knowledge-intro{padding-right:10px}.knowledge-intro p{color:var(--bt-muted);font-size:14px}.posts-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.post-thumb{height:135px}.post-content{padding:13px}.post-content h3{font-size:14px}.cta-band{background:var(--bt-deep);color:#fff;border-radius:14px;padding:30px 34px;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;position:relative}.cta-band h2{color:#fff;font-size:clamp(24px,3vw,34px);margin:0 0 6px}.cta-band p{color:#d3e6de;margin:0;font-size:14px}.cta-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}.site-footer{background:#002b24;color:#eaf5f0;margin-top:0}.footer-main{padding:42px 0;display:grid;grid-template-columns:1.5fr 1fr 1fr 1.1fr;gap:32px}.footer-brand{width:170px;max-height:65px;object-fit:contain;object-position:left;margin-bottom:15px}.footer-main p,.footer-main li,.footer-main a{font-size:13px;color:#c6d9d1}.footer-main h3{color:#fff;font-size:14px;margin:0 0 13px}.footer-main ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}.footer-bottom{border-top:1px solid rgba(255,255,255,.14);padding:15px 0;font-size:11px;color:#b6ccc3;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.floating-whatsapp{position:fixed;right:20px;bottom:20px;z-index:50;background:#16a66a;color:#fff;border-radius:50px;padding:13px 17px;font-weight:800;font-size:13px;box-shadow:0 8px 24px rgba(0,0,0,.2)}.floating-whatsapp:hover{background:#128d5a;color:#fff}.entry-content{max-width:850px;margin:40px auto;padding:0 20px}.entry-content h1,.entry-content h2,.entry-content h3{line-height:1.2}.entry-content img{border-radius:10px}.pagination{margin-top:28px}.pagination .nav-links{display:flex;gap:8px}.pagination a,.pagination span{padding:8px 12px;border:1px solid var(--bt-line);border-radius:7px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.main-nav ul{gap:12px}.brand img{width:135px}.brand-tagline{font-size:10px}.header-inner{gap:15px}.service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.industry-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.about-band{grid-template-columns:1fr 1.2fr}.about-photo{min-height:280px}.about-copy{padding:28px}.proof-grid{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 28px 28px}.hero{min-height:420px}}
@media(max-width:780px){.container{width:min(100% - 30px,620px)}.topbar-inner{padding:7px 0;align-items:flex-start}.topbar-links{display:none}.topbar-contact{gap:10px}.topbar-contact span:nth-child(2){display:none}.header-inner{min-height:76px;flex-wrap:wrap;justify-content:space-between;padding:10px 0}.brand{gap:0}.brand img{width:145px;max-height:55px}.brand-tagline{display:none}.header-cta{margin-left:auto;padding:10px 12px;font-size:12px}.menu-toggle{display:block}.main-nav{display:none;order:5;width:100%;margin:0;padding:8px 0 12px}.main-nav.is-open{display:block}.main-nav ul{display:grid;gap:0}.main-nav li a{display:block;padding:11px 5px;border-bottom:1px solid var(--bt-line);font-size:14px}.hero{min-height:0}.hero:before{background-image:linear-gradient(90deg,rgba(0,44,35,.96),rgba(0,48,38,.76)),url("assets/hero-technician-sabah.jpg");background-position:center;background-size:cover}.hero-inner{padding:42px 0 24px}.hero h1{font-size:clamp(38px,10vw,56px);max-width:520px}.hero-copy{font-size:16px}.hero-trust{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:28px}.trust-item{font-size:11px}.section{padding:36px 0}.section-head{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:18px}.section h2,.section-head h2{font-size:29px}.service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.service-photo{height:120px}.service-body{padding:11px}.service-body h3{font-size:14px}.about-band{grid-template-columns:1fr}.about-photo{min-height:240px;max-height:300px}.about-copy{padding:28px 22px}.proof-grid{grid-column:auto;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 22px 25px}.proof-card{padding:14px 10px}.industry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.industry-image{height:100px}.projects-grid{grid-template-columns:1fr}.project-thumb{height:210px}.knowledge-layout{grid-template-columns:1fr;gap:18px}.posts-grid{grid-template-columns:1fr}.post-card{display:grid;grid-template-columns:115px 1fr}.post-thumb{height:100%;min-height:120px}.cta-band{padding:25px 22px;display:block}.cta-actions{margin-top:18px}.footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 18px;padding:32px 0}.footer-brand{width:145px}.footer-bottom{display:block}.footer-bottom span{display:block;margin-top:5px}.floating-whatsapp{right:12px;bottom:12px;padding:11px 14px}}
@media(max-width:380px){.header-cta{font-size:11px;padding:9px}.brand img{width:125px}.service-grid{gap:8px}.service-photo{height:100px}.service-body p{font-size:11px}.hero h1{font-size:37px}.hero-actions .btn{padding:11px 12px;font-size:12px}}

/* BT PEST TERMINATE refresh overrides — brand and responsive refinements */
:root{--bt-red:#F3151A;--bt-green:#40A275;--bt-ink:#171817}
.btn-whatsapp{background:#40A275;border-color:#40A275;color:#fff}
.btn-whatsapp:hover{background:#327f5b;border-color:#327f5b;color:#fff}
.brand img,.footer-brand{object-fit:contain}
.hero{background-color:#003d31}
@media(max-width:760px){
  .topbar-links{display:none}
  .hero-trust{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-actions{flex-wrap:wrap}
  .hero-actions .btn{min-width:0}
  .section-head{align-items:flex-start;gap:10px}
}

/* Logo refinement: use the supplied transparent landscape logo without recreating it */
.brand img.custom-logo,.brand img:not(.custom-logo){
  width:176px;
  max-width:100%;
  height:auto;
  max-height:72px;
  object-fit:contain;
}
.footer-brand{max-width:190px;height:auto;max-height:82px;object-fit:contain}
@media(max-width:1100px){
  .brand img.custom-logo,.brand img:not(.custom-logo){width:155px;max-height:64px}
}
@media(max-width:780px){
  .brand img.custom-logo,.brand img:not(.custom-logo){width:138px;max-height:58px}
}

/* BT Hybrid Refresh 1.2.0 — visual corrections from staging review */
.brand img.custom-logo{width:220px;max-width:none;height:auto;max-height:78px;object-fit:contain}
.brand{gap:16px}
.footer-brand-name{display:inline-block;color:#fff;font-size:22px;font-weight:900;letter-spacing:-.03em;line-height:1.15;margin:0 0 8px}
.footer-brand-name:hover{color:#fff}
.footer-tagline{margin:0 0 12px;color:#e5f3ed;font-size:11px;font-weight:800;letter-spacing:.05em;line-height:1.5}
.footer-brand{display:none}
.hero:before{background-image:linear-gradient(90deg,rgba(0,44,35,.98) 0%,rgba(0,55,43,.92) 30%,rgba(0,48,38,.42) 61%,rgba(0,35,29,.08) 100%),url("assets/hero-technician-sabah.jpg");background-position:center,right center;background-size:cover}
.service-photo img,.industry-image img,.project-thumb img,.post-thumb img{object-fit:cover;object-position:center}
.service-photo{height:132px}
.industry-image{height:95px}
@media(max-width:1100px){.brand img.custom-logo{width:190px;max-height:70px}}
@media(max-width:780px){
 .brand img.custom-logo{width:158px;max-height:58px}
 .brand{gap:0}
 .hero:before{background-image:linear-gradient(90deg,rgba(0,44,35,.96),rgba(0,48,38,.76)),url("assets/hero-technician-sabah.jpg");background-position:center,right center;background-size:cover}
 .service-photo{height:118px}
 .footer-brand-name{font-size:19px}
}


/* BT Hybrid Refresh 1.2.2 — typography and text contrast refinement */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');
:root{--bt-text:#424B46;--bt-green-text:#28734F;--bt-muted:#52605A}
html{font-size:16px}
body{font-family:'Inter',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;line-height:1.68;color:#424B46}
h1,h2,h3,h4,h5,h6,.hero h1,.section h2,.section-head h2,.about-copy h2,.cta-band h2{font-family:'Poppins','Inter',ui-sans-serif,system-ui,sans-serif;font-weight:700}
.hero h1{font-size:clamp(40px,4.7vw,62px);line-height:1.04;letter-spacing:-.035em}
.hero-copy{font-size:17px;line-height:1.65}
.eyebrow,.section-kicker{font-size:12px;letter-spacing:.13em}
.section h2,.section-head h2{font-size:clamp(29px,2.8vw,36px);line-height:1.2;letter-spacing:-.025em}
.section-intro,.knowledge-intro p{font-size:15px;line-height:1.65;color:#52605A}
.main-nav a{font-size:14px;font-weight:600;color:#252E2A}
.topbar{font-size:12px}
.brand-tagline{font-size:12px;line-height:1.5}
.service-body h3{font-size:16px;line-height:1.35;font-weight:700}
.service-body p{font-size:14px;line-height:1.6;color:#52605A}
.learn-link,.text-link{font-size:13px;font-weight:700;color:var(--bt-green-text)}
.industry-card strong{font-size:13px;line-height:1.45;font-weight:600}
.project-content h3,.post-content h3{font-size:16px;line-height:1.4;font-weight:700}
.project-content p,.post-content p{font-size:14px;line-height:1.6;color:#52605A}
.post-meta{font-size:12px;color:#52605A}
.about-copy p{font-size:14px;line-height:1.7;color:#E0ECE6}
.proof-card strong{font-size:14px}.proof-card span:last-child{font-size:12px;line-height:1.5}
.footer-main p,.footer-main li,.footer-main a{font-size:14px;line-height:1.7;color:#D3E2DB}
.footer-main h3{font-size:15px;font-weight:700}
.footer-bottom{font-size:12px;color:#D0E0D8}
.cta-band p{font-size:15px;line-height:1.6}
.header-cta,.btn{font-size:14px;font-weight:700}
a{color:var(--bt-green-text)}
.main-nav a:hover,.main-nav .current-menu-item>a{color:#252E2A}
.text-link:hover{color:var(--bt-red)}
@media(max-width:780px){
 body{font-size:16px;line-height:1.65}
 .hero h1{font-size:clamp(35px,9vw,48px);line-height:1.06}
 .hero-copy{font-size:16px;line-height:1.6}
 .section h2,.section-head h2{font-size:clamp(27px,7vw,32px)}
 .service-body h3{font-size:15px}
 .service-body p{font-size:13px;line-height:1.55}
 .industry-card strong{font-size:13px}
 .footer-main p,.footer-main li,.footer-main a{font-size:13px}
}


/* BT Hybrid Refresh 1.2.7 — mobile layout refinements plus footer white and cache-bust support.
   Keep the dark-green background unchanged; force only footer text/link rendering. */
html body footer.site-footer,
html body footer.site-footer p,
html body footer.site-footer li,
html body footer.site-footer h1,
html body footer.site-footer h2,
html body footer.site-footer h3,
html body footer.site-footer h4,
html body footer.site-footer h5,
html body footer.site-footer h6,
html body footer.site-footer span,
html body footer.site-footer strong,
html body footer.site-footer em,
html body footer.site-footer a,
html body footer.site-footer a:link,
html body footer.site-footer a:visited,
html body footer.site-footer a:hover,
html body footer.site-footer a:focus,
html body footer.site-footer a:active {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  text-shadow: none !important;
  text-decoration-color: #FFFFFF !important;
}
@media screen and (min-width: 781px) {
  html body footer.site-footer .footer-brand-name,
  html body footer.site-footer .footer-tagline,
  html body footer.site-footer .footer-main p,
  html body footer.site-footer .footer-main li,
  html body footer.site-footer .footer-main h3,
  html body footer.site-footer .footer-main a,
  html body footer.site-footer .footer-bottom,
  html body footer.site-footer .footer-bottom span,
  html body footer.site-footer .footer-bottom a {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    text-shadow: none !important;
  }
}


/* BT Hybrid Refresh 1.2.7 — mobile corrections from user review.
   Scope: mobile header/logo, Knowledge Hub cards, and footer layout only. */
@media screen and (max-width: 780px) {
  /* Give the original logo more visual presence without distorting its ratio. */
  .header-inner {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    column-gap: 12px;
    row-gap: 12px;
    align-items: center;
  }
  .brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 64px);
  }
  .brand img,
  .brand img.custom-logo,
  .brand img:not(.custom-logo) {
    width: 190px;
    max-width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
  }
  .menu-toggle {
    flex: 0 0 52px;
    width: 52px;
    min-height: 52px;
    padding: 7px;
    display: grid;
    place-items: center;
  }
  .header-cta {
    flex: 0 0 100%;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 13px 16px;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  /* Each article becomes a vertical card; image fills the card width. */
  .knowledge-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .knowledge-intro {
    min-width: 0;
    padding-right: 0;
  }
  .posts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    min-width: 0;
  }
  .post-card {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .post-card > a {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }
  .post-thumb {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex: 0 0 auto;
  }
  .post-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
  }
  .post-content {
    width: 100%;
    min-width: 0;
    padding: 15px;
    overflow-wrap: anywhere;
  }
  .post-content h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  /* One clear footer column avoids squeezed columns and clipped contact details. */
  .footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 30px;
    padding-bottom: 28px;
  }
  .footer-main > div {
    min-width: 0;
    width: 100%;
  }
  .footer-brand-name {
    display: inline-block;
    max-width: 100%;
    font-size: 20px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .footer-main p,
  .footer-main li,
  .footer-main a {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .footer-main h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .footer-main ul {
    gap: 9px;
    min-width: 0;
  }
  .footer-main .btn {
    display: flex;
    width: 100%;
    min-height: 54px;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 92px;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .footer-bottom span {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 110px);
    padding: 11px 14px;
    font-size: 13px;
  }
}

@media screen and (max-width: 380px) {
  .brand img,
  .brand img.custom-logo,
  .brand img:not(.custom-logo) {
    width: 174px;
    max-width: calc(100vw - 100px);
    max-height: 66px;
  }
  .footer-main p,
  .footer-main li,
  .footer-main a {
    font-size: 14px;
  }
}


/* BT Hybrid Refresh 1.2.8 — final mobile header and Knowledge Hub corrections.
   The last rules intentionally override earlier responsive declarations. */
@media screen and (max-width: 780px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 12px;
    row-gap: 12px;
  }
  .brand {
    flex: 1 1 auto;
    width: auto;
    max-width: calc(100% - 64px);
    min-width: 0;
  }
  .brand img,
  .brand img.custom-logo,
  .brand img:not(.custom-logo) {
    display: block;
    width: 220px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 84px !important;
    object-fit: contain;
    object-position: left center;
  }
  .menu-toggle {
    flex: 0 0 52px;
    width: 52px;
    min-height: 52px;
  }
  .header-cta {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    min-height: 54px;
  }

  .knowledge-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start;
    gap: 18px;
  }
  .knowledge-layout > *,
  .knowledge-intro,
  .posts-grid,
  .post-card,
  .post-card > a {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .posts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }
  .post-card {
    display: block !important;
    overflow: hidden;
  }
  .post-card > a {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
  }
  .post-thumb {
    display: block;
    position: relative;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    overflow: hidden;
  }
  .post-thumb img,
  .post-thumb a img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }
  .post-content {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 380px) {
  .brand img,
  .brand img.custom-logo,
  .brand img:not(.custom-logo) {
    width: 200px !important;
    max-width: calc(100vw - 86px) !important;
    max-height: 76px !important;
  }
}


/* BT logo size refinement — slightly larger on desktop and mobile.
   Keep the original logo asset and its aspect ratio; these final rules
   intentionally override earlier logo-size refinements above. */
@media screen and (min-width: 1101px) {
  .site-header .brand img,
  .site-header .brand img.custom-logo {
    width: 240px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 88px !important;
    object-fit: contain;
    object-position: left center;
  }
}

@media screen and (min-width: 781px) and (max-width: 1100px) {
  .site-header .brand img,
  .site-header .brand img.custom-logo {
    width: 205px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 78px !important;
    object-fit: contain;
    object-position: left center;
  }
}

@media screen and (max-width: 780px) {
  .site-header .brand img,
  .site-header .brand img.custom-logo {
    width: 230px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 88px !important;
    object-fit: contain;
    object-position: left center;
  }
}

@media screen and (max-width: 380px) {
  .site-header .brand img,
  .site-header .brand img.custom-logo {
    width: 210px !important;
    max-width: calc(100vw - 86px) !important;
    height: auto !important;
    max-height: 80px !important;
    object-fit: contain;
    object-position: left center;
  }
}

/* BT logo size refinement v2 — increase the previous logo dimensions by about 20%.
   Original logo asset and aspect ratio are preserved. These rules override earlier sizes. */
@media screen and (min-width: 1101px) {
  .site-header .brand img,
  .site-header .brand img.custom-logo {
    width: 288px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 106px !important;
    object-fit: contain;
    object-position: left center;
  }
}

@media screen and (min-width: 781px) and (max-width: 1100px) {
  .site-header .brand img,
  .site-header .brand img.custom-logo {
    width: 246px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 94px !important;
    object-fit: contain;
    object-position: left center;
  }
}

@media screen and (max-width: 780px) {
  .site-header .brand img,
  .site-header .brand img.custom-logo {
    width: 276px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 106px !important;
    object-fit: contain;
    object-position: left center;
  }
}

@media screen and (max-width: 380px) {
  .site-header .brand img,
  .site-header .brand img.custom-logo {
    width: 252px !important;
    max-width: calc(100vw - 86px) !important;
    height: auto !important;
    max-height: 96px !important;
    object-fit: contain;
    object-position: left center;
  }
}

/* BT Service Areas section — visual refinement for desktop and mobile */
.service-areas {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 92% 8%, rgba(64,162,117,.10), transparent 27%), linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%);
  border-top: 1px solid #e3eee8;
  border-bottom: 1px solid #e3eee8;
}
.service-areas .section-head { align-items: flex-end; margin-bottom: 28px; }
.service-areas .section-kicker { color: #28734F; }
.service-areas .section-head h2, .service-areas .section-intro { max-width: 760px; }
.service-areas .text-link {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  padding: 11px 15px; border: 1px solid #cfe2d7; border-radius: 9px; background: #fff;
  box-shadow: 0 4px 14px rgba(0,45,34,.05);
}
.service-area-groups {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr);
  gap: 20px; align-items: stretch;
}
.service-area-group {
  min-width: 0; padding: 24px; border: 1px solid #dce9e2; border-radius: 16px;
  background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(0,45,34,.055);
}
.service-area-group:first-child { border-top: 4px solid #40A275; }
.service-area-group:last-child { border-top: 4px solid #F3151A; }
.service-area-group h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: #173d30; font-size: 19px; line-height: 1.35;
}
.service-area-group h3:before {
  content: ""; display: inline-block; width: 9px; height: 9px; flex: 0 0 9px;
  border-radius: 50%; background: #40A275; box-shadow: 0 0 0 5px rgba(64,162,117,.12);
}
.service-area-group:last-child h3:before { background: #F3151A; box-shadow: 0 0 0 5px rgba(243,21,26,.09); }
.service-area-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px;
  margin: 0; padding: 0; list-style: none;
}
.service-area-group:last-child .service-area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-area-list li {
  position: relative; display: flex; align-items: center; min-height: 44px; min-width: 0;
  padding: 9px 11px 9px 34px; border: 1px solid #e3eee8; border-radius: 9px;
  background: #f8fbf9; color: #263b32; font-size: 14px; font-weight: 600; line-height: 1.35;
  overflow-wrap: anywhere; transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.service-area-list li:before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px;
  border: 2px solid #40A275; border-radius: 50% 50% 50% 0; transform: translateY(-65%) rotate(-45deg);
}
.service-area-group:last-child .service-area-list li:before { border-color: #40A275; }
.service-area-list li:hover { border-color: #a8d2bb; background: #eff8f2; transform: translateY(-1px); }
@media (max-width: 900px) {
  .service-area-groups { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-area-group { padding: 21px; }
}
@media (max-width: 780px) {
  .service-areas { padding-top: 38px; padding-bottom: 38px; }
  .service-areas .section-head { gap: 14px; margin-bottom: 20px; }
  .service-areas .section-head h2 { max-width: 100%; }
  .service-areas .text-link { white-space: normal; }
  .service-area-group { padding: 18px 15px; border-radius: 13px; }
  .service-area-group h3 { font-size: 17px; margin-bottom: 14px; }
  .service-area-list, .service-area-group:last-child .service-area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  }
  .service-area-list li { min-height: 42px; padding: 8px 7px 8px 27px; font-size: 13px; }
  .service-area-list li:before { left: 10px; width: 8px; height: 8px; }
}
@media (max-width: 360px) {
  .service-area-list, .service-area-group:last-child .service-area-list { grid-template-columns: minmax(0, 1fr); }
}

/* BT Service Areas visual concept refinement — stronger accents and district pin colours */
.service-areas .service-area-group:first-child {
  border-top: 6px solid #40A275 !important;
}
.service-areas .service-area-group:last-child {
  border-top: 6px solid #F3151A !important;
}
/* Filled green map pins for Greater Kota Kinabalu */
.service-areas .service-area-group:first-child .service-area-list li:before {
  background: #16865A;
  border-color: #16865A;
  box-shadow: 0 0 0 1px rgba(22,134,90,.08);
}
/* Filled red map pins for Other Sabah Districts */
.service-areas .service-area-group:last-child .service-area-list li:before {
  background: #F3151A;
  border-color: #F3151A;
  box-shadow: 0 0 0 1px rgba(243,21,26,.08);
}


/* BT footer office map — desktop/mobile implementation */
.site-footer .footer-office{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:34px;align-items:center;padding-top:22px;padding-bottom:30px;border-top:1px solid rgba(255,255,255,.18)}
.site-footer .footer-office-details{min-width:0}
.site-footer .footer-office h2{margin:0;color:#fff;font-size:22px;line-height:1.35}
.site-footer .footer-office-accent{display:block;width:48px;height:4px;margin:10px 0 18px;border-radius:3px;background:#40A275}
.site-footer .footer-office-address{margin:0 0 20px;color:#fff;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.site-footer .footer-directions{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 16px;border:2px solid #40A275;border-radius:9px;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:14px;font-weight:800;line-height:1.35;text-align:center;text-decoration:none;transition:background .2s ease,border-color .2s ease}
.site-footer .footer-directions:hover,.site-footer .footer-directions:focus-visible{background:rgba(64,162,117,.18);border-color:#65d6a1}
.site-footer .footer-directions-icon{font-size:18px}
.site-footer .footer-office-map{width:100%;min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.22);border-radius:13px;background:#e9efeb;box-shadow:0 8px 22px rgba(0,0,0,.16);aspect-ratio:1.85/1}
.site-footer .footer-office-map iframe{display:block;width:100%;height:100%;min-height:260px;border:0}
.site-footer .footer-contact-address{display:flex;align-items:flex-start;gap:7px}
.site-footer .footer-contact-address>span:first-child{flex:0 0 auto}
@media screen and (max-width:780px){
.site-footer .footer-office{grid-template-columns:minmax(0,1fr);gap:18px;padding-top:24px;padding-bottom:26px}
.site-footer .footer-office h2{font-size:20px}
.site-footer .footer-office-accent{margin-bottom:14px}
.site-footer .footer-office-address{font-size:14px;margin-bottom:16px}
.site-footer .footer-directions{display:flex;width:100%;min-height:48px;padding:10px 12px}
.site-footer .footer-office-map{aspect-ratio:1.65/1}
.site-footer .footer-office-map iframe{min-height:220px}
}


/* BT footer final refinement: clean headings, prominent-but-secondary SIPMA logo */
.site-footer .footer-main {
  grid-template-columns: 1.28fr .78fr .88fr 1.18fr .72fr;
  gap: 24px;
}
.site-footer .footer-social-column {
  min-width: 0;
  border-left: 1px solid rgba(64,162,117,.38);
  padding-left: 24px;
  align-self: stretch;
}
.site-footer .footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.site-footer .footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.site-footer .footer-social-links a:hover,
.site-footer .footer-social-links a:focus-visible {
  background: #40A275;
  border-color: #40A275;
  transform: translateY(-2px);
}
.site-footer .footer-social-links a:focus-visible {
  outline: 3px solid #F3151A;
  outline-offset: 3px;
}
.site-footer .footer-social-links svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.site-footer .footer-sipma-under-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid rgba(64,162,117,.38);
}
.site-footer .footer-sipma-logo {
  display: block;
  width: 154px;
  max-width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  opacity: .94;
}
.site-footer .footer-brand-accent,
.site-footer .footer-office-accent {
  display: none !important;
}
.site-footer .footer-bottom {
  align-items: center;
  padding-right: 170px;
  box-sizing: border-box;
}
.site-footer .footer-bottom > * {
  position: relative;
  z-index: 2;
}
@media screen and (max-width: 1150px) {
  .site-footer .footer-main {
    grid-template-columns: 1.15fr .8fr .9fr 1.1fr;
    gap: 22px;
  }
  .site-footer .footer-social-column {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(64,162,117,.38);
    padding: 18px 0 0;
  }
  .site-footer .footer-sipma-logo {
    width: 154px;
  }
}
@media screen and (max-width: 780px) {
  .site-footer .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .site-footer .footer-social-column {
    grid-column: auto;
    border-left: 0;
    border-top: 1px solid rgba(64,162,117,.38);
    padding: 18px 0 0;
  }
  .site-footer .footer-social-links {
    gap: 14px;
    margin-top: 12px;
  }
  .site-footer .footer-social-links a {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
  .site-footer .footer-social-links svg {
    width: 24px;
    height: 24px;
  }
  .site-footer .footer-sipma-under-social {
    margin-top: 14px;
    padding-top: 12px;
  }
  .site-footer .footer-sipma-logo {
    width: 150px;
    max-height: 70px;
  }
  .site-footer .footer-bottom {
    padding-right: 0;
    padding-bottom: 78px;
    gap: 10px;
    align-items: flex-start;
  }
}
@media screen and (max-width: 480px) {
  .site-footer .footer-bottom {
    padding-bottom: 84px;
  }
}


/* Final user-requested refinement: SIPMA logo +30%; recognizable social-brand icons */
.site-footer .footer-sipma-logo {
  width: 200px !important;
  max-width: 100% !important;
  max-height: 94px !important;
  height: auto !important;
  object-fit: contain !important;
}
.site-footer .footer-social-links a {
  width: 46px !important;
  height: 46px !important;
  flex-basis: 46px !important;
}
.site-footer .footer-social-links svg {
  width: 27px !important;
  height: 27px !important;
}
@media screen and (max-width: 780px) {
  .site-footer .footer-sipma-logo {
    width: 195px !important;
    max-height: 92px !important;
  }
  .site-footer .footer-social-links a {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
  }
  .site-footer .footer-social-links svg {
    width: 27px !important;
    height: 27px !important;
  }
}



/* Approved BT footer layout: five balanced columns, brand social icons, enlarged SIPMA logo */
.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr) minmax(0, .86fr) minmax(0, 1.25fr) minmax(0, 1.05fr);
  gap: 0;
  align-items: stretch;
}
.site-footer .footer-main > .footer-brand-column,
.site-footer .footer-main > .footer-explore-column,
.site-footer .footer-main > .footer-knowledge-column,
.site-footer .footer-main > .footer-contact-column,
.site-footer .footer-main > .footer-social-column {
  min-width: 0;
  box-sizing: border-box;
}
.site-footer .footer-main > .footer-brand-column {
  padding-right: 24px;
}
.site-footer .footer-main > .footer-explore-column,
.site-footer .footer-main > .footer-knowledge-column,
.site-footer .footer-main > .footer-contact-column,
.site-footer .footer-main > .footer-social-column {
  border-left: 1px solid rgba(255,255,255,.28);
  padding-left: 24px;
  padding-right: 20px;
}
.site-footer .footer-main h3 {
  margin-top: 0;
  margin-bottom: 14px;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}
.site-footer .footer-main ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .footer-main li {
  margin: 0 0 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.site-footer .footer-social-column {
  display: block;
}
.site-footer .footer-social-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.site-footer .footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
}
.site-footer .footer-social-links a:hover,
.site-footer .footer-social-links a:focus-visible {
  transform: translateY(-2px);
  opacity: .88;
}
.site-footer .footer-social-links a:focus-visible {
  outline: 3px solid #40A275;
  outline-offset: 3px;
}
.site-footer .footer-social-links svg {
  display: block;
  width: 46px;
  height: 46px;
  overflow: visible;
}
.site-footer .footer-sipma-under-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.28);
}
.site-footer .footer-sipma-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  opacity: .98;
}
.site-footer .footer-brand-accent,
.site-footer .footer-office-accent {
  display: none !important;
}
.site-footer .footer-office {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 34px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(64,162,117,.5);
}
.site-footer .footer-office h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 28px;
  line-height: 1.25;
}
.site-footer .footer-office-address {
  margin: 0 0 24px;
  color: #fff;
  font-size: 17px;
  line-height: 1.55;
}
.site-footer .footer-directions {
  display: inline-flex;
  width: auto;
  min-height: 56px;
  padding: 12px 20px;
  border: 2px solid #00C995;
  border-radius: 10px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.site-footer .footer-directions:hover,
.site-footer .footer-directions:focus-visible {
  background: rgba(0,201,149,.12);
  border-color: #00C995;
}
.site-footer .footer-office-map {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.85 / 1;
  overflow: hidden;
  border-radius: 14px;
}
.site-footer .footer-office-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-right: 190px;
  border-top: 1px solid rgba(64,162,117,.5);
  box-sizing: border-box;
}
.site-footer .footer-bottom > span {
  min-width: 0;
}
.site-footer .footer-bottom a {
  white-space: nowrap;
}
@media screen and (max-width: 1180px) {
  .site-footer .footer-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.2fr);
    row-gap: 28px;
  }
  .site-footer .footer-main > .footer-social-column {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.28);
    padding: 20px 0 0;
  }
  .site-footer .footer-sipma-logo {
    width: 220px;
  }
}
@media screen and (max-width: 780px) {
  .site-footer .footer-main {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
  .site-footer .footer-main > .footer-brand-column,
  .site-footer .footer-main > .footer-explore-column,
  .site-footer .footer-main > .footer-knowledge-column,
  .site-footer .footer-main > .footer-contact-column,
  .site-footer .footer-main > .footer-social-column {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.2);
    padding: 18px 0 0;
  }
  .site-footer .footer-main > .footer-brand-column {
    border-top: 0;
    padding-top: 0;
  }
  .site-footer .footer-social-links {
    flex-wrap: nowrap;
    gap: 14px;
  }
  .site-footer .footer-social-links a,
  .site-footer .footer-social-links svg {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
  .site-footer .footer-sipma-logo {
    width: 200px;
    max-height: 90px;
  }
  .site-footer .footer-office {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .site-footer .footer-office h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }
  .site-footer .footer-office-address {
    font-size: 16px;
    margin-bottom: 18px;
  }
  .site-footer .footer-directions {
    display: flex;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
  }
  .site-footer .footer-office-map {
    aspect-ratio: 1.45 / 1;
  }
  .site-footer .footer-office-map iframe {
    min-height: 250px;
  }
  .site-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    padding-right: 0;
    padding-bottom: 88px;
  }
  .site-footer .footer-bottom a {
    white-space: normal;
  }
}


/* Latest staging refinement: increase Facebook, Instagram and TikTok icons by 30% */
.site-footer .footer-social-links a {
  width: 60px !important;
  height: 60px !important;
  flex-basis: 60px !important;
}
.site-footer .footer-social-links svg {
  width: 60px !important;
  height: 60px !important;
}
@media screen and (max-width: 780px) {
  .site-footer .footer-social-links a {
    width: 60px !important;
    height: 60px !important;
    flex-basis: 60px !important;
  }
  .site-footer .footer-social-links svg {
    width: 60px !important;
    height: 60px !important;
  }
}


/* Latest refinement: reduce social media icons by 15% from 60px to 51px */
.site-footer .footer-social-links a {
  width: 51px !important;
  height: 51px !important;
  flex-basis: 51px !important;
}
.site-footer .footer-social-links svg {
  width: 51px !important;
  height: 51px !important;
}
@media screen and (max-width: 780px) {
  .site-footer .footer-social-links a {
    width: 51px !important;
    height: 51px !important;
    flex-basis: 51px !important;
  }
  .site-footer .footer-social-links svg {
    width: 51px !important;
    height: 51px !important;
  }
}


/* Latest refinement: reduce social media icons another 15% (51px -> 43.35px) */
.site-footer .footer-social-links a {
  width: 43px !important;
  height: 43px !important;
  flex-basis: 43px !important;
}
.site-footer .footer-social-links svg {
  width: 43px !important;
  height: 43px !important;
}
@media screen and (max-width: 780px) {
  .site-footer .footer-social-links a {
    width: 43px !important;
    height: 43px !important;
    flex-basis: 43px !important;
  }
  .site-footer .footer-social-links svg {
    width: 43px !important;
    height: 43px !important;
  }
}


/* Footer Industries link: keep the target heading comfortably visible after scrolling. */
#industries {
  scroll-margin-top: 24px;
}

/* ================================================================
   BT KNOWLEDGE HUB — responsive article-feed presentation
   Additive overrides only. Existing site-wide styling is preserved.
   This styles standard WordPress Query Loop / Gutenberg post cards.
   A custom hero and category-filter functionality require PHP/template
   markup and are intentionally not simulated with CSS alone.
   ================================================================ */
body.page-id-29 .entry-content,
body.page-template-page-knowledge-hub .entry-content {
  width: min(1240px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 42px 0 54px;
}
body.page-id-29 .entry-content > h1:first-child,
body.page-template-page-knowledge-hub .entry-content > h1:first-child {
  margin: 0 0 10px;
  color: #171817;
  font-family: 'Poppins','Inter',sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
body.page-id-29 .entry-content > p:first-of-type,
body.page-template-page-knowledge-hub .entry-content > p:first-of-type {
  max-width: 760px;
  color: #52605A;
  font-size: 17px;
  line-height: 1.7;
}
/* Gutenberg Query Loop: grid of clickable article cards */
body.page-id-29 .entry-content .wp-block-query .wp-block-post-template,
body.page-template-page-knowledge-hub .entry-content .wp-block-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
body.page-id-29 .entry-content .wp-block-post,
body.page-template-page-knowledge-hub .entry-content .wp-block-post {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid #dfe9e4;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,45,34,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}
body.page-id-29 .entry-content .wp-block-post:hover,
body.page-template-page-knowledge-hub .entry-content .wp-block-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,45,34,.11);
}
body.page-id-29 .entry-content .wp-block-post-featured-image,
body.page-template-page-knowledge-hub .entry-content .wp-block-post-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  background: #edf4ef;
}
body.page-id-29 .entry-content .wp-block-post-featured-image a,
body.page-template-page-knowledge-hub .entry-content .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}
body.page-id-29 .entry-content .wp-block-post-featured-image img,
body.page-template-page-knowledge-hub .entry-content .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform .3s ease;
}
body.page-id-29 .entry-content .wp-block-post:hover .wp-block-post-featured-image img,
body.page-template-page-knowledge-hub .entry-content .wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.035);
}
body.page-id-29 .entry-content .wp-block-post-title,
body.page-template-page-knowledge-hub .entry-content .wp-block-post-title {
  margin: 14px 16px 8px;
  color: #171817;
  font-family: 'Poppins','Inter',sans-serif;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.015em;
}
body.page-id-29 .entry-content .wp-block-post-title a,
body.page-template-page-knowledge-hub .entry-content .wp-block-post-title a {
  color: #171817;
  text-decoration: none;
}
body.page-id-29 .entry-content .wp-block-post-title a:hover,
body.page-template-page-knowledge-hub .entry-content .wp-block-post-title a:hover {
  color: #28734F;
}
body.page-id-29 .entry-content .wp-block-post-date,
body.page-template-page-knowledge-hub .entry-content .wp-block-post-date {
  margin: 0 16px 8px;
  color: #64716d;
  font-size: 12px;
}
body.page-id-29 .entry-content .wp-block-post-excerpt,
body.page-template-page-knowledge-hub .entry-content .wp-block-post-excerpt {
  margin: 0 16px 16px;
  color: #52605A;
  font-size: 14px;
  line-height: 1.6;
}
body.page-id-29 .entry-content .wp-block-post-excerpt__more-link,
body.page-template-page-knowledge-hub .entry-content .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 8px;
  color: #28734F;
  font-weight: 800;
}
body.page-id-29 .entry-content .wp-block-query-pagination,
body.page-template-page-knowledge-hub .entry-content .wp-block-query-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
}
body.page-id-29 .entry-content .wp-block-query-pagination a,
body.page-id-29 .entry-content .wp-block-query-pagination span,
body.page-template-page-knowledge-hub .entry-content .wp-block-query-pagination a,
body.page-template-page-knowledge-hub .entry-content .wp-block-query-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #dfe9e4;
  border-radius: 8px;
  color: #173d30;
  background: #fff;
  font-weight: 700;
}
body.page-id-29 .entry-content .wp-block-query-pagination .current,
body.page-template-page-knowledge-hub .entry-content .wp-block-query-pagination .current {
  background: #00634b;
  border-color: #00634b;
  color: #fff;
}
body.page-id-29 .entry-content .wp-block-query-pagination a:hover,
body.page-template-page-knowledge-hub .entry-content .wp-block-query-pagination a:hover {
  border-color: #40A275;
  color: #28734F;
}
@media (max-width: 900px) {
  body.page-id-29 .entry-content .wp-block-query .wp-block-post-template,
  body.page-template-page-knowledge-hub .entry-content .wp-block-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (max-width: 640px) {
  body.page-id-29 .entry-content,
  body.page-template-page-knowledge-hub .entry-content {
    width: calc(100% - 30px);
    padding-top: 30px;
    padding-bottom: 38px;
  }
  body.page-id-29 .entry-content .wp-block-query .wp-block-post-template,
  body.page-template-page-knowledge-hub .entry-content .wp-block-query .wp-block-post-template {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    margin-top: 22px;
  }
  body.page-id-29 .entry-content .wp-block-post-title,
  body.page-template-page-knowledge-hub .entry-content .wp-block-post-title {
    margin: 13px 14px 7px;
    font-size: 18px;
  }
  body.page-id-29 .entry-content .wp-block-post-date,
  body.page-template-page-knowledge-hub .entry-content .wp-block-post-date {
    margin-right: 14px;
    margin-left: 14px;
  }
  body.page-id-29 .entry-content .wp-block-post-excerpt,
  body.page-template-page-knowledge-hub .entry-content .wp-block-post-excerpt {
    margin-right: 14px;
    margin-left: 14px;
    font-size: 14px;
  }
}
/* BT Knowledge Hub page — isolated styles; does not alter other page layouts. */
.bt-knowledge-hub {
  --bt-kh-green: #006b4f;
  --bt-kh-dark: #003d32;
  --bt-kh-red: #f3151a;
  --bt-kh-ink: #171817;
  --bt-kh-muted: #626b68;
  --bt-kh-border: #e3e8e5;
  color: var(--bt-kh-ink);
  background: #fff;
}
.bt-knowledge-hub * { box-sizing: border-box; }
.bt-kh-hero { background: #f1f7f3; overflow: hidden; }
.bt-kh-hero-inner {
  max-width: 1240px; min-height: 300px; margin: 0 auto; padding: 44px 28px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  align-items: center; gap: 34px;
}
.bt-kh-hero-copy { padding: 10px 0; }
.bt-kh-eyebrow {
  margin: 0 0 12px; color: var(--bt-kh-green); font-size: 13px;
  font-weight: 800; letter-spacing: .12em; line-height: 1.4;
}
.bt-kh-hero h1 {
  max-width: 680px; margin: 0 0 14px; color: var(--bt-kh-ink);
  font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em;
}
.bt-kh-hero h1 span { color: var(--bt-kh-green); }
.bt-kh-hero-copy > p:last-child {
  max-width: 620px; margin: 0; color: #4f5c57; font-size: 17px; line-height: 1.65;
}
.bt-kh-hero-image {
  min-height: 220px; width: 100%; border-radius: 16px;
  background-color: #dce7df;
  background-image: linear-gradient(90deg, rgba(241,247,243,.08), rgba(241,247,243,0)), url('../assets/knowledge-hub-cockroach.jpg');
  background-position: center; background-size: cover;
}
/* If the optional hero asset has not been uploaded, keep a calm neutral surface. */
.bt-kh-content { max-width: 1240px; margin: 0 auto; padding: 30px 28px 56px; }
.bt-kh-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 38px; }
.bt-kh-filter {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 9px 16px; border: 1px solid #d8dfdb; border-radius: 999px;
  color: #242b28; background: #fff; text-decoration: none; font-size: 13px;
  font-weight: 650; line-height: 1.2; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.bt-kh-filter:hover, .bt-kh-filter:focus-visible, .bt-kh-filter.is-active {
  color: #fff; background: var(--bt-kh-dark); border-color: var(--bt-kh-dark);
}
.bt-kh-page-intro { margin: 0 0 34px; }
.bt-kh-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 0 0 22px; }
.bt-kh-section-heading .bt-kh-eyebrow { margin-bottom: 7px; }
.bt-kh-section-heading h2 { margin: 0 0 9px; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.bt-kh-section-heading p:last-child { max-width: 760px; margin: 0; color: var(--bt-kh-muted); line-height: 1.65; }
.bt-kh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.bt-kh-card {
  min-width: 0; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--bt-kh-border); border-radius: 10px; background: #fff;
  box-shadow: 0 3px 12px rgba(12, 42, 31, .045); transition: transform .18s ease, box-shadow .18s ease;
}
.bt-kh-card:hover { transform: translateY(-3px); box-shadow: 0 9px 25px rgba(12, 42, 31, .10); }
.bt-kh-card-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9efeb; }
.bt-kh-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.bt-kh-card:hover .bt-kh-card-image img { transform: scale(1.025); }
.bt-kh-card-category {
  position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px);
  padding: 6px 9px; border-radius: 4px; background: var(--bt-kh-green); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .045em; line-height: 1.2; text-transform: uppercase;
}
.bt-kh-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #e7f0e9, #c9ded3); }
.bt-kh-image-placeholder span { color: var(--bt-kh-green); font-size: 44px; font-weight: 900; letter-spacing: -.08em; }
.bt-kh-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 17px 17px 18px; }
.bt-kh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; color: #68716d; font-size: 12px; line-height: 1.4; }
.bt-kh-card h3 { margin: 0 0 9px; font-size: 19px; line-height: 1.3; letter-spacing: -.015em; }
.bt-kh-card h3 a { color: var(--bt-kh-ink); text-decoration: none; }
.bt-kh-card h3 a:hover { color: var(--bt-kh-green); }
.bt-kh-excerpt { margin: 0 0 17px; color: #59625e; font-size: 14px; line-height: 1.55; }
.bt-kh-read-more { margin-top: auto; color: var(--bt-kh-green); font-size: 13px; font-weight: 800; text-decoration: none; }
.bt-kh-read-more:hover { text-decoration: underline; }
.bt-kh-pagination { display: flex; justify-content: center; margin: 34px 0 0; }
.bt-kh-pagination .page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.bt-kh-pagination ul.page-numbers { display: flex; }
.bt-kh-pagination li { list-style: none; }
.bt-kh-pagination a, .bt-kh-pagination span {
  display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center;
  padding: 7px 11px; border: 1px solid var(--bt-kh-border); border-radius: 7px;
  color: var(--bt-kh-ink); background: #fff; text-decoration: none; font-weight: 700;
}
.bt-kh-pagination .current, .bt-kh-pagination a:hover { color: #fff; border-color: var(--bt-kh-dark); background: var(--bt-kh-dark); }
.bt-kh-empty { padding: 36px; border: 1px solid var(--bt-kh-border); border-radius: 12px; background: #f7faf8; }
.bt-kh-empty h2 { margin-top: 0; }
.bt-kh-cta {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  margin-top: 44px; padding: 24px 28px; border-radius: 12px; background: #f0f7f2;
}
.bt-kh-cta-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bt-kh-dark); color: #fff; font-size: 25px; font-weight: 800; }
.bt-kh-cta h2 { margin: 0 0 5px; font-size: 21px; line-height: 1.25; }
.bt-kh-cta p { margin: 0; color: #53615b; line-height: 1.5; }
.bt-kh-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; border-radius: 7px; background: var(--bt-kh-red); color: #fff; text-decoration: none; font-weight: 800; white-space: nowrap; }
.bt-kh-cta-button:hover { background: #d90e13; color: #fff; }
@media (max-width: 900px) {
  .bt-kh-hero-inner { grid-template-columns: 1fr .75fr; gap: 22px; min-height: 260px; }
  .bt-kh-hero-image { min-height: 190px; }
  .bt-kh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 620px) {
  .bt-kh-hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 34px 20px 24px; }
  .bt-kh-hero h1 { font-size: clamp(30px, 8vw, 39px); }
  .bt-kh-hero-copy > p:last-child { font-size: 15px; }
  .bt-kh-hero-image { min-height: 175px; border-radius: 12px; }
  .bt-kh-content { padding: 24px 18px 38px; }
  .bt-kh-filters { flex-wrap: nowrap; overflow-x: auto; padding: 0 0 8px; margin-bottom: 28px; scrollbar-width: thin; }
  .bt-kh-filter { flex: 0 0 auto; min-height: 38px; padding: 9px 13px; }
  .bt-kh-section-heading h2 { font-size: 27px; }
  .bt-kh-grid { grid-template-columns: 1fr; gap: 18px; }
  .bt-kh-card h3 { font-size: 19px; }
  .bt-kh-cta { grid-template-columns: 44px minmax(0, 1fr); gap: 13px; padding: 20px; }
  .bt-kh-cta-icon { width: 42px; height: 42px; font-size: 20px; }
  .bt-kh-cta h2 { font-size: 19px; }
  .bt-kh-cta-button { grid-column: 1 / -1; justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-knowledge-hub *, .bt-knowledge-hub *::before, .bt-knowledge-hub *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* BT Knowledge Hub — hero image */
.bt-knowledge-hub .bt-kh-hero-image {
    background-image: url("https://staging.btpest.my/wp-content/uploads/2026/10/bt-dead-cockroaches.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


