/*
 * Real-data replacement for home3.css's static so-spotlight3 float layout
 * (see components/home/Home3PolicyAndBanners.tsx / SpotlightBanners) — a
 * big left banner + two stacked right banners, each with a title + "Shop
 * Now" overlay sourced from Admin -> Banners (placement=SPOTLIGHT).
 */
.so-spotlight3 {
  padding: 32px 0;
}
.sw-spotlight-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  /* `height: 480px` alone only sets the grid container's own box height —
     with no `grid-template-rows`/`grid-auto-rows`, the single implicit row
     still sizes to its content (`auto`), so each tile's `height: 100%`
     resolves against that auto-sized row instead of a real 480px, which
     collapses back to the row's content size — the banner <img>'s own
     natural aspect ratio. A wide/tall source photo then renders taller than
     480px and overflows the section, overlapping whatever sits below it.
     Sizing the row track explicitly gives `height: 100%` something real to
     resolve against. */
  grid-template-rows: 480px;
  gap: 16px;
  height: 480px;
}
.sw-spotlight-left,
.sw-spotlight-right-top,
.sw-spotlight-right-bottom {
  height: 100%;
}
.sw-spotlight-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.sw-spotlight-right-top,
.sw-spotlight-right-bottom {
  flex: 1 1 50%;
  min-height: 0;
}

.sw-spotlight-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
}
.sw-spotlight-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.sw-spotlight-tile:hover img {
  transform: scale(1.04);
}
.sw-spotlight-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 100%);
}
.sw-spotlight-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
}
.sw-spotlight-left .sw-spotlight-caption h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
}
.sw-spotlight-right-top .sw-spotlight-caption h3,
.sw-spotlight-right-bottom .sw-spotlight-caption h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.sw-spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}
.sw-spotlight-cta i {
  transition: transform 0.15s ease;
}
.sw-spotlight-tile:hover .sw-spotlight-cta i {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .sw-spotlight-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }
  .sw-spotlight-left {
    height: 280px;
  }
  .sw-spotlight-right {
    flex-direction: row;
  }
  .sw-spotlight-right-top,
  .sw-spotlight-right-bottom {
    height: 200px;
  }
}
