body.sg-goal-home {
  --home-navy: #132e46;
  --home-ivory: #faf7f1;
  --home-content-width: min(1240px, calc(100% - 48px));
}
html body.sg-goal-home .top-header,
html body.sg-goal-home .top-header .header-mini {background: var(--home-navy) !important}
html body.sg-goal-home .top-header .header-mini {height: 72px !important; min-height: 72px !important}
html body.sg-goal-home .top-header :is(nav a, .sg-site-logo strong) {color: #fff !important}
html body.sg-goal-home .top-header .sg-site-logo small {color: #d3e2e9 !important}
html body.sg-goal-home .top-header .auth-slot :is(a,button) {color: #fff !important; background: #28455d !important}
html body.sg-goal-home .top-header :focus-visible {outline: 2px solid #ffcf38 !important; outline-offset: 2px}
html body.sg-goal-home .site-shell,
html body.sg-goal-home #top:has(#sg-platform-intro.opening-film) {border-inline: 0 !important; padding-inline: 0 !important; max-width: none !important; width: 100% !important}
html body.sg-goal-home #sg-platform-intro.opening-film,
html body.sg-goal-home #sg-platform-intro.opening-film :is(picture, img, video, .opening-shade),
html body.sg-goal-home #sg-platform-intro.opening-film::before,
html body.sg-goal-home #sg-platform-intro.opening-film::after {
  border-radius: 0 !important; clip-path: none !important; border: 0 !important; box-shadow: none !important;
}
html body.sg-goal-home #sg-platform-intro.opening-film :is(video, picture, picture img) {
  inset: 0 !important; margin: 0 !important; padding: 0 !important;
  width: 100% !important; height: 100% !important; object-fit: cover !important;
}
html body.sg-goal-home :is(#sg-goals, #sg-quick-search, #site-ad-top) {
  width: var(--home-content-width) !important; max-width: none !important; box-sizing: border-box; margin-inline: auto !important;
}
html body.sg-goal-home #sg-goals .sg-goal-card {
  background: var(--home-ivory); border: 1px solid #e5dfd4; border-radius: 14px;
}
html body.sg-goal-home #sg-goals :is(h2,strong,b), html body.sg-goal-home #sg-quick-search {color: var(--home-navy) !important}
html body.sg-goal-home #sg-quick-search {background: #f4efe5; border: 1px solid #e5dfd4}
html body.sg-goal-home #sg-quick-search button {background: var(--home-navy) !important}
html body.sg-goal-home #site-ad-top {border-color: #c9c7be !important; box-shadow: none !important}
html body.sg-goal-home #site-ad-top .sab-ad-bar {background: var(--home-ivory)}
html body.sg-goal-home #torder-partnership {
  width: var(--home-content-width) !important;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30%); align-items: center; gap: 12px;
  padding: clamp(18px, 2vw, 30px); background: linear-gradient(135deg, #f7e7d4, #fff8f0);
  border: 1px solid #e8d7c2; border-radius: 12px !important;
}
html body.sg-goal-home #torder-partnership .sg-torder-product {min-width: 0}
html body.sg-goal-home #torder-partnership .sg-torder-product img {width: 100%; max-height: 200px; object-fit: contain}
html body.sg-goal-home #torder-partnership h2 {font-size: clamp(21px, 1.9vw, 32px); color: var(--home-navy)}
html body.sg-goal-home #torder-partnership .sg-torder-actions a:first-child {background: var(--home-navy)}
.home-feature {position: relative; height: var(--feature-height, 165px); margin: 0 0 24px; overflow: hidden; background: #142e44; color: white}
.home-feature[hidden], html[data-entity-visibility] .home-feature {display: none !important}
.home-feature-link {position: absolute; inset: 0; display: flex; align-items: center; text-decoration: none; color: white}
.home-feature-photo {position: absolute; inset: 0 0 0 auto; width: 55%; height: 100%; object-fit: cover; background: #e9e8e2}
.home-feature-link::after {content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#142e44 0%,#142e44 40%,#142e44aa 50%,transparent 70%)}
.home-feature-copy {position: relative; z-index: 1; display: grid; gap: 7px; width: 47%; padding: 0 clamp(14px,3vw,44px); box-sizing: border-box; word-break: keep-all}
.home-feature-name {font: 800 clamp(20px,2.5vw,36px)/1.15 SGNeo,sans-serif; color: white}
.home-feature-service {font: 500 clamp(12px,1.2vw,17px)/1.45 SGNeo,sans-serif; color: #e1eaf0}
.home-feature-copy > * {display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden}
.home-slide-controls {display: flex; align-items: center; gap: 2px; color: white; background: #102332f2; border-radius: 8px; width: max-content; padding: 2px}
.home-slide-controls[hidden] {display: none}
.home-slide-controls button {appearance: none; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: white; font: 600 16px/1 sans-serif; width: 32px; height: 32px; padding: 0; cursor: pointer}
.home-slide-controls button:hover, .home-slide-controls button:focus-visible {background: #3b5264}
.home-slide-controls button:focus-visible {outline: 2px solid #ffcf38; outline-offset: -2px}
.home-feature > .home-slide-controls {position: absolute; right: 8px; bottom: 8px}
.home-feature-link:focus-visible {outline: 3px solid #ffcf38; outline-offset: -4px; z-index: 1}
.home-product-media {min-width: 0; align-self: center}
.home-product-media > a {display:block}
.home-product-media img {width: 100%; height: auto; object-fit: cover; background: #e2e8ea; aspect-ratio: 16/9}
.home-product-media .home-slide-controls {margin: 4px 0 0 auto}
@media (max-width: 760px) {
  body.sg-goal-home {--home-content-width: calc(100% - 32px)}
  html body.sg-goal-home .top-header .header-mini {height: auto !important; min-height: 92px !important}
  html body.sg-goal-home #torder-partnership {grid-template-columns: minmax(0, 1fr)}
  .home-feature-copy {width: 56%; padding: 0 12px}
  .home-feature-link::after {background: linear-gradient(90deg,#142e44 38%,#142e44eb 50%,transparent 76%)}
}
html body.sg-goal-home .pd-directory [data-entity="partners:sajanggol-refrigerator-repair"] .pd-media img {
  width: 100%; height: 100%; object-fit: contain !important; object-position: center;
}

/* Use one outer column for the home sections. Keep each card's internal padding. */
body.sg-goal-home #top:is(main) > :is(#sg-goals, #sg-quick-search, #torder-partnership, #sg-discover, #sg-refined, #cooperating-companies, #store-showcase, #payment-solutions, #sg-join-benefits, #supplier-benefits, #member-value, #advertising-inquiry, #join-event, .sg-value-faq, #member-start, #sajanggol-services, #contact-support, [data-site-ad-slot]) {
  box-sizing: border-box;
  width: var(--home-content-width) !important;
  max-width: none !important;
  margin-inline: auto !important;
}
body.sg-goal-home #top > :is(#sg-discover, #payment-solutions, #sg-join-benefits, #member-value, #store-showcase, #cooperating-companies, #sg-refined) {
  padding-inline: 0 !important;
}
body.sg-goal-home #top #sg-platform-intro.opening-film {
  width: 100% !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 600px) {
  #top :is(#cooperating-companies, #store-showcase) :is(.sg-cooperators-head, .sg-showcase-heading) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 8px;
    margin-block: 12px 8px;
  }
  #top :is(.sg-cooperators-head, .sg-showcase-heading) > div { display: contents; }
  #top :is(.sg-cooperators-head, .sg-showcase-heading) p { grid-column: 1 / -1; margin: 0; }
  #top :is(#sg-cooperators-title, #store-showcase-title) { grid-area: 2 / 1; font-size: 20px; margin: 0; }
  #top :is(.sg-cooperators-head, .sg-showcase-heading) .sg-catalogue-link {
    grid-area: 2 / 2; justify-self: end; align-self: center; margin: 0;
    padding: 0 5px; min-height: 44px; display: inline-flex; align-items: center; font-size: 13px;
  }
  #top #payment-solutions .sg-payment-cover { padding: 12px; }
  #top #store-showcase .sg-showcase-note { margin-block: 8px; line-height: 1.5; }
}
