.custom-carousel-container {
  position: relative;
  padding: 2rem 0;
}
.custom-carousel-container::before {
  content: "";
  background: url(/wp-content/uploads/2025/04/yellow-stars.svg) no-repeat left top;
  height: 100%;
  width: 25vw;
  max-width: 320px;
  top: -13rem;
  position: absolute;
  left: 50%;
  aspect-ratio: auto;
  background-size: contain;
  z-index: 1;
  transform: translateX(-50vw) rotate(-10deg);
}

.custom-carousel-container .swiper-wrapper{
  align-items: flex-end;
}

.swiper-slide {
  width: 300px;
  overflow: hidden;
  
}

.swiper-slide > div{
  display: flex;
  flex-direction: column;
  
  border-radius: 12px;
}

.custom-nav {
  position: absolute;
  top: -6rem;
  right: 50%;
  max-width: 1440px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 0 10px;
  transform: translateX(50%);
}
.custom-nav>div{
  position: relative;
  width: 75px;
  height: 32px;
  background: var(--bricks-color-qcrtsh);
  border-radius: 32px;
  box-shadow: 0 0 0 7px var(--bricks-color-qcrtsh);
}

.custom-pagination{
  display: flex;
  justify-content: flex-end;
}
.custom-pagination .bricks-pagination {
   width: fit-content;
  background: var(--bricks-color-qcrtsh);
  padding: 7px;
  border-radius: 3rem;
  color: white;
}
.custom-pagination .bricks-pagination ul {
  gap: 10px;
}
.custom-pagination a{
  text-decoration: none;
}
.custom-pagination li:hover,  .custom-pagination li:has(>span.current){
  background-color: var(--bricks-color-iekwwl) !important;
}
.custom-pagination li span {
  font-weight: 700;
}

.custom-arrow, .custom-pagination li {
  background-color: rgba(136, 219, 223, 0.45);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  left: 0;
  top: 68%;
}
.custom-arrow::after{
  content: "";
}
.custom-arrow:hover {
  background-color: var(--bricks-color-iekwwl);
}
.swiper-button-next.custom-arrow img{
  transform: rotate(180deg);
}
.swiper-button-next.custom-arrow{
  right: 0;
  left: auto;
}

.carousel-card {
  position: relative;
  overflow: hidden;
  background-color: #000;
  color: white;
  height: 100%;
  border-radius: 12px;
}
.carousel-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.05);
}
.carousel-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    transition: height 0.3s ease;
    z-index: 1;
    border-radius: 0 0 12px 12px;
}
.carousel-card:hover::after {
    height: 50%;
}

.carousel-card img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  aspect-ratio: 1;
  display: block;
  transition: 0.3s ease;
}
 .carousel-card:hover img {
  transform: scale(1.05);
} 



.carousel-card h3 {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  font-size: 70px;
  font-family: "Manuka";
  font-weight: 700;
  color: white;
  z-index: 2;
  line-height: 1;
  transition: transform 0.3s ease;
}


.carousel-card:hover h3 {
  transform: translateY(-6rem);
}


.carousel-card span {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}


.carousel-card:hover span {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  cursor: pointer;
  transition: .3s;
}
.mobile-heading, .mobile-btn{
  display: none;
}
.desktop-heading, .desktop-btn{
  display: initial;
}
@media all and (max-width: 1040px) {
  .carousel-card h3{
    font-size: 60px;
  }
  .two-cta-container .carousel-card:hover h3 {
    transform: initial;
  }
  .two-cta-container .desktop-btn{
    display: none;
  }
  .two-cta-container .carousel-card:hover::after {
    height: 30%;
}
  .carousel-card:hover h3 {
    transform: translateY(-7rem);
  }
}
@media all and (max-width: 767px) {
  .swiper.sibling-swiper.full-width-section{
    transform: translatex(calc(-50vw + var(--body-padding-left)));
    width: calc(100vw - var(--body-padding-left));
  }
  .not-carousel .swiper.sibling-swiper.full-width-section{
    transform: inherit;
    width: 100vw;
  }
  .custom-carousel-container::before{
    top: 70%;
  }
  .not-carousel.custom-carousel-container::before{
    top: -6rem;
    width: 40vw;
  }

  .swiper-slide > div{
    box-shadow: initial;
    border-radius: 0;
  }

  .carousel-card:hover h3 {
    transform: initial;
  }
  .carousel-card:hover img{
    transform: initial;
  } 
  .carousel-card:hover::after {
    height: 30%;
  }
  .carousel-card h3{
    font-size: 40px;
    bottom: 1rem;
    left: 2rem;
  }
  .not-carousel h3{
    font-size: var(--gap-md);
    bottom: 2rem;
    margin-right: 2rem;
  }
  .mobile-heading, .mobile-btn{
    display: initial;
  }
  .mobile-heading{
  margin-bottom: 1rem;
  }
  .mobile-btn{
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: fit-content !important;
    padding: 15px 30px 15px 30px !important;
  }
  .desktop-heading, .desktop-btn,
  .not-carousel .mobile-btn, .not-carousel .mobile-heading{
    display: none;
  }
  .not-carousel .desktop-heading, .not-carousel .desktop-btn{
    display: initial;
  }
  .homepage-tiles .carousel-card h3{
    transform: translateY(-110%);
  }
  .not-carousel{
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translatex(-50%);
  }
  .not-carousel .swiper-slide:first-child .carousel-card{
    border-radius: 0 12px 12px 0;
  }
  .not-carousel .swiper-slide:last-child .carousel-card{
    border-radius: 12px 0 0 12px;
  }
  .not-carousel .carousel-card::after{
    height: 50%;
  }
  .not-carousel .swiper-slide:first-child .carousel-card::after{
    border-radius: 0 0 12px 0;
    height: 50%;
  }
  .not-carousel .swiper-slide:last-child .carousel-card::after{
    border-radius: 0 0 0 12px;
  }
  .not-carousel .custom-nav{
    margin-right: var(--body-padding-right);
  }
}