/* =========================================
   Homepage Modal Styles
   FILE: /assets/css/homepage-modal.css
========================================= */

.homepage-ad-modal .modal-content{
  background: transparent;
  border: 0;
  box-shadow: none;
}

.homepage-ad-modal .modal-dialog{
  max-width: 560px;
  width: calc(100% - 24px);
  margin: 1rem auto;
}

.homepage-ad-card{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.homepage-ad-close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.homepage-ad-image-wrap{
  width: 100%;
  background: #fff;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.homepage-ad-slide{
  display: none;
}

.homepage-ad-slide.active{
  display: block;
}

.homepage-ad-image{
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 80vh;
  background: #fff;
}

.homepage-ad-cta{
  background: #fff;
  padding: 14px 18px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.homepage-ad-action{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  min-height: 56px;
  padding: 14px 24px;
  margin-bottom: 2px;
  border: 0 !important;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(135deg, #0058a8 0%, #fc9a1d 100%);
  box-shadow:
    0 14px 30px rgba(0,88,168,.22),
    0 6px 16px rgba(252,154,29,.18);
  overflow: hidden;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.homepage-ad-action::before{
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.28) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-22deg);
  transition: left .55s ease;
}

.homepage-ad-action:hover{
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 18px 34px rgba(0,88,168,.26),
    0 8px 18px rgba(252,154,29,.22);
  filter: brightness(1.02);
  color: #fff !important;
}

.homepage-ad-action:hover::before{
  left: 140%;
}

.homepage-ad-action:active{
  transform: translateY(0) scale(.985);
  box-shadow:
    0 8px 18px rgba(0,88,168,.18),
    0 4px 10px rgba(252,154,29,.16);
}

.homepage-ad-action:focus{
  outline: none;
  color: #fff !important;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.55),
    0 0 0 8px rgba(0,88,168,.22),
    0 14px 30px rgba(0,88,168,.22);
}

@media (max-width: 576px){
  .homepage-ad-action{
    max-width: 100%;
    min-height: 52px;
    font-size: 15px;
    padding: 12px 18px;
  }
}

.homepage-ad-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 14px;
  background: #fff;
}

.homepage-ad-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,88,168,.18);
  transition: all .22s ease;
}

.homepage-ad-dot.active{
  width: 28px;
  background: linear-gradient(90deg, #0058a8, #fc9a1d);
  box-shadow: 0 4px 10px rgba(0,88,168,.18);
}