/* v1.4.58 — Promotion Rail & Lightbox
   Scope: homepage promotion presentation only. Replaces the one-at-a-time featured slider
   with a multi-card horizontal rail while preserving promotion data and lead CTA behavior. */

.home .home-offers{overflow:hidden!important}
.home .home-offers-head{max-width:840px!important;margin-bottom:24px!important}

.home .home-promo-rail-wrap{position:relative}
.home .home-promo-rail{
  --promo-gap:20px;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - (var(--promo-gap) * 2))/3);
  gap:var(--promo-gap);
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-inline:contain;
  scrollbar-width:none;
  padding:4px 3px 18px;
  margin:0 -3px;
  -webkit-overflow-scrolling:touch;
}
.home .home-promo-rail::-webkit-scrollbar{display:none}
.home .home-promo-rail-wrap--count-1 .home-promo-rail{grid-auto-columns:min(420px,100%)}
.home .home-promo-rail-wrap--count-2 .home-promo-rail{grid-auto-columns:calc((100% - var(--promo-gap))/2)}

.home .home-promo-card{
  scroll-snap-align:start;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(205,218,231,.9);
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 26px rgba(0,40,86,.065);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.home .home-promo-card:hover{
  transform:translateY(-2px);
  border-color:#c2d5e7;
  box-shadow:0 15px 34px rgba(0,47,101,.095);
}
.home .home-promo-card__poster{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  border:0;
  border-radius:0;
  padding:0;
  margin:0;
  display:block;
  background:#edf3f9;
  color:inherit;
}
.home button.home-promo-card__poster{cursor:zoom-in}
.home .home-promo-card__poster img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  background:#fff;
  transition:transform .28s ease,filter .28s ease;
}
.home .home-promo-card:hover .home-promo-card__poster img,
.home .home-promo-card__poster:focus-visible img{transform:scale(1.025)}
.home .home-promo-card__poster:focus-visible{outline:3px solid rgba(0,104,215,.32);outline-offset:-3px}
.home .home-promo-card__zoom{
  position:absolute;
  right:12px;
  bottom:12px;
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#003a78;
  background:rgba(255,255,255,.94);
  box-shadow:0 5px 14px rgba(0,31,68,.14);
  opacity:0;
  transform:translateY(4px);
  transition:opacity .18s ease,transform .18s ease;
  pointer-events:none;
}
.home .home-promo-card__zoom svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.home .home-promo-card:hover .home-promo-card__zoom,
.home .home-promo-card__poster:focus-visible .home-promo-card__zoom{opacity:1;transform:none}
.home .home-promo-card__poster--fallback{
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  color:#fff;
  background:linear-gradient(145deg,#003a78,#0068d7);
}
.home .home-promo-card__poster--fallback>span{font-size:12px;font-weight:800;letter-spacing:.16em;opacity:.78}
.home .home-promo-card__poster--fallback>strong{font-size:clamp(25px,2.3vw,34px);line-height:1.05;letter-spacing:-.035em}

.home .home-promo-card__body{padding:18px 19px 20px;min-height:92px}
.home .home-promo-card__body h3{
  margin:0;
  color:#001b3f;
  font-size:18px;
  line-height:1.28;
  font-weight:750;
  letter-spacing:-.018em;
  text-wrap:balance;
}
.home .home-promo-card__expiry{margin:9px 0 0!important;color:#708094!important;font-size:12.5px!important;line-height:1.4!important}
.home .home-promo-card__expiry span{font-weight:600}
.home .home-promo-card__expiry time{color:#334e68;font-weight:750}

.home .home-promo-rail-controls{
  display:none;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  margin-top:2px;
}
.home .home-promo-rail-wrap.is-scrollable .home-promo-rail-controls{display:flex}
.home .home-promo-rail-arrow{
  width:42px;
  height:42px;
  padding:0;
  border:1px solid #c7d4e1;
  border-radius:8px;
  background:#fff;
  color:#001b3f;
  font-size:25px;
  line-height:1;
  cursor:pointer;
  transition:border-color .16s ease,color .16s ease,background .16s ease;
}
.home .home-promo-rail-arrow:hover{border-color:#0068d7;color:#0068d7;background:#f7fbff}
.home .home-promo-rail-status{min-width:48px;text-align:center;color:#7a8a9a;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}

.home .home-promo-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:16px;
  padding-top:18px;
  border-top:1px solid #e3eaf1;
}
.home .home-promo-footer .home-promo-note{margin:0!important;max-width:760px;text-align:left!important}
.home .home-promo-footer .btn{flex:0 0 auto}

.home .home-promo-lightbox[hidden]{display:none!important}
.home .home-promo-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:28px;
}
.home .home-promo-lightbox__backdrop{position:absolute;inset:0;border:0;background:rgba(0,18,40,.76);backdrop-filter:blur(7px);cursor:zoom-out}
.home .home-promo-lightbox__dialog{
  position:relative;
  z-index:1;
  width:min(820px,calc(100vw - 56px));
  max-height:calc(100vh - 56px);
  display:grid;
  place-items:center;
}
.home .home-promo-lightbox__dialog img{
  display:block;
  max-width:100%;
  max-height:calc(100vh - 105px);
  width:auto;
  height:auto;
  border-radius:12px;
  background:#fff;
  box-shadow:0 30px 80px rgba(0,0,0,.36);
}
.home .home-promo-lightbox__close{
  position:absolute;
  z-index:2;
  top:-16px;
  right:-16px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#001b3f;
  font-size:27px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
}
.home .home-promo-lightbox__dialog p{margin:10px 0 0;color:#fff;font-size:13px;font-weight:600;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.35)}
body.fsk-promo-modal-open{overflow:hidden}

@media(max-width:980px){
  .home .home-promo-rail{--promo-gap:16px;grid-auto-columns:calc((100% - var(--promo-gap))/2)}
  .home .home-promo-rail-wrap--count-1 .home-promo-rail{grid-auto-columns:min(430px,100%)}
  .home .home-promo-card__body{padding:17px 17px 19px}
}

@media(max-width:640px){
  .home .home-offers-head{margin-bottom:18px!important}
  .home .home-promo-rail{--promo-gap:12px;grid-auto-columns:86%;padding-bottom:14px}
  .home .home-promo-rail-wrap--count-1 .home-promo-rail{grid-auto-columns:100%}
  .home .home-promo-card{border-radius:12px}
  .home .home-promo-card:hover{transform:none}
  .home .home-promo-card__zoom{opacity:1;transform:none;width:36px;height:36px}
  .home .home-promo-card__body{min-height:84px;padding:15px 16px 17px}
  .home .home-promo-card__body h3{font-size:17px}
  .home .home-promo-rail-controls{justify-content:center;margin-top:0}
  .home .home-promo-footer{align-items:flex-start;flex-direction:column;gap:13px;margin-top:14px}
  .home .home-promo-footer .btn{width:100%}
  .home .home-promo-lightbox{padding:18px}
  .home .home-promo-lightbox__dialog{width:calc(100vw - 36px);max-height:calc(100vh - 36px)}
  .home .home-promo-lightbox__dialog img{max-height:calc(100vh - 82px);border-radius:10px}
  .home .home-promo-lightbox__close{top:-12px;right:-8px}
}

@media(prefers-reduced-motion:reduce){
  .home .home-promo-rail{scroll-behavior:auto}
  .home .home-promo-card,.home .home-promo-card__poster img,.home .home-promo-card__zoom{transition:none!important}
}
