/* SYS.co.th Premium Hero UI v2.7
   Global enhancement for the top showcase/hero block on every page.
   Keeps original image dimensions and upgrades only presentation/layout. */

:root{
  --sys-shell-width:1280px;
  --sys-hero-radius:32px;
  --sys-hero-border:rgba(7,59,135,.10);
  --sys-hero-shadow:0 26px 70px rgba(4,31,73,.12);
  --sys-hero-soft-shadow:0 14px 34px rgba(7,59,135,.08);
  --sys-hero-bg:linear-gradient(180deg,rgba(255,255,255,.97) 0%,rgba(247,251,255,.95) 56%,rgba(244,251,244,.96) 100%);
}

/* Keep one consistent content width across the site */
.wrap,
.section > .wrap,
.linksSection > .wrap,
.footer > .wrap,
.finalCta > .wrap,
footer .wrap,
main > .wrap{
  width:min(var(--sys-shell-width),calc(100% - 32px)) !important;
  margin-inline:auto !important;
}

/* Premium hero layout: full-width image first, content card below */
.hero{
  padding:22px 0 48px !important;
}
.heroGrid{
  display:flex !important;
  flex-direction:column !important;
  gap:24px !important;
  align-items:stretch !important;
  max-width:100% !important;
}
.heroMedia{
  width:100% !important;
  position:relative !important;
}
.heroMedia img,
.heroMedia picture,
.heroMedia picture > img{
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  object-fit:contain !important;
}
.heroMedia img{
  border-radius:var(--sys-hero-radius) !important;
  border:8px solid #fff !important;
  box-shadow:0 22px 60px rgba(4,31,73,.18) !important;
}
.heroText{
  width:100% !important;
  max-width:none !important;
  margin:0 auto !important;
  padding:clamp(24px,3vw,42px) clamp(20px,3.3vw,56px) !important;
  text-align:center !important;
  background:var(--sys-hero-bg) !important;
  border:1px solid var(--sys-hero-border) !important;
  border-radius:var(--sys-hero-radius) !important;
  box-shadow:var(--sys-hero-shadow) !important;
  position:relative !important;
  overflow:hidden !important;
  isolation:isolate !important;
}
.heroText::before,
.heroText::after{
  content:"";
  position:absolute;
  inset:auto auto 0 0;
  pointer-events:none;
  z-index:-1;
}
.heroText::before{
  width:320px;
  height:320px;
  left:-100px;
  top:-115px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(11,105,199,.10),transparent 70%);
}
.heroText::after{
  width:280px;
  height:280px;
  right:-95px;
  bottom:-120px;
  left:auto;
  border-radius:50%;
  background:radial-gradient(circle,rgba(99,189,35,.10),transparent 70%);
}
.heroText > *{
  position:relative;
  z-index:1;
}
.eyebrow{
  margin:0 0 12px !important;
  text-align:center !important;
  color:#1560aa !important;
  font-weight:950 !important;
  letter-spacing:.045em !important;
  text-transform:uppercase !important;
}
.hero h1{
  margin:0 0 14px !important;
  font-size:clamp(36px,5.2vw,76px) !important;
  line-height:1.06 !important;
  letter-spacing:-.035em !important;
  font-weight:950 !important;
  color:#082449 !important;
  text-wrap:balance;
}
.gradientText{
  background:linear-gradient(90deg,#1f63a8 0%,#48a73c 48%,#e0a300 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
}
.lead{
  margin:0 auto 22px !important;
  max-width:1080px !important;
  color:#2d4b70 !important;
  font-size:clamp(18px,2vw,22px) !important;
  line-height:1.8 !important;
  text-wrap:pretty;
}
.heroActions{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:14px !important;
  flex-wrap:wrap !important;
  margin:24px 0 18px !important;
}
.heroActions .cta,
.heroActions .ghost,
.hero .cta,
.hero .ghost{
  min-height:54px;
  padding:14px 24px !important;
  font-weight:950 !important;
  letter-spacing:.01em;
}
.heroActions .cta,
.hero .cta{
  box-shadow:0 18px 40px rgba(43,180,31,.28) !important;
}
.heroActions .ghost,
.hero .ghost{
  background:#fff !important;
  border:2px solid rgba(7,59,135,.12) !important;
  color:#163962 !important;
  box-shadow:var(--sys-hero-soft-shadow) !important;
}
.trustRow{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
  max-width:980px !important;
  margin:8px auto 0 !important;
}
.trust{
  min-height:64px;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  padding:16px 18px !important;
  background:rgba(255,255,255,.92) !important;
  border:1px solid rgba(7,59,135,.10) !important;
  border-radius:20px !important;
  box-shadow:var(--sys-hero-soft-shadow) !important;
  font-weight:900 !important;
  color:#18375c !important;
}
.floatBadge{
  border-radius:18px !important;
  padding:14px 18px !important;
  box-shadow:0 15px 40px rgba(0,0,0,.22) !important;
}

/* Avoid overflow in legacy page variants */
.heroText,
.heroText *,
.trustRow,
.heroActions{
  max-width:100%;
}

@media (max-width:950px){
  .wrap,
  .section > .wrap,
  .linksSection > .wrap,
  .footer > .wrap,
  .finalCta > .wrap,
  footer .wrap,
  main > .wrap{
    width:min(var(--sys-shell-width),calc(100% - 28px)) !important;
  }
  .hero{
    padding:18px 0 40px !important;
  }
  .heroText{
    padding:22px 18px 20px !important;
  }
  .hero h1{
    font-size:clamp(34px,8vw,52px) !important;
  }
  .lead{
    font-size:18px !important;
  }
  .trustRow{
    grid-template-columns:1fr !important;
    max-width:100% !important;
  }
}

@media (max-width:560px){
  .wrap,
  .section > .wrap,
  .linksSection > .wrap,
  .footer > .wrap,
  .finalCta > .wrap,
  footer .wrap,
  main > .wrap{
    width:min(var(--sys-shell-width),calc(100% - 22px)) !important;
  }
  .heroMedia img{
    border-width:5px !important;
    border-radius:22px !important;
  }
  .heroText{
    border-radius:24px !important;
    padding:20px 16px 18px !important;
  }
  .eyebrow{
    font-size:14px !important;
  }
  .hero h1{
    font-size:34px !important;
    line-height:1.10 !important;
  }
  .lead{
    font-size:16px !important;
    line-height:1.75 !important;
  }
  .heroActions{
    gap:10px !important;
  }
  .heroActions .cta,
  .heroActions .ghost,
  .hero .cta,
  .hero .ghost{
    width:100%;
    min-height:50px;
  }
  .trust{
    min-height:auto;
    justify-content:flex-start !important;
    text-align:left !important;
  }
  .floatBadge{
    position:static !important;
    margin-top:10px !important;
    display:inline-flex;
  }
}

/* --------------------------------------------------------------
   SYS Compact Premium Hero v2.8
   Purpose: clearly shorter header text card without hiding content.
   IMPORTANT: do not alter .heroMedia images or file paths.
   -------------------------------------------------------------- */
@media (min-width:951px){
  .hero{padding:12px 0 27px !important}
  .heroGrid{gap:12px !important}
  .heroText{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(250px,340px) !important;
    grid-template-areas:
      "eyebrow actions"
      "title actions"
      "lead trust" !important;
    column-gap:clamp(18px,2.8vw,34px) !important;
    row-gap:7px !important;
    align-items:center !important;
    text-align:left !important;
    padding:22px clamp(24px,2.8vw,36px) !important;
    border-radius:24px !important;
  }
  .heroText>.eyebrow{grid-area:eyebrow;text-align:left !important;margin:0 !important;font-size:13px !important}
  .heroText>h1{grid-area:title;font-size:clamp(34px,3.5vw,48px) !important;line-height:1.12 !important;text-align:left !important;letter-spacing:-.025em !important;margin:0 !important}
  .heroText>.lead{grid-area:lead;font-size:16px !important;line-height:1.65 !important;text-align:left !important;margin:0 !important;max-width:100% !important}
  .heroText>.heroActions{grid-area:actions;display:flex !important;flex-direction:column !important;align-items:stretch !important;justify-content:center !important;gap:8px !important;margin:0 !important}
  .heroText>.heroActions .cta,.heroText>.heroActions .ghost{min-height:44px !important;width:100% !important;padding:10px 14px !important;font-size:14px !important;box-shadow:0 10px 24px rgba(7,59,135,.08) !important}
  .heroText>.trustRow{grid-area:trust;grid-template-columns:1fr !important;gap:6px !important;max-width:100% !important;margin:0 !important}
  .heroText>.trustRow>.trust{min-height:36px !important;padding:7px 12px !important;border-radius:12px !important;font-size:13px !important;line-height:1.35 !important;box-shadow:none !important}
}
@media (max-width:950px){
  .hero{padding:12px 0 28px !important}
  .heroGrid{gap:12px !important}
  .heroText{display:block !important;text-align:center !important;padding:20px 20px 18px !important;border-radius:24px !important}
  .heroText>.eyebrow{margin:0 0 8px !important;text-align:center !important;font-size:13px !important}
  .heroText>h1{font-size:clamp(30px,5.3vw,42px) !important;line-height:1.16 !important;text-align:center !important;letter-spacing:-.025em !important;margin:0 0 10px !important}
  .heroText>.lead{font-size:16px !important;line-height:1.65 !important;text-align:center !important;margin:0 auto 14px !important}
  .heroText>.heroActions{flex-direction:row !important;flex-wrap:wrap !important;justify-content:center !important;gap:8px !important;margin:0 0 12px !important}
  .heroText>.heroActions .cta,.heroText>.heroActions .ghost{min-height:44px !important;padding:10px 16px !important;font-size:14px !important;box-shadow:none !important;width:auto !important}
  .heroText>.trustRow{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:8px !important;margin:0 auto !important;max-width:100% !important}
  .heroText>.trustRow>.trust{min-height:42px !important;padding:8px 10px !important;border-radius:12px !important;font-size:12px !important;line-height:1.35 !important;box-shadow:none !important}
}
@media (max-width:560px){
  .hero{padding:8px 0 22px !important}
  .heroGrid{gap:9px !important}
  .heroText{padding:16px 13px 14px !important;border-radius:20px !important}
  .heroText>.eyebrow{font-size:11px !important;letter-spacing:.02em !important;margin:0 0 6px !important}
  .heroText>h1{font-size:clamp(25px,7.5vw,31px) !important;line-height:1.17 !important;margin:0 0 8px !important}
  .heroText>.lead{font-size:14px !important;line-height:1.6 !important;margin:0 0 12px !important}
  .heroText>.heroActions{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:7px !important;margin:0 0 9px !important}
  .heroText>.heroActions .cta,.heroText>.heroActions .ghost{width:100% !important;max-width:100% !important;min-width:0 !important;min-height:40px !important;padding:8px 9px !important;font-size:12px !important;line-height:1.25 !important;text-align:center !important;white-space:normal !important;overflow-wrap:anywhere !important}
  .heroText>.trustRow{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:5px !important}
  .heroText>.trustRow>.trust{min-width:0 !important;min-height:45px !important;justify-content:center !important;text-align:center !important;padding:6px 5px !important;font-size:11px !important;line-height:1.35 !important;overflow-wrap:anywhere !important}
}
