/* SGC top: column carousel v1.0. Matches the ACHIEVEMENTS spacing and accents.
   Scoped under .sgc-column-home to avoid changing the case slider. */
.sgc-column-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(180deg, #f1f6f7 0%, #edf4f5 52%, #f4f8f9 100%);
}
.sgc-column-home__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px;
}
.sgc-column-home__heading { margin: 0; }
/* Inherit the original theme's heading type styles and gradient circle. */
.sgc-column-home__heading .p-achievements__title { margin-bottom: 48px; }
.sgc-column-home__carousel-shell {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 80px;
}
.sgc-column-home__slider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  min-width: 0;
}
/* Before JavaScript loads, avoid displaying an unintended 2nd row of articles. */
.sgc-column-home__slider:not(.slick-initialized) > :nth-child(n+4) { display: none; }
.sgc-column-home__slider.slick-initialized { display: block; }
.sgc-column-home__slider.slick-initialized .slick-slide { margin: 0 20px; height: auto; }
.sgc-column-home__slider .slick-track { display: flex; align-items: stretch; }
.sgc-column-home__slider .slick-slide > div { height: 100%; }
.sgc-column-home__item { min-width: 0; height: 100%; }
.sgc-column-home__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #022222;
  text-decoration: none;
  outline-offset: 5px;
}
.sgc-column-home__card:hover { color: #022222; }
.sgc-column-home__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 8.45;
  overflow: hidden;
  background: linear-gradient(135deg, #dae9ec, #eaf4f5 53%, #c3dee2);
  margin-bottom: 15px;
}
.sgc-column-home__image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease, opacity .3s ease; }
.sgc-column-home__card:hover .sgc-column-home__image { transform: scale(1.035); opacity: .92; }
.sgc-column-home__fallback-logo { display: block; width: 57%; height: auto; max-height: 75%; object-fit: contain; }
.sgc-column-home__date { display: block; font-size: 12px; line-height: 1.4; color: #55828c; margin: 0 0 9px; font-weight: 600; }
.sgc-column-home__card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  min-height: 3.4em;
  margin: 0 0 14px;
}
.sgc-column-home__categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.sgc-column-home__category {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  border-radius: 18px;
  padding: 5px 14px;
  background: linear-gradient(90deg, #55828c, #6dbec1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
/* Arrow positioning deliberately matches the existing case carousel. */
.sgc-column-home__arrow {
  position: absolute;
  z-index: 4;
  top: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(125deg, #022222 10%, #0e4b58 100%);
  cursor: pointer;
  transition: opacity .2s ease, box-shadow .2s ease;
  padding: 0;
}
.sgc-column-home__arrow--prev { left: 0; }
.sgc-column-home__arrow--next { right: 0; }
.sgc-column-home__arrow:hover { opacity: .8; box-shadow: 0 4px 12px rgba(2,34,34,.15); }
.sgc-column-home__arrow:focus-visible, .sgc-column-home__all-link:focus-visible { outline: 3px solid #c62f58; outline-offset: 4px; }
.sgc-column-home__arrow.slick-disabled { opacity: .25; cursor: default; }
.sgc-column-home__footer { display: flex; justify-content: center; padding-top: 42px; }
/* The CTA is intentionally compact: not the full-width / oversized button from the archive. */
.sgc-column-home__all-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: auto;
  min-width: 218px;
  max-width: min(100%, 270px);
  min-height: 48px;
  padding: 9px 13px 9px 22px;
  border-radius: 28px;
  background: linear-gradient(90deg, #55828c, #6dbec1);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(85,130,140,.13);
  transition: opacity .25s ease, box-shadow .25s ease;
}
.sgc-column-home__all-link:hover { opacity: .9; color: #fff; box-shadow: 0 7px 15px rgba(85,130,140,.2); }
.sgc-column-home__all-link-icon { width: 28px; height: 28px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.94); color: #55828c; }
.sgc-column-home__deco { position: absolute; z-index: 1; pointer-events: none; object-fit: contain; }
/* Three existing SGC illustration assets, arranged only within the column section. */
.sgc-column-home__people {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: 8px;
  right: clamp(40px, 6vw, 130px);
  width: 360px;
  height: 220px;
}
.sgc-column-home__person {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  object-fit: contain;
}
.sgc-column-home__person--shopping { left: 3px; top: 48px; width: 106px; }
.sgc-column-home__person--man { left: 144px; top: 5px; width: 55px; }
.sgc-column-home__person--grandfather { right: 8px; top: 42px; width: 65px; }
.sgc-column-home__deco--bottom { right: 0; bottom: 16px; width: 140px; }
@media (max-width:1080px) {
  .sgc-column-home__inner { padding: 40px 16px 56px; }
  .sgc-column-home__heading .p-achievements__title { margin-bottom: 30px; }
  .sgc-column-home__people { top: 10px; right: 16px; width: 222px; height: 135px; }
  .sgc-column-home__person--shopping { left: 2px; top: 31px; width: 66px; }
  .sgc-column-home__person--man { left: 90px; top: 3px; width: 50px; }
  .sgc-column-home__person--grandfather { right: 4px; top: 24px; width: 55px; }
  .sgc-column-home__deco--bottom { display: none; }
  .sgc-column-home__slider { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .sgc-column-home__slider:not(.slick-initialized) > :nth-child(n+3) { display: none; }
}
@media (max-width:850px) {
  .sgc-column-home__slider { grid-template-columns: minmax(0, 1fr); }
  .sgc-column-home__slider:not(.slick-initialized) > :nth-child(n+2) { display: none; }
  .sgc-column-home__card-title { font-size: 15px; }
}
@media (max-width:490px) {
  .sgc-column-home__carousel-shell { padding: 0; }
  .sgc-column-home__people { top: 8px; right: 8px; width: 164px; height: 104px; }
  .sgc-column-home__person--shopping { left: 0; top: 24px; width: 48px; }
  .sgc-column-home__person--man { left: 66px; top: 4px; width: 36px; }
  .sgc-column-home__person--grandfather { right: 0; top: 20px; width: 40px; }
  .sgc-column-home__slider.slick-initialized .slick-slide { margin: 0 8px; }
  .sgc-column-home__arrow { display: none !important; }
  .sgc-column-home__footer { padding-top: 28px; }
  .sgc-column-home__all-link { min-height: 46px; min-width: 210px; font-size: 14px; }
  .sgc-column-home__thumb { margin-bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .sgc-column-home__card *, .sgc-column-home__arrow, .sgc-column-home__all-link { transition: none !important; }
}
