/* Parent container: normal width, gray bg, clips overflow, houses UI */
.custom-ps-wrap {
  background: #f3f4f6;
  border-radius: 16px;
  padding: 75px 75px 75px 75px;
  overflow: visible;
}

/* Inner track: breaks out to full viewport width */
.custom-ps {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.custom-ps-wrap h2 {
  text-align: center;
  color: #000000;
  margin-bottom: 50px;
}

/* Edge fades on the parent, masking outer halves */
.custom-ps-wrap__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 5;
}
.custom-ps-wrap__fade--left {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(243,244,246,1),
    rgba(243,244,246,0)
  );
  
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.custom-ps-wrap__fade--right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(243,244,246,1),
    rgba(243,244,246,0)
  );
  
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

/* Swiper base */
.custom-ps__swiper {
  overflow: visible;
  padding: 12px 60px;
}
.custom-ps__slide {
  height: auto;
}

/* Slide card with 7:5 ratio */
.custom-ps__card {
  position: relative;
  aspect-ratio: 7 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #e5e7eb;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: transform .25s ease, box-shadow .25s ease;
  padding: 50px;
  transform: scale(0.9);
}

/* Center slide emphasis (~10%) */
.swiper-slide-active .custom-ps__card {
  transform: scale(1);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

/* Overlays */
.custom-ps__badges {
  position: absolute;
  top: 50px;
  right: 50px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.custom-ps__badge {
  padding: 5px 10px 5px 10px;
  border-style: solid;
  border-width: 2px 2px 2px 2px;
  border-color: white;
  color: white;
  border-radius: 10px 10px 10px 10px;
  background-color: transparent !important;
}

.custom-ps__title {
  position: absolute;
  bottom: 50px;
  margin: 0;
  width: 70%;
}

.custom-ps__title a {
  color: white;
  font-family: 'Pauza';
  font-weight: bold;
  font-size: 42px;
  line-height: 1.2;
  text-decoration: none;
}

.custom-ps__btn {
  display: none;
  justify-content: center;
  align-items: center;
  max-width: 30%;
  width: 48px;
  height: 48px;
  position: absolute;
  right: 50px;
  bottom: 50px;
  background: #FCD905;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}

.custom-ps__btn img {
  transition-duration: 200ms;
}

.custom-ps__btn:hover img {
  transform: rotate(45deg);
}

.swiper-slide-active .custom-ps__btn {
  display: flex;
}

.custom-ps__nav {
  display: flex;
  gap: 7px;
}

.custom-ps__arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border: 2px solid black;
  color: black !important;
  border-radius: 11px;
  cursor: pointer;
}
.custom-ps__arrow:active, .custom-ps__arrow:focus, .custom-ps__arrow:hover {
  background-color: transparent; 
}

.custom-ps__arrow img {
  width: 21px;
  height: 21px;
}

.custom-ps__dots {
  width: auto !important;
  position: static;
}
.custom-ps__dots .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #d1d5db;
  opacity: 1;
  margin: 0 4px !important;
}

.custom-ps__dots .swiper-pagination-bullet-active {
  background: #FCD905;
}

/* Footer button */
.custom-ps__footer {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 1440px;
  gap: 20px;
  margin-top: 20px;
  padding-left: 70px;
  padding-right: 70px;
}

.custom-ps__viewall {
  color: black;
  border: 2px solid black;
  padding: 15px 30px;
  border-radius: 30px;
  margin-left: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .custom-ps-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .custom-ps__swiper {
    padding: 8px 44px;
  }
}

@media (max-width: 768px) {
  
  .custom-ps-wrap__fade {
    display: none;
  }
  
  .custom-ps__card {
    margin: 0;
  }
  
  .custom-ps__badges {
    top: 20px;
    right: 20px;
  }
  
  .custom-ps__badge {
    padding: 2px 5px 2px 5px;
    font-size: 14px;
  }
  
  .custom-ps__btn {
    bottom: 20px;
    right: 20px;
  }
  
  .custom-ps__title {
    left: 20px;
    bottom: 20px;
  }
  
  .custom-ps__title a {
    color: white;
    font-size: 32px;
  }

  
  .custom-ps__footer {
    flex-wrap: wrap;
    padding-left: 0px;
    padding-right: 0px;
  }

  .custom-ps__footer .custom-ps__dots {
    width: 60%;
  }
  
  .custom-ps-wrap {
    padding: 50px 16px 50px 16px;
    border-radius: 12px;
  }
  
  .custom-ps-wrap__fade {
    width: 80px;
  }
  
  .custom-ps__title {
    font-size: 18px;
  }

}

@media (max-width: 480px) {
  .custom-ps__viewall {
    margin-left: 0px;
  }
    
  .custom-ps__title a {
    color: white;
    font-size: 24px;
  }
}