
:root{--orange:#ff6b0f;--orange2:#ff8b2b;--blue:#073b88;--green:#159447;--text:#111827;--muted:#64748b;--soft:#fff7ef;--line:#e8edf5;--shadow:0 18px 50px rgba(15,23,42,.09);--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Noto Sans Thai",system-ui,sans-serif;color:var(--text);background:#fff}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}.container{width:min(1220px,94vw);margin:auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid #eef2f6}.nav-row{display:flex;align-items:center;gap:22px;min-height:96px}.brand img{height:78px;width:auto;max-width:100%}.nav{display:flex;gap:18px;margin-left:auto;align-items:center}.nav a{font-weight:800;font-size:14px;color:#20242c;position:relative;padding:8px 0}.nav a:hover,.nav a.active{color:var(--orange)}.nav a.active:after,.nav a:hover:after{content:"";position:absolute;left:0;right:0;bottom:-10px;height:3px;border-radius:99px;background:var(--orange)}.menu-toggle{display:none;background:#fff;border:1px solid #ddd;border-radius:10px;font-size:24px;padding:5px 10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:14px;border:1px solid transparent;font-weight:900;cursor:pointer;transition:.2s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,var(--orange),#ff8f35);color:#fff;box-shadow:0 13px 26px rgba(255,107,15,.25)}.btn-outline{background:#fff;border-color:#ffbf94;color:var(--orange)}.btn-blue{background:linear-gradient(135deg,#0b4aa2,#0d70d4);color:#fff}.btn-green{background:linear-gradient(135deg,#159447,#32bb64);color:#fff}.btn-ghost{background:#fff;color:#0d3979;border-color:#c9d7eb}.hero{position:relative;min-height:610px;overflow:hidden;background:#f8fafc}.hero-img{position:absolute;inset:0}.hero-img img{width:100%;height:100%;object-fit:cover;object-position:72% center;transform:scale(1.12);transform-origin:center;filter:brightness(.88) contrast(1.04) saturate(1.02)}.hero-fade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.90) 0%,rgba(255,255,255,.72) 16%,rgba(255,255,255,.46) 30%,rgba(255,255,255,.34) 42%,rgba(255,255,255,.18) 58%,rgba(255,255,255,.06) 72%,rgba(255,255,255,0) 84%)}.hero-content{position:relative;z-index:2;min-height:610px;display:flex;align-items:center}.hero-copy{max-width:700px;padding:34px 36px 36px;background:linear-gradient(135deg,rgba(255,255,255,.44),rgba(255,255,255,.22));border:1px solid rgba(255,255,255,.55);border-left:6px solid rgba(35,151,80,.70);border-radius:30px;box-shadow:0 18px 48px rgba(15,23,42,.12);backdrop-filter:blur(7px)}.pill{display:inline-flex;align-items:center;gap:8px;background:#f1fbf4;border:1px solid #bfe7c9;color:#17733d;border-radius:999px;padding:9px 14px;font-weight:900}.hero h1{font-size:clamp(42px,6vw,86px);line-height:1.03;margin:18px 0 14px;font-weight:900;letter-spacing:-.04em;color:#d87416;-webkit-text-stroke:1px rgba(57,153,84,.38);text-shadow:0 0 6px rgba(73,172,101,.26),0 0 16px rgba(73,172,101,.18),0 3px 10px rgba(255,255,255,.86),0 10px 26px rgba(15,23,42,.10)}.hero h1 span{color:#d87416;-webkit-text-stroke:1px rgba(57,153,84,.38);text-shadow:0 0 6px rgba(73,172,101,.26),0 0 16px rgba(73,172,101,.18),0 3px 10px rgba(255,255,255,.86),0 8px 22px rgba(216,116,22,.14)}.hero p{font-size:18px;line-height:1.75;color:#5d6675;max-width:600px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.hero-card{position:absolute;right:8%;bottom:42px;z-index:3;background:#fff;border-radius:24px;padding:18px 22px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow);max-width:390px}.hero-card i{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:#eef9ef;font-style:normal;font-size:28px}.hero-card b{font-size:25px}.hero-card p{margin:3px 0 0;color:#697386;line-height:1.5}.section{padding:58px 0}.section.alt{background:#f8fafc}.section-head{text-align:center;margin-bottom:28px}.section-head h2{font-size:34px;margin:0;font-weight:900}.section-head p{color:var(--muted);max-width:840px;margin:10px auto 0;line-height:1.7}.section-title{display:flex;align-items:center;gap:12px;margin:0 0 18px}.section-title h2{font-size:30px;margin:0;font-weight:900}.section-title:before,.section-title:after{content:"";height:4px;width:48px;border-radius:99px;background:linear-gradient(90deg,#ffd1ad,var(--orange))}.promo-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:20px}.promo-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}.promo-card .cover{height:230px;background:#e8f1fb;overflow:hidden}.promo-card .cover img{width:100%;height:100%;object-fit:cover}.promo-card .content{padding:22px}.promo-card h3{font-size:28px;margin:0 0 8px}.promo-card p{color:var(--muted);line-height:1.7}.promo-card.big{grid-row:span 2}.promo-card.big .cover{height:420px}.badge{display:inline-flex;background:#fff0e6;color:var(--orange);border-radius:999px;padding:6px 12px;font-weight:900;margin-bottom:10px}.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.service-card,.info-card,.package-card,.table-card,.gallery-card,.contact-card,.tool-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.service-card{padding:24px}.service-card i{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:#fff2e7;font-style:normal;font-size:32px;margin-bottom:14px}.service-card h3{margin:0 0 8px;font-size:22px}.service-card p{color:var(--muted);line-height:1.7;margin:0}.split{display:grid;grid-template-columns:1.05fr .95fr;gap:24px}.info-card{padding:26px}.info-card h2{font-size:34px;margin:8px 0}.info-card p{color:var(--muted);line-height:1.75}.feature-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}.feature-list div{padding:13px;border-radius:16px;background:#fff8f2;border:1px solid #ffe0c6;font-weight:800}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tool-card{padding:22px}.tool-card h3{font-size:23px;margin:0 0 8px}.tool-card p{color:var(--muted);line-height:1.6}.table-card{padding:24px}.table-card h2{font-size:30px;margin:0 0 8px}.table-card .table-note{color:var(--muted);line-height:1.7}.table-scroll{overflow:auto;border-radius:18px;border:1px solid #dce6f2;margin-top:18px}table{width:100%;border-collapse:collapse;min-width:900px;background:#fff}th{background:#073b88;color:#fff;padding:13px 12px;font-size:15px}td{padding:12px;border-bottom:1px solid #e6edf4;text-align:center;font-weight:700}tbody tr:nth-child(even){background:#f8fbff}.price{color:#e4241f!important;font-weight:900}.save{color:#119343!important;font-weight:900}.hybrid-table{min-width:1260px}.warranty-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.warranty-row div{background:#fff8f2;border:1px solid #ffdfc6;border-radius:18px;padding:18px;text-align:center}.warranty-row b,.warranty-row strong{display:block;color:var(--orange);font-size:32px}.finance-banner{background:linear-gradient(135deg,#fff3e8,#eaf4ff);border:1px solid #ffd8b7;border-radius:28px;padding:32px;display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center;box-shadow:var(--shadow)}.finance-banner h1{font-size:46px;margin:0 0 10px}.finance-banner p{line-height:1.8;color:#5a6575}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.gallery-card{overflow:hidden}.gallery-card img{height:220px;width:100%;object-fit:cover}.gallery-card div{padding:16px}.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}.contact-card{padding:28px}.contact-card h1{font-size:42px;margin:0 0 12px}.big-phone{font-size:42px;font-weight:900;color:var(--orange);margin:8px 0}.site-footer{background:#121926;color:#fff;padding:42px 0 18px}.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .9fr .8fr;gap:26px}.footer-brand img{height:60px;background:#fff;border-radius:10px;padding:4px}.site-footer p{color:#d7dee9;line-height:1.7}.site-footer a{color:#fff}.site-footer h3{color:#ffb06b}.footer-bottom{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.12);padding-top:15px;margin-top:22px;color:#abb6c7}.subhero{background:linear-gradient(135deg,#fff7ef,#f0f7ff);padding:56px 0;border-bottom:1px solid #edf1f6}.subhero h1{font-size:52px;margin:0 0 10px}.subhero p{color:var(--muted);line-height:1.7;max-width:860px}.package-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.package-card{padding:22px}.package-card h3{font-size:42px;color:var(--orange);margin:0}.package-card ul{color:#596576;line-height:1.8;padding-left:20px}.package-card .pack-price{font-size:28px;color:#e4241f;font-weight:900}.contact-strip{background:#fff;border:1px solid #ffdfc6;border-radius:22px;padding:22px;margin-top:22px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:var(--shadow)}@media(max-width:1050px){.nav{display:none}.menu-toggle{display:block;margin-left:auto}.nav.open{display:flex;position:absolute;left:14px;right:14px;top:76px;background:#fff;border:1px solid #edf1f5;border-radius:18px;box-shadow:var(--shadow);padding:16px;flex-direction:column;align-items:flex-start}.nav-btn{display:none}.promo-grid,.split,.finance-banner,.contact-grid,.footer-grid{grid-template-columns:1fr}.service-grid,.quick-actions,.package-row,.gallery-grid{grid-template-columns:repeat(2,1fr)}.hero-card{position:static;margin:0 auto 22px}.hero-content{min-height:560px}.hero{min-height:560px}.hero-copy{padding-top:26px}.feature-list{grid-template-columns:1fr}.warranty-row{grid-template-columns:1fr}}@media(max-width:680px){.service-grid,.quick-actions,.package-row,.gallery-grid{grid-template-columns:1fr}.hero h1{font-size:40px}.hero p{font-size:16px}.hero-fade{background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.83),rgba(255,255,255,.25))}.hero-img img{transform:scale(1.22)}.promo-card.big .cover,.promo-card .cover{height:220px}.section{padding:42px 0}.subhero h1{font-size:38px}.finance-banner h1,.contact-card h1{font-size:34px}.big-phone{font-size:32px}}


/* ===== Footer UI Fix: one-line phone + premium layout ===== */
.site-footer.footer-premium{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,107,15,.18), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(13,112,212,.14), transparent 30%),
    linear-gradient(135deg,#111827 0%,#131b2a 48%,#0b1220 100%);
  color:#fff;
  padding:52px 0 20px;
}
.site-footer.footer-premium .footer-glow{
  position:absolute;
  inset:auto -120px -170px auto;
  width:420px;
  height:420px;
  border-radius:50%;
  background:rgba(255,107,15,.16);
  filter:blur(50px);
  pointer-events:none;
}
.site-footer.footer-premium .footer-grid{
  position:relative;
  display:grid;
  grid-template-columns:1.25fr 1.02fr 1.15fr .95fr;
  gap:18px;
  align-items:stretch;
}
.site-footer.footer-premium .footer-card{
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  padding:22px;
  box-shadow:0 18px 45px rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
}
.site-footer.footer-premium .footer-brand img{
  height:72px;
  width:auto;
  max-width:100%;
  background:#fff;
  border-radius:16px;
  padding:7px;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}
.site-footer.footer-premium p{
  color:#d8e0ee;
  line-height:1.75;
  margin:14px 0 0;
}
.site-footer.footer-premium h3{
  color:#ffb06b;
  margin:0 0 14px;
  font-size:22px;
  font-weight:900;
}
.footer-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.footer-badges span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:7px 11px;
  background:rgba(255,107,15,.13);
  border:1px solid rgba(255,176,107,.22);
  color:#ffd4b3;
  font-size:12px;
  font-weight:800;
}
.footer-phone,
.site-footer .big-phone{
  display:block;
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
  color:#fff!important;
  font-size:clamp(34px,3.25vw,58px);
  line-height:1;
  letter-spacing:-.035em;
  font-weight:900;
  margin:10px 0 18px;
  text-shadow:0 8px 24px rgba(255,107,15,.22);
}
.footer-meta{
  display:grid;
  gap:10px;
}
.footer-meta p{
  margin:0!important;
  display:grid;
  gap:3px;
  padding:12px 14px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
}
.footer-meta span{
  color:#ffb06b;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.footer-meta b{
  color:#fff;
  font-size:15px;
  font-weight:800;
  overflow-wrap:anywhere;
}
.facebook-link{
  display:block;
  color:#fff!important;
  font-size:clamp(18px,1.6vw,25px);
  line-height:1.35;
  font-weight:900;
  overflow-wrap:anywhere;
  background:rgba(13,112,212,.15);
  border:1px solid rgba(104,165,255,.18);
  border-radius:18px;
  padding:14px 16px;
}
.footer-quick-buttons{
  display:grid;
  gap:10px;
}
.footer-quick-buttons a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:48px;
  padding:0 16px;
  border-radius:16px;
  color:#fff!important;
  font-weight:900;
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.10);
  transition:.18s ease;
}
.footer-quick-buttons a::after{
  content:'›';
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg,var(--orange),#ff8f35);
  color:#fff;
  font-size:22px;
  line-height:1;
}
.footer-quick-buttons a:hover{
  transform:translateX(3px);
  background:rgba(255,107,15,.14);
  border-color:rgba(255,176,107,.32);
}
.site-footer.footer-premium .footer-bottom{
  position:relative;
  display:flex;
  justify-content:space-between;
  gap:18px;
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:18px;
  margin-top:24px;
  color:#abb6c7;
}
.site-footer.footer-premium .footer-bottom p{
  margin:0;
  color:#abb6c7;
}
@media(max-width:1050px){
  .site-footer.footer-premium .footer-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:680px){
  .site-footer.footer-premium{padding:36px 0 18px;}
  .site-footer.footer-premium .footer-grid{grid-template-columns:1fr;}
  .footer-phone,.site-footer .big-phone{font-size:38px;}
  .site-footer.footer-premium .footer-bottom{flex-direction:column;}
}


/* finance logos enhancement */
.finance-promo-card .content{display:flex;flex-direction:column;height:100%}
.lender-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0 6px}
.lender-mini{background:linear-gradient(180deg,#ffffff,#fff8f2);border:1px solid #ffe1c7;border-radius:16px;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:110px;box-shadow:0 8px 18px rgba(15,23,42,.05)}
.lender-mini img{width:100%;max-width:88px;height:48px;object-fit:contain}
.lender-mini span{font-weight:900;font-size:14px;color:#334155;text-align:center}
.lender-mini-grid-banner{margin-top:16px;max-width:620px}
.finance-note{margin-top:14px;padding:12px 14px;background:#fff7ef;border:1px solid #ffd6b3;border-radius:16px;color:#7a4d17;font-weight:700;line-height:1.6}
.finance-partners{margin-top:28px}
.partner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
.partner-card{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:24px;text-align:center}
.partner-logo-wrap{height:110px;border-radius:20px;background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid #e6eef8;display:flex;align-items:center;justify-content:center;padding:18px;margin-bottom:16px}
.partner-logo-wrap img{max-width:150px;max-height:72px;object-fit:contain}
.partner-card h3{margin:0 0 10px;font-size:24px}
.partner-card p{margin:0;color:var(--muted);line-height:1.75}
.partner-tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px}
.partner-tags span{display:inline-flex;padding:8px 12px;border-radius:999px;background:#fff4ea;border:1px solid #ffd8bc;color:#d96811;font-weight:800;font-size:13px}
.finance-bottom-cta{justify-content:center;margin-top:24px}
@media(max-width:1050px){.partner-grid{grid-template-columns:1fr}.lender-mini-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.lender-mini-grid{grid-template-columns:1fr}.partner-grid{grid-template-columns:1fr}}


/* homepage redesign */
.home-main-section{padding-top:52px}
.home-intro p{max-width:860px}
.home-feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;align-items:start}
.home-promo-card{background:#fff;border:1px solid #e6edf5;border-radius:34px;box-shadow:0 18px 50px rgba(15,23,42,.09);overflow:hidden;display:flex;flex-direction:column;min-height:100%}
.home-promo-large{grid-row:span 2}
.home-promo-visual{position:relative;background:#eef4fb;border-bottom:1px solid #edf2f7;padding:14px}
.home-promo-visual img{width:100%;height:360px;object-fit:cover;border-radius:24px}
.home-promo-visual.compact img{height:220px}
.home-promo-content{padding:28px 28px 30px;display:flex;flex-direction:column;gap:16px;flex:1}
.home-chip{display:inline-flex;align-self:flex-start;background:#fff0e6;color:var(--orange);border-radius:999px;padding:8px 16px;font-weight:900;font-size:15px}
.home-promo-content h3{margin:0;font-size:32px;line-height:1.25;font-weight:900;color:#0f172a}
.home-promo-content p{margin:0;color:#64748b;line-height:1.8;font-size:16px}
.home-mini-points{display:flex;flex-wrap:wrap;gap:10px}
.home-mini-points span{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border-radius:999px;background:#f8fbff;border:1px solid #dde8f6;color:#24446f;font-weight:800;font-size:14px}
.home-promo-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:auto}
.finance-style-card{background:linear-gradient(180deg,#fffaf5 0%,#ffffff 100%)}
.contact-style-card{background:linear-gradient(180deg,#ffffff 0%,#fffaf5 100%)}
.lender-showcase{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.lender-showcase-item{background:#fff;border:1px solid #ffe1c7;border-radius:20px;padding:14px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:122px;box-shadow:0 10px 20px rgba(15,23,42,.04)}
.lender-showcase-item img{max-width:96px;max-height:56px;object-fit:contain}
.lender-showcase-item span{font-size:14px;font-weight:900;color:#334155;text-align:center}
.contact-highlight-box{display:grid;gap:12px;background:#fff;border:1px solid #ffe0c8;border-radius:24px;padding:18px 20px}
.contact-highlight-box small{display:block;color:#8b6a45;font-weight:700;margin-bottom:4px}
.contact-highlight-box strong{display:block;font-size:30px;line-height:1.1;color:var(--orange);font-weight:900}
.contact-highlight-box b{display:block;color:#1e293b;font-size:16px;word-break:break-word}

@media(max-width:1050px){
  .home-feature-grid{grid-template-columns:1fr}
  .home-promo-large{grid-row:auto}
}
@media(max-width:680px){
  .home-promo-visual img{height:250px}
  .home-promo-visual.compact img{height:190px}
  .home-promo-content{padding:22px}
  .home-promo-content h3{font-size:28px}
  .lender-showcase{grid-template-columns:1fr}
  .contact-highlight-box strong{font-size:24px}
}


/* homepage compact adjustments */
.home-main-section{padding-top:30px;padding-bottom:24px}
.home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.home-promo-card{border-radius:30px;box-shadow:0 12px 34px rgba(15,23,42,.08)}
.home-promo-large{grid-row:auto}
.home-promo-visual{padding:12px}
.home-promo-visual img{height:300px;border-radius:22px}
.home-promo-content{padding:22px 22px 24px;gap:12px}
.home-promo-content h3{font-size:28px;line-height:1.22}
.home-promo-content p{font-size:15px;line-height:1.7}
.home-mini-points{gap:8px}
.home-mini-points span{padding:8px 12px;font-size:13px}
.home-promo-actions{gap:10px}
.lender-showcase{gap:10px}
.lender-showcase-item{min-height:110px;padding:12px 10px;border-radius:18px}
.contact-highlight-box{padding:16px 18px;border-radius:20px}
.contact-highlight-box strong{font-size:26px}
.section{padding:48px 0}
.section-head{margin-bottom:18px}
.section-head h2{margin-bottom:8px}
.quick-actions{gap:16px}
.tool-card{padding:22px}
.service-grid{gap:16px}
.service-card{padding:22px}
@media(max-width:1050px){
  .home-feature-grid{grid-template-columns:1fr}
  .home-promo-visual img{height:260px}
}
@media(max-width:680px){
  .section{padding:36px 0}
  .home-main-section{padding-top:22px}
  .home-promo-visual img{height:220px}
  .home-promo-content{padding:18px 18px 20px;gap:10px}
  .home-promo-content h3{font-size:25px}
}


/* service section visual refresh */
.energy-services{position:relative}
.service-grid-premium{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:stretch}
.premium-service-card{padding:0;overflow:hidden;border-radius:28px;box-shadow:0 16px 40px rgba(15,23,42,.08);display:flex;flex-direction:column;background:linear-gradient(180deg,#ffffff,#fdfefe)}
.service-card-media{position:relative;padding:14px 14px 0}
.service-card-media img{width:100%;height:220px;object-fit:cover;border-radius:22px}
.service-badge{position:absolute;left:28px;top:28px;display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border-radius:999px;background:rgba(7,59,136,.88);color:#fff;font-size:13px;font-weight:900;box-shadow:0 12px 22px rgba(7,59,136,.22)}
.service-card-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:10px;flex:1}
.service-card-body h3{margin:0;font-size:28px;line-height:1.2;color:#0f172a}
.service-card-body p{margin:0;color:#64748b;line-height:1.75;font-size:15px}
.service-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:6px}
.service-chip-row span{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:#f8fbff;border:1px solid #dbe8f7;color:#21456f;font-size:13px;font-weight:800}
.premium-service-card:hover{transform:translateY(-4px);transition:.2s ease;box-shadow:0 20px 44px rgba(15,23,42,.12)}

/* product showcase cards for on-grid / hybrid */
.product-showcase-card{padding:18px;display:flex;flex-direction:column;gap:18px}
.product-showcase-media{background:linear-gradient(180deg,#f8fbff,#fffaf5);border:1px solid #e6edf5;border-radius:24px;padding:12px}
.product-showcase-media img{width:100%;height:300px;object-fit:cover;border-radius:18px}
.product-showcase-content h2{margin:0 0 10px;font-size:30px;line-height:1.2}
.product-showcase-content p{margin:0;color:#64748b;line-height:1.75}
.product-points{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.product-points span{display:inline-flex;padding:10px 14px;border-radius:999px;background:#fff7ef;border:1px solid #ffd9ba;color:#c96416;font-weight:800;font-size:14px}

@media(max-width:1050px){
  .service-grid-premium{grid-template-columns:repeat(2,minmax(0,1fr))}
  .service-card-media img{height:200px}
  .product-showcase-media img{height:260px}
}
@media(max-width:680px){
  .service-grid-premium{grid-template-columns:1fr}
  .service-card-media{padding:12px 12px 0}
  .service-card-media img{height:215px}
  .service-card-body{padding:16px 16px 18px}
  .service-card-body h3{font-size:24px}
  .product-showcase-card{padding:14px}
  .product-showcase-media img{height:220px}
  .product-showcase-content h2{font-size:26px}
}

.admin-login-btn{border-color:#c9d7eb!important;color:#073b88!important;background:#fff!important}


.nav-admin-actions{display:flex;align-items:center;gap:10px}
.admin-nav-btn{border-color:#c9d7eb!important;color:#073b88!important;background:#fff!important}
.admin-nav-btn:hover{background:#f0f7ff!important;color:#ff6b0f!important}
@media(max-width:1050px){
  .nav-admin-actions{margin-left:auto}
  .nav-admin-actions .nav-btn{display:none}
}


/* Portfolio hover zoom */
.gallery-card{
  overflow:hidden;
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.gallery-card img{
  transition:transform .42s ease, filter .42s ease;
  transform-origin:center center;
}
.gallery-card:hover{
  transform:translateY(-6px) scale(1.025);
  box-shadow:0 24px 70px rgba(15,23,42,.16);
  border-color:#ffd2b3;
  z-index:2;
}
.gallery-card:hover img{
  transform:scale(1.16);
  filter:saturate(1.08) contrast(1.04);
}
@media (hover:none){
  .gallery-card:hover,
  .gallery-card:hover img{
    transform:none;
  }
}


/* Portfolio large hover preview - show image outside card */
.gallery-card{
  overflow:visible!important;
  cursor:zoom-in;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.gallery-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 60px rgba(15,23,42,.14);
  border-color:#ffd2b3;
}
.gallery-card:hover img{
  transform:none!important;
  filter:none!important;
}
.portfolio-hover-preview{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
  pointer-events:none;
  background:rgba(15,23,42,.42);
  backdrop-filter:blur(4px);
  padding:28px;
}
.portfolio-hover-preview.show{
  display:flex;
}
.portfolio-hover-preview img{
  width:auto;
  height:auto;
  max-width:min(92vw,1200px);
  max-height:86vh;
  object-fit:contain;
  border-radius:26px;
  box-shadow:0 32px 100px rgba(0,0,0,.34);
  border:6px solid rgba(255,255,255,.92);
  background:#fff;
}
@media (hover:none){
  .portfolio-hover-preview{display:none!important}
}

/* homepage natural clear text mobile */
@media(max-width:680px){.hero-copy{padding:24px 20px;border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.56),rgba(255,255,255,.30))}}


/* hero visual refinement */
.hero-copy{position:relative;overflow:hidden}
.hero-copy:before{
  content:"";
  position:absolute;
  inset:auto -10% -25% 28%;
  width:52%;
  height:65%;
  background:radial-gradient(circle, rgba(53,141,82,.12), rgba(53,141,82,0) 72%);
  pointer-events:none;
  filter:blur(6px);
}
.hero-copy > *{position:relative;z-index:1}


@media (max-width: 768px){.site-header .brand img{height:66px}.site-header .nav-row{min-height:88px}}


/* Homepage hero text + managing director integrated update */
.hero{
  min-height:680px;
  background:
    linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 43%,rgba(255,255,255,.62) 68%,rgba(255,255,255,.22) 100%),
    radial-gradient(circle at 78% 18%,rgba(21,148,71,.10),transparent 35%),
    linear-gradient(180deg,#f7fbf8 0%,#ffffff 72%);
}
.hero-img img{
  opacity:.18;
  object-position:80% center;
  filter:brightness(1.12) contrast(.96) saturate(.85);
}
.hero-fade{
  background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.92) 48%,rgba(255,255,255,.64) 72%,rgba(255,255,255,.25) 100%);
}
.hero-content{
  width:min(1220px,94vw);
  margin:auto;
  align-items:center;
  padding-right:min(38vw,470px);
}
.hero-copy{
  max-width:690px;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  backdrop-filter:none;
}
.hero-copy:before{display:none}
.hero h1{
  color:#0f5a2b!important;
  -webkit-text-stroke:0!important;
  text-shadow:0 4px 16px rgba(15,90,43,.10)!important;
  letter-spacing:-.045em;
  font-size:clamp(48px,6.4vw,88px);
}
.hero h1 span{
  color:#ff7a1a!important;
  -webkit-text-stroke:0!important;
  text-shadow:0 4px 16px rgba(255,122,26,.12)!important;
  margin-left:.12em;
}
.hero p{
  color:#3f4652;
  font-size:18px;
  max-width:620px;
}
.pill{
  background:#ffffff;
  border:1px solid #b7dfbd;
  color:#17733d;
  box-shadow:0 10px 24px rgba(21,148,71,.08);
}
.hero-benefits{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  max-width:660px;
  margin-top:26px;
}
.hero-benefits div{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:7px;
  color:#1b6236;
  font-weight:800;
  font-size:13px;
  line-height:1.45;
}
.hero-benefits i{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#f2fbf3;
  border:1px solid #cfead3;
  font-style:normal;
  font-size:27px;
}
.hero-manager-profile{
  position:absolute;
  z-index:4;
  right:7%;
  bottom:24px;
  width:min(360px,30vw);
  display:flex;
  flex-direction:column;
  align-items:center;
}
.manager-photo-wrap{
  width:100%;
  height:510px;
  overflow:hidden;
  border-radius:34px;
  background:linear-gradient(180deg,#ffffff 0%,#f4faf6 100%);
  border:1px solid #e1eee4;
  box-shadow:0 26px 70px rgba(15,23,42,.16);
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.manager-photo-wrap img{
  width:88%;
  height:100%;
  object-fit:cover;
  object-position:50% 12%;
}
.manager-namebox{
  width:92%;
  margin-top:-24px;
  padding:18px 20px;
  text-align:center;
  background:#fff;
  border:1px solid #e6edf5;
  border-left:5px solid #159447;
  border-radius:24px;
  box-shadow:0 18px 45px rgba(15,23,42,.13);
}
.manager-namebox h2{
  margin:0 0 6px;
  font-size:24px;
  line-height:1.2;
  color:#0f5a2b;
}
.manager-namebox p{
  margin:0;
  color:#526173;
  font-weight:800;
  font-size:14px;
  line-height:1.65;
}
.hero-card{
  display:none;
}
@media(max-width:1050px){
  .hero{min-height:auto;padding:48px 0}
  .hero-content{
    min-height:auto;
    padding-right:0;
    display:block;
  }
  .hero-manager-profile{
    position:relative;
    right:auto;
    bottom:auto;
    width:min(420px,92vw);
    margin:34px auto 0;
  }
  .manager-photo-wrap{height:560px}
  .hero-benefits{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:680px){
  .hero h1{font-size:42px}
  .hero-benefits{grid-template-columns:1fr 1fr;gap:10px}
  .hero-benefits div{font-size:12px}
  .hero-actions .btn{width:100%}
  .manager-photo-wrap{height:480px;border-radius:26px}
  .manager-namebox h2{font-size:22px}
}

/* --- homepage manager + clearer company image override (2026-06-28) --- */
.hero{
  min-height:760px;
}
.hero-img img{
  opacity:1 !important;
  object-position:78% center !important;
  transform:scale(1.08) !important;
  filter:brightness(.96) contrast(1.02) saturate(1.02) !important;
}
.hero-fade{
  background:linear-gradient(90deg,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.90) 16%,
    rgba(255,255,255,.76) 30%,
    rgba(255,255,255,.56) 42%,
    rgba(255,255,255,.28) 58%,
    rgba(255,255,255,.08) 74%,
    rgba(255,255,255,.00) 88%) !important;
}
.hero-content{
  min-height:760px;
  padding-right:min(29vw,390px);
}
.hero-copy{
  background:linear-gradient(135deg,rgba(255,255,255,.78),rgba(255,255,255,.58));
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 18px 48px rgba(15,23,42,.10);
}
.hero-manager-profile{
  right:7.4%;
  bottom:-10px;
  width:min(205px,17vw);
  align-items:center;
}
.manager-photo-wrap{
  position:relative;
  width:100%;
  height:auto !important;
  overflow:visible;
  border-radius:0;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  display:block;
  isolation:isolate;
}
.manager-photo-wrap::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:10%;
  width:78%;
  height:64%;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle at 50% 45%, rgba(21,148,71,.28) 0%, rgba(21,148,71,.18) 35%, rgba(255,126,24,.14) 62%, rgba(255,126,24,.00) 78%);
  filter:blur(20px);
  z-index:-1;
}
.manager-photo-wrap img{
  width:100%;
  height:auto !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  filter:drop-shadow(0 16px 24px rgba(15,23,42,.18));
}
.manager-namebox{
  width:100%;
  margin-top:-6px;
  padding:14px 16px;
  border-left:4px solid #159447;
  box-shadow:0 14px 32px rgba(15,23,42,.12);
  background:rgba(255,255,255,.96);
}
.manager-namebox h2{font-size:21px}
.manager-namebox p{font-size:12.8px;line-height:1.55}
@media(max-width:1050px){
  .hero{min-height:auto}
  .hero-content{min-height:auto;padding-right:0}
  .hero-manager-profile{position:relative;right:auto;bottom:auto;width:min(230px,60vw);margin:44px auto 0}
  .manager-namebox{margin-top:-12px}
}
@media(max-width:680px){
  .hero-fade{background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.88),rgba(255,255,255,.32)) !important;}
  .hero-manager-profile{width:min(210px,58vw)}
  .manager-namebox h2{font-size:20px}
}

/* ===== FINAL FIX: lock hero image size and manager size stable ===== */
/* แก้ภาพพื้นหลังขยับ/ขยายเองตอนกลับมาหน้าแรก */
.hero{
  height:760px !important;
  min-height:760px !important;
  max-height:760px !important;
  overflow:hidden !important;
}
.hero-img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  overflow:hidden !important;
}
.hero-img img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:72% center !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  will-change:auto !important;
  opacity:1 !important;
  filter:brightness(.98) contrast(1.02) saturate(1.02) !important;
}
.hero-fade{
  transition:none !important;
  animation:none !important;
}
.hero-content{
  height:760px !important;
  min-height:760px !important;
  padding-right:min(25vw,330px) !important;
}

/* ย่อและล็อกตำแหน่งรูปคุณต่อศักดิ์ ไม่ให้ใหญ่เกินและไม่ให้หัวโดนตัด */
.hero-manager-profile{
  position:absolute !important;
  z-index:4 !important;
  right:8.5% !important;
  bottom:28px !important;
  width:170px !important;
  max-width:170px !important;
  min-width:170px !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  align-items:center !important;
}
.manager-photo-wrap{
  position:relative !important;
  width:100% !important;
  height:auto !important;
  overflow:visible !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  isolation:isolate !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}
.manager-photo-wrap::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  bottom:12% !important;
  width:115% !important;
  height:72% !important;
  transform:translateX(-50%) !important;
  border-radius:50% !important;
  background:radial-gradient(circle at 50% 45%, rgba(21,148,71,.30) 0%, rgba(21,148,71,.20) 36%, rgba(255,126,24,.16) 62%, rgba(255,126,24,0) 80%) !important;
  filter:blur(18px) !important;
  z-index:-1 !important;
}
.manager-photo-wrap img{
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  filter:drop-shadow(0 14px 22px rgba(15,23,42,.18)) !important;
}
.manager-namebox{
  width:188px !important;
  margin-top:-4px !important;
  padding:12px 13px !important;
  border-radius:20px !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}
.manager-namebox h2{
  font-size:18px !important;
}
.manager-namebox p{
  font-size:11.5px !important;
  line-height:1.45 !important;
}

/* Tablet / mobile */
@media(max-width:1050px){
  .hero{
    height:auto !important;
    max-height:none !important;
    min-height:auto !important;
    padding:42px 0 28px !important;
  }
  .hero-content{
    height:auto !important;
    min-height:auto !important;
    padding-right:0 !important;
  }
  .hero-manager-profile{
    position:relative !important;
    right:auto !important;
    bottom:auto !important;
    width:210px !important;
    min-width:210px !important;
    max-width:210px !important;
    margin:34px auto 0 !important;
  }
  .manager-namebox{
    width:230px !important;
  }
}
@media(max-width:680px){
  .hero-manager-profile{
    width:180px !important;
    min-width:180px !important;
    max-width:180px !important;
    margin-top:28px !important;
  }
  .manager-namebox{
    width:210px !important;
  }
  .manager-namebox h2{
    font-size:17px !important;
  }
  .manager-namebox p{
    font-size:11px !important;
  }
}

/* ===== FINAL FIX V7: use locked background instead of img scaling ===== */
/* ทำให้รูปหน้าแรกอยู่ตำแหน่งขยายทันที ไม่เล็กก่อนแล้วค่อยขยาย */
.hero{
  height:760px !important;
  min-height:760px !important;
  max-height:760px !important;
  overflow:hidden !important;
}
.hero-img,
.hero-img-locked{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  overflow:hidden !important;
  background-image:url('assets/company-building.jpg') !important;
  background-size:112% auto !important;
  background-position:72% center !important;
  background-repeat:no-repeat !important;
  background-color:#f8fafc !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  will-change:auto !important;
}
.hero-img img,
.hero-img-locked img{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}
.hero-fade{
  position:absolute !important;
  inset:0 !important;
  transition:none !important;
  animation:none !important;
  background:linear-gradient(90deg,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.90) 16%,
    rgba(255,255,255,.76) 30%,
    rgba(255,255,255,.56) 42%,
    rgba(255,255,255,.28) 58%,
    rgba(255,255,255,.08) 74%,
    rgba(255,255,255,.00) 88%) !important;
}
.hero-content{
  height:760px !important;
  min-height:760px !important;
  padding-right:min(25vw,330px) !important;
}

/* ล็อกรูปคุณต่อศักดิ์ให้ไม่ขยาย/ย่อเอง */
.hero-manager-profile{
  position:absolute !important;
  z-index:4 !important;
  right:8.5% !important;
  bottom:28px !important;
  width:170px !important;
  max-width:170px !important;
  min-width:170px !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  align-items:center !important;
}
.manager-photo-wrap,
.manager-photo-wrap img,
.manager-namebox{
  transition:none !important;
  animation:none !important;
}
@media(max-width:1050px){
  .hero{
    height:auto !important;
    max-height:none !important;
    min-height:auto !important;
    padding:42px 0 28px !important;
  }
  .hero-img,
  .hero-img-locked{
    background-size:cover !important;
    background-position:center center !important;
  }
  .hero-content{
    height:auto !important;
    min-height:auto !important;
    padding-right:0 !important;
  }
  .hero-manager-profile{
    position:relative !important;
    right:auto !important;
    bottom:auto !important;
    width:210px !important;
    min-width:210px !important;
    max-width:210px !important;
    margin:34px auto 0 !important;
  }
}
@media(max-width:680px){
  .hero-manager-profile{
    width:180px !important;
    min-width:180px !important;
    max-width:180px !important;
  }
}

/* ===== FINAL FIX V8: absolute lock, no zoom-in/out on homepage ===== */
html body .hero.hero-fixed-bg{
  position:relative !important;
  height:760px !important;
  min-height:760px !important;
  max-height:760px !important;
  overflow:hidden !important;
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.90) 18%,rgba(255,255,255,.70) 36%,rgba(255,255,255,.34) 58%,rgba(255,255,255,.04) 82%),
    url('assets/company-building.jpg') !important;
  background-size:135% auto !important;
  background-position:70% center !important;
  background-repeat:no-repeat !important;
  background-color:#f8fafc !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  will-change:auto !important;
}
html body .hero-img,
html body .hero-img img,
html body .hero-img-disabled{
  display:none !important;
  width:0 !important;
  height:0 !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:0 !important;
  max-height:0 !important;
  opacity:0 !important;
  visibility:hidden !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}
html body .hero-fade{
  display:none !important;
}
html body .hero-content{
  height:760px !important;
  min-height:760px !important;
  padding-right:min(24vw,320px) !important;
}
html body .hero-manager-profile{
  position:absolute !important;
  z-index:4 !important;
  right:8.5% !important;
  bottom:26px !important;
  width:150px !important;
  min-width:150px !important;
  max-width:150px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}
html body .manager-photo-wrap{
  position:relative !important;
  width:100% !important;
  height:auto !important;
  overflow:visible !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  isolation:isolate !important;
}
html body .manager-photo-wrap::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  bottom:12% !important;
  width:120% !important;
  height:72% !important;
  transform:translateX(-50%) !important;
  border-radius:50% !important;
  background:radial-gradient(circle at 50% 45%, rgba(21,148,71,.30) 0%, rgba(21,148,71,.18) 36%, rgba(255,126,24,.14) 62%, rgba(255,126,24,0) 80%) !important;
  filter:blur(18px) !important;
  z-index:-1 !important;
}
html body .manager-photo-wrap img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  filter:drop-shadow(0 12px 20px rgba(15,23,42,.18)) !important;
}
html body .manager-namebox{
  width:188px !important;
  margin-top:-4px !important;
  padding:11px 12px !important;
  border-radius:19px !important;
  background:rgba(255,255,255,.96) !important;
  border:1px solid #e6edf5 !important;
  border-left:4px solid #159447 !important;
  box-shadow:0 12px 28px rgba(15,23,42,.12) !important;
  text-align:center !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}
html body .manager-namebox h2{
  font-size:17px !important;
  line-height:1.2 !important;
}
html body .manager-namebox p{
  font-size:10.8px !important;
  line-height:1.42 !important;
}

/* Tablet/mobile: don't lock height on small screens */
@media(max-width:1050px){
  html body .hero.hero-fixed-bg{
    height:auto !important;
    min-height:auto !important;
    max-height:none !important;
    padding:42px 0 28px !important;
    background-size:cover !important;
    background-position:center center !important;
  }
  html body .hero-content{
    height:auto !important;
    min-height:auto !important;
    padding-right:0 !important;
  }
  html body .hero-manager-profile{
    position:relative !important;
    right:auto !important;
    bottom:auto !important;
    width:200px !important;
    min-width:200px !important;
    max-width:200px !important;
    margin:32px auto 0 !important;
  }
  html body .manager-namebox{
    width:215px !important;
  }
}
@media(max-width:680px){
  html body .hero-manager-profile{
    width:175px !important;
    min-width:175px !important;
    max-width:175px !important;
  }
  html body .manager-namebox{
    width:205px !important;
  }
}

/* ===== FINAL FIX V9: fixed homepage card images and no dynamic resize ===== */
/* ปิดอาการรูปหน้าแรกเล็กก่อนแล้วค่อยขยาย จากการโหลด/แทนรูปภายหลัง */
.home-feature-grid,
.home-promo-card,
.home-promo-visual,
.home-promo-visual img{
  transition:none !important;
  animation:none !important;
}
.home-feature-grid{
  align-items:stretch !important;
}
.home-promo-card{
  contain:layout paint !important;
}
.home-promo-visual{
  height:392px !important;
  min-height:392px !important;
  max-height:392px !important;
  padding:14px !important;
  overflow:hidden !important;
  background:#eef4fb !important;
  border-bottom:1px solid #edf2f7 !important;
}
.home-promo-visual img,
.home-promo-visual img[data-fixed-home-img="true"]{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  max-height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:24px !important;
  transform:none !important;
  scale:1 !important;
  transition:none !important;
  animation:none !important;
  will-change:auto !important;
}
.home-promo-visual.compact{
  height:260px !important;
  min-height:260px !important;
  max-height:260px !important;
}
.home-promo-visual.compact img{
  height:100% !important;
}

/* ล็อก Hero อีกชั้น ให้เป็นภาพใหญ่ทันที */
html body .hero.hero-fixed-bg{
  background-size:135% auto !important;
  background-position:70% center !important;
  transition:none !important;
  animation:none !important;
}
html body .hero-img,
html body .hero-img img{
  display:none !important;
}

@media(max-width:1050px){
  .home-feature-grid{
    grid-template-columns:1fr !important;
  }
  .home-promo-visual,
  .home-promo-visual.compact{
    height:360px !important;
    min-height:360px !important;
    max-height:360px !important;
  }
}
@media(max-width:680px){
  .home-promo-visual,
  .home-promo-visual.compact{
    height:230px !important;
    min-height:230px !important;
    max-height:230px !important;
  }
}

/* ===== FINAL FIX V10: static homepage, no script resize, no zoom in/out ===== */
/* หน้าแรกใช้ค่าคงที่ทั้งหมด และไม่ให้ JavaScript จาก Google Sheet มาแทนรูปหลังโหลด */
html body .hero.hero-final-static{
  position:relative !important;
  height:760px !important;
  min-height:760px !important;
  max-height:760px !important;
  overflow:hidden !important;
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.90) 18%,rgba(255,255,255,.68) 36%,rgba(255,255,255,.30) 58%,rgba(255,255,255,.04) 82%),
    url('assets/company-building.jpg') !important;
  background-size:135% auto !important;
  background-position:70% center !important;
  background-repeat:no-repeat !important;
  background-color:#f8fafc !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  will-change:auto !important;
}
html body .hero-img,
html body .hero-img img,
html body .hero-fade{
  display:none !important;
}
html body .hero-content{
  position:relative !important;
  z-index:2 !important;
  height:760px !important;
  min-height:760px !important;
  padding-right:min(31vw,410px) !important;
}
html body .hero-copy{
  background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(255,255,255,.62)) !important;
  border:1px solid rgba(255,255,255,.76) !important;
  border-left:6px solid rgba(21,148,71,.70) !important;
  border-radius:30px !important;
  box-shadow:0 18px 48px rgba(15,23,42,.10) !important;
  padding:30px 32px 32px !important;
  backdrop-filter:none !important;
}
html body .hero-copy::before{
  display:none !important;
}
html body .hero-manager-profile{
  position:absolute !important;
  z-index:4 !important;
  right:8.2% !important;
  bottom:18px !important;
  width:215px !important;
  min-width:215px !important;
  max-width:215px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}
html body .manager-photo-wrap{
  position:relative !important;
  width:100% !important;
  height:auto !important;
  overflow:visible !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  isolation:isolate !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}
html body .manager-photo-wrap::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  bottom:12% !important;
  width:115% !important;
  height:72% !important;
  transform:translateX(-50%) !important;
  border-radius:50% !important;
  background:radial-gradient(circle at 50% 45%, rgba(21,148,71,.30) 0%, rgba(21,148,71,.20) 36%, rgba(255,126,24,.16) 62%, rgba(255,126,24,0) 80%) !important;
  filter:blur(18px) !important;
  z-index:-1 !important;
}
html body .manager-photo-wrap img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  filter:drop-shadow(0 14px 22px rgba(15,23,42,.20)) !important;
}
html body .manager-namebox{
  width:240px !important;
  margin-top:-6px !important;
  padding:13px 14px !important;
  border-radius:20px !important;
  background:rgba(255,255,255,.96) !important;
  border:1px solid #e6edf5 !important;
  border-left:4px solid #159447 !important;
  box-shadow:0 12px 28px rgba(15,23,42,.12) !important;
  text-align:center !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
}
html body .manager-namebox h2{
  font-size:20px !important;
  line-height:1.2 !important;
}
html body .manager-namebox p{
  font-size:12px !important;
  line-height:1.5 !important;
}
html body .home-promo-visual,
html body .home-promo-visual img{
  transform:none !important;
  transition:none !important;
  animation:none !important;
}
html body .home-promo-visual{
  height:360px !important;
  min-height:360px !important;
  max-height:360px !important;
  overflow:hidden !important;
}
html body .home-promo-visual img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  max-width:none !important;
}

@media(max-width:1050px){
  html body .hero.hero-final-static{
    height:auto !important;
    min-height:auto !important;
    max-height:none !important;
    padding:42px 0 28px !important;
    background-size:cover !important;
    background-position:center center !important;
  }
  html body .hero-content{
    height:auto !important;
    min-height:auto !important;
    padding-right:0 !important;
  }
  html body .hero-manager-profile{
    position:relative !important;
    right:auto !important;
    bottom:auto !important;
    width:240px !important;
    min-width:240px !important;
    max-width:240px !important;
    margin:32px auto 0 !important;
  }
}
@media(max-width:680px){
  html body .hero-manager-profile{
    width:210px !important;
    min-width:210px !important;
    max-width:210px !important;
  }
  html body .manager-namebox{
    width:220px !important;
  }
  html body .home-promo-visual{
    height:230px !important;
    min-height:230px !important;
    max-height:230px !important;
  }
}

/* ===== Mobile Admin Login Button Fix ===== */
.mobile-admin-login{
  display:none;
}
@media(max-width:1050px){
  .nav.open .mobile-admin-login{
    display:flex !important;
    width:100%;
    min-height:52px;
    align-items:center;
    justify-content:center;
    margin-top:8px;
    border-radius:16px;
    background:linear-gradient(135deg,#0b4aa2,#0d70d4);
    color:#fff !important;
    font-weight:900;
    box-shadow:0 12px 24px rgba(13,112,212,.18);
  }
  .nav.open .mobile-admin-login:after{
    display:none !important;
  }
}

/* ===== Articles Section + Article Detail Page ===== */
.article-section{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  padding-top:58px;
}
.article-list{
  display:flex;
  flex-direction:column;
  gap:18px;
  max-width:1120px;
  margin:0 auto;
}
.article-card{
  display:grid;
  grid-template-columns:260px 1fr auto;
  gap:22px;
  align-items:center;
  background:#fff;
  border:1px solid #e6edf5;
  border-radius:28px;
  padding:18px;
  box-shadow:0 16px 46px rgba(15,23,42,.08);
}
.article-thumb{
  display:block;
  overflow:hidden;
  border-radius:22px;
  height:150px;
  background:#eef4fb;
}
.article-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:none!important;
  transition:none!important;
}
.article-body h3{
  margin:8px 0 8px;
  color:#111827;
  font-size:25px;
  line-height:1.28;
  font-weight:900;
}
.article-body p{
  margin:0;
  color:#64748b;
  line-height:1.75;
}
.article-meta{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  font-size:13px;
  font-weight:900;
}
.article-meta span{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:6px 12px;
  background:#eaf8ef;
  color:#159447;
}
.article-meta time{
  color:#7c8798;
}
.article-read-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:14px;
  background:linear-gradient(135deg,#ff6b0f,#ff8f35);
  color:#fff;
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 12px 24px rgba(255,107,15,.20);
}
.article-hero-page{
  padding:58px 0;
  background:
    radial-gradient(circle at 80% 10%,rgba(21,148,71,.12),transparent 34%),
    linear-gradient(135deg,#fff7ef 0%,#eef7ff 100%);
  border-bottom:1px solid #edf2f7;
}
.article-hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:36px;
  align-items:center;
}
.article-back-link{
  display:inline-flex;
  margin-bottom:18px;
  color:#0b4aa2;
  font-weight:900;
}
.article-meta-large{
  margin-bottom:12px;
}
.article-hero-page h1{
  margin:0;
  font-size:clamp(34px,5vw,62px);
  line-height:1.12;
  letter-spacing:-.035em;
  color:#0f172a;
  font-weight:900;
}
.article-hero-page p{
  color:#526173;
  font-size:18px;
  line-height:1.85;
  max-width:760px;
}
.article-main-image{
  border-radius:34px;
  overflow:hidden;
  border:1px solid #dbe8f4;
  box-shadow:0 24px 68px rgba(15,23,42,.14);
  background:#fff;
}
.article-main-image img{
  width:100%;
  height:430px;
  object-fit:cover;
}
.article-read-section{
  background:#fff;
}
.article-read-grid{
  display:grid;
  grid-template-columns:1fr 340px;
  gap:24px;
  align-items:start;
}
.article-content-card{
  background:#fff;
  border:1px solid #e6edf5;
  border-radius:30px;
  padding:34px;
  box-shadow:0 16px 46px rgba(15,23,42,.07);
}
.article-content-card p{
  margin:0 0 18px;
  color:#334155;
  font-size:18px;
  line-height:1.95;
}
.article-side-card{
  position:sticky;
  top:120px;
  background:linear-gradient(180deg,#ffffff,#fff7ef);
  border:1px solid #ffd8b8;
  border-radius:28px;
  padding:24px;
  box-shadow:0 16px 46px rgba(15,23,42,.08);
}
.article-side-card h3{
  margin:0 0 8px;
  color:#0f172a;
  font-size:24px;
  font-weight:900;
}
.article-side-card p{
  color:#64748b;
  line-height:1.7;
}
.article-side-card .btn{
  width:100%;
  margin-top:10px;
}
.article-related-section{
  background:#f8fbff;
}
.article-related-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
.article-related-card{
  display:grid;
  grid-template-columns:190px 1fr;
  gap:16px;
  align-items:center;
  background:#fff;
  border:1px solid #e6edf5;
  border-radius:26px;
  padding:14px;
  box-shadow:0 14px 38px rgba(15,23,42,.07);
}
.article-related-card img{
  width:100%;
  height:128px;
  object-fit:cover;
  border-radius:18px;
}
.article-related-card span{
  display:inline-flex;
  margin-bottom:8px;
  border-radius:999px;
  padding:5px 11px;
  background:#fff0e6;
  color:#ff6b0f;
  font-weight:900;
  font-size:13px;
}
.article-related-card h3{
  margin:0 0 6px;
  color:#111827;
  font-size:20px;
  line-height:1.3;
}
.article-related-card p{
  margin:0;
  color:#64748b;
  line-height:1.55;
  font-size:14px;
}
.article-not-found{
  width:min(900px,94vw);
  margin:70px auto;
  background:#fff;
  border:1px solid #e6edf5;
  border-radius:30px;
  padding:40px;
  text-align:center;
  box-shadow:0 16px 46px rgba(15,23,42,.08);
}
.article-admin-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.article-admin-item{
  border:1px solid #e6edf5;
  border-radius:22px;
  padding:14px;
  background:#fff;
}
.article-admin-item img{
  width:100%;
  height:170px;
  object-fit:cover;
  border-radius:16px;
  background:#eef4fb;
  border:1px solid #e6edf5;
}
.article-admin-item label{
  margin-top:10px;
}
.article-admin-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
@media(max-width:1050px){
  .article-card{
    grid-template-columns:190px 1fr;
  }
  .article-read-btn{
    grid-column:2;
    justify-self:start;
  }
  .article-hero-grid,
  .article-read-grid,
  .article-related-grid,
  .article-admin-grid{
    grid-template-columns:1fr;
  }
  .article-side-card{
    position:static;
  }
}
@media(max-width:680px){
  .article-section{
    padding-top:42px;
  }
  .article-card{
    grid-template-columns:1fr;
    gap:14px;
    padding:14px;
  }
  .article-thumb{
    height:190px;
  }
  .article-read-btn{
    grid-column:auto;
    width:100%;
  }
  .article-body h3{
    font-size:21px;
  }
  .article-main-image img{
    height:260px;
  }
  .article-content-card{
    padding:24px;
  }
  .article-content-card p{
    font-size:16px;
  }
  .article-related-card{
    grid-template-columns:1fr;
  }
}

/* ===== Portfolio no old-image flash fix ===== */
body.portfolio-page .gallery-grid.dynamic-waiting{
  min-height:360px;
  display:grid;
  place-items:center;
  position:relative;
}
body.portfolio-page .gallery-grid.dynamic-waiting .gallery-card{
  display:none!important;
}
body.portfolio-page .gallery-grid.dynamic-waiting::before{
  content:"กำลังโหลดผลงานล่าสุด...";
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(560px,92vw);
  min-height:150px;
  border-radius:28px;
  background:linear-gradient(135deg,#ffffff,#fff7ef);
  border:1px solid #ffd6b8;
  color:#0f172a;
  font-weight:900;
  box-shadow:0 16px 44px rgba(15,23,42,.08);
}
body.portfolio-page .gallery-grid.dynamic-waiting::after{
  content:"";
  width:34px;
  height:34px;
  border-radius:50%;
  border:4px solid #ffd6b8;
  border-top-color:#ff6b0f;
  animation:the1Spin .8s linear infinite;
  position:absolute;
  margin-top:76px;
}
@keyframes the1Spin{to{transform:rotate(360deg)}}

/* ===== Admin-defined article color shade fix ===== */
.article-meta span,
.article-meta time,
.article-related-card span{
  background-image:linear-gradient(135deg,var(--shade1,#159447),var(--shade2,#22c55e));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent!important;
  text-shadow:0 8px 20px rgba(15,23,42,.08);
}
.article-meta span{
  border:1px solid rgba(21,148,71,.16);
  background-color:#f0fff5;
  box-shadow:inset 0 0 0 999px rgba(255,255,255,.72);
}
.article-related-card span{
  border:1px solid rgba(255,107,15,.16);
  background-color:#fff7ef;
  box-shadow:inset 0 0 0 999px rgba(255,255,255,.72);
}

/* ===== Strong article color shade fix V2 ===== */
.article-meta span,
.article-meta time,
.article-related-card span{
  opacity:1!important;
  font-weight:1000!important;
  color:var(--shade1,#159447)!important;
  -webkit-text-fill-color:transparent!important;
  background-image:linear-gradient(135deg,var(--shade1,#159447) 0%,var(--shade2,#22c55e) 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  filter:saturate(2.8) contrast(1.55) brightness(.88)!important;
  text-shadow:none!important;
}
.article-meta span,
.article-related-card span{
  box-shadow:none!important;
  background-color:rgba(255,255,255,.98)!important;
  border-width:2px!important;
  border-style:solid!important;
  border-color:color-mix(in srgb,var(--shade1,#159447) 45%,transparent)!important;
}
.article-meta time{
  letter-spacing:.01em;
}
@supports not (background-clip:text){
  .article-meta span,
  .article-meta time,
  .article-related-card span{
    -webkit-text-fill-color:var(--shade1,#159447)!important;
    color:var(--shade1,#159447)!important;
    background-image:none!important;
  }
}

/* ===== Admin All Enhancements V1 ===== */
.the1-top-announcement{
  background:linear-gradient(135deg,var(--ann1,#159447),var(--ann2,#ff6b0f));
  color:#fff;
  font-weight:900;
  position:relative;
  z-index:2000;
  box-shadow:0 10px 28px rgba(15,23,42,.12);
}
.the1-top-announcement .container{
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
}
.the1-top-announcement a{
  background:#fff;
  color:#0f172a;
  padding:7px 14px;
  border-radius:999px;
  font-weight:900;
}
.the1-top-announcement button{
  border:0;
  background:rgba(255,255,255,.18);
  color:#fff;
  width:30px;
  height:30px;
  border-radius:50%;
  cursor:pointer;
  font-size:20px;
  line-height:1;
}
.the1-popup-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(15,23,42,.62);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.the1-popup-card{
  width:min(860px,94vw);
  background:#fff;
  border-radius:32px;
  box-shadow:0 30px 100px rgba(0,0,0,.28);
  border:1px solid #e6edf5;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr 1fr;
  position:relative;
}
.the1-popup-card img{
  width:100%;
  height:100%;
  min-height:340px;
  object-fit:cover;
}
.the1-popup-card > div{
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.the1-popup-card h2{
  margin:0 0 10px;
  color:#0f172a;
  font-size:34px;
  line-height:1.18;
}
.the1-popup-card p{
  color:#64748b;
  line-height:1.8;
}
.the1-popup-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
  width:38px;
  height:38px;
  border-radius:50%;
  border:0;
  background:#0f172a;
  color:#fff;
  font-size:24px;
  cursor:pointer;
}
.the1-ai-advisor{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9998;
}
.the1-ai-advisor > button{
  border:0;
  background:linear-gradient(135deg,#0b4aa2,#0d70d4);
  color:#fff;
  border-radius:999px;
  padding:13px 18px;
  font-weight:900;
  box-shadow:0 18px 44px rgba(11,74,162,.25);
  cursor:pointer;
}
.the1-ai-panel{
  display:none;
  position:absolute;
  right:0;
  bottom:58px;
  width:min(370px,92vw);
  background:#fff;
  border:1px solid #e6edf5;
  border-radius:26px;
  padding:20px;
  box-shadow:0 24px 80px rgba(15,23,42,.22);
}
.the1-ai-panel.show{display:block}
.the1-ai-panel .close{
  position:absolute;
  right:12px;
  top:10px;
  border:0;
  background:#fff7ef;
  color:#ff6b0f;
  width:30px;
  height:30px;
  border-radius:50%;
  cursor:pointer;
}
.the1-ai-panel h3{margin:0 0 12px;color:#0f172a;font-size:22px}
.the1-ai-panel label{display:block;margin:10px 0 6px;font-weight:900;color:#0f172a}
.the1-ai-panel input,.the1-ai-panel select{
  width:100%;
  border:1px solid #dbe5ef;
  border-radius:14px;
  height:44px;
  padding:0 12px;
  font:inherit;
}
.the1-ai-panel .calc{width:100%;margin-top:12px}
.the1-ai-result{
  margin-top:12px;
  background:#f8fbff;
  border:1px solid #e6edf5;
  border-radius:16px;
  padding:12px;
  color:#334155;
}
.the1-ai-result p{margin:6px 0 10px;line-height:1.6;color:#64748b}
@media(max-width:680px){
  .the1-popup-card{grid-template-columns:1fr}
  .the1-popup-card img{min-height:190px;max-height:230px}
  .the1-popup-card > div{padding:24px}
  .the1-top-announcement .container{flex-wrap:wrap;padding:8px 0}
}

/* ===== Lead Form Section V1 ===== */
.lead-form-section{
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.lead-form-card{
  background:#fff;
  border:1px solid #e6edf5;
  border-radius:32px;
  padding:28px;
  box-shadow:0 18px 54px rgba(15,23,42,.08);
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:26px;
  align-items:start;
}
.lead-form-card h2{
  margin:10px 0 8px;
  font-size:34px;
  color:#0f172a;
  font-weight:900;
}
.lead-form-card p{
  color:#64748b;
  line-height:1.8;
}
.lead-form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.lead-form-grid input,
.lead-form-grid select,
.lead-form-grid textarea{
  width:100%;
  border:1px solid #dbe5ef;
  border-radius:16px;
  padding:13px 14px;
  font:inherit;
  font-weight:700;
  background:#fff;
}
.lead-form-grid textarea{
  grid-column:1 / -1;
  min-height:100px;
}
.lead-form-grid button{
  grid-column:1 / -1;
}
.lead-form-msg{
  grid-column:1 / -1;
  color:#159447;
  font-weight:900;
}
@media(max-width:800px){
  .lead-form-card,.lead-form-grid{grid-template-columns:1fr}
}

/* ===== Floating Scroll Top Menu Button ===== */
.the1-scroll-top{
  position:fixed;
  right:18px;
  bottom:82px;
  z-index:9997;
  width:66px;
  height:66px;
  border:0;
  border-radius:22px;
  background:linear-gradient(135deg,#ff6b0f,#ff8f35);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
  font-family:"Noto Sans Thai",system-ui,sans-serif;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 18px 44px rgba(255,107,15,.28);
  opacity:0;
  transform:translateY(18px) scale(.92);
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
}
.the1-scroll-top.show{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.the1-scroll-top span{
  font-size:28px;
  line-height:1;
  margin-top:-2px;
}
.the1-scroll-top b{
  font-size:14px;
  line-height:1.1;
}
.the1-scroll-top:hover{
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 22px 54px rgba(255,107,15,.34);
}
@media(max-width:680px){
  .the1-scroll-top{
    right:14px;
    bottom:78px;
    width:58px;
    height:58px;
    border-radius:19px;
  }
  .the1-scroll-top span{
    font-size:24px;
  }
  .the1-scroll-top b{
    font-size:12px;
  }
}


/* ===== Articles list page update ===== */
.articles-more-link{display:inline-flex;margin-top:14px;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border-radius:999px;background:#fff;border:1px solid #c9d7eb;color:#0b4aa2;font-weight:900;box-shadow:0 8px 20px rgba(15,23,42,.06)}
.articles-list-hero .container{max-width:960px;text-align:center}
.articles-list-hero .article-back-link{justify-content:center}
.articles-list-hero .article-meta{justify-content:center}
.articles-page-list{margin-top:4px}


/* ===== V39: bigger consistent top menu typography ===== */
.site-header{box-shadow:0 10px 26px rgba(15,23,42,.06)}
.nav-row{min-height:104px;gap:22px}
.nav{gap:18px;align-items:center;flex-wrap:nowrap}
.nav a{font-size:16px!important;font-weight:950!important;letter-spacing:-.15px;color:#111827!important;line-height:1.15;white-space:nowrap;word-break:keep-all;display:inline-block}
.nav a:hover,.nav a.active{color:var(--orange)!important}
.nav-btn{font-size:18px!important;font-weight:1000!important;border-radius:18px!important;padding:0 28px!important;min-height:54px!important;white-space:nowrap}
.mobile-admin-login{font-size:16px!important;white-space:nowrap}
@media(max-width:980px){
  .nav a{font-size:18px!important;padding:12px 0!important;white-space:normal}
  .nav{gap:8px;flex-wrap:wrap}
  .nav-row{min-height:86px}
}


/* ===== V49: home logo balance + consistent header buttons ===== */
.site-header .brand{display:flex;align-items:center;flex:0 0 auto;min-width:220px;max-width:300px}
.site-header .brand img{height:92px!important;width:auto!important;max-width:280px!important;object-fit:contain!important;object-position:left center!important}
.site-header .nav-row{gap:20px!important;align-items:center!important}
.site-header .nav{gap:16px!important;flex:1 1 auto;justify-content:flex-end;min-width:0}
.site-header .nav a{white-space:nowrap!important;word-break:keep-all!important;line-height:1.1!important}
.site-header .nav-admin-actions{display:flex;gap:10px;align-items:center;flex:0 0 auto}
.site-header .nav-btn{white-space:nowrap!important;min-height:52px!important;padding:0 22px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
@media(max-width:1200px){.site-header .brand img{height:82px!important;max-width:240px!important}.site-header .nav{gap:12px!important}.site-header .nav a{font-size:15px!important}.site-header .nav-btn{font-size:16px!important;padding:0 18px!important}}
@media(max-width:1050px){.site-header .brand{min-width:0;max-width:240px}.site-header .brand img{height:70px!important;max-width:220px!important}.site-header .nav.open a{white-space:normal!important}.site-header .nav-admin-actions{display:none!important}}
