/* Promotion Component Styles */
.promotion-container {
  padding: 40px 195px 0 195px;
  @media (max-width: 1600px) {
    padding: 40px 80px 0 80px;
  }
  @media (max-width: 1024px) {
    padding: 20px;
  }
  .slick-dotted.slick-slider {
    margin-bottom: 20px;
  }
  .slick-slide {
    border-radius: 15px; /* Adjust radius as needed */
    overflow: hidden;    /* Essential to keep content inside */
}
}
.promotion-container-end {
  height: 40px !important;
  @media (max-width: 1024px) {
    height: 20px !important;
  }
}

/* Promotion Carousel Styles */
.promotion-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

/* Slick carousel will handle the layout for .promotion-carousel__track */

.promotion-carousel__track .slick-list {
  border-radius: 20px;
}

.promotion-carousel__track .slick-track {
  display: flex;
}

.promotion-carousel__slide {
  /* Slick carousel will handle the slide width */
  outline: none;
}

.promotion-carousel__indicators .slick-dots li {
  height: 25px;
  background-color: rgba(255, 255, 255, 0.8);
}

.promotion-carousel__indicators .slick-dots li.slick-active {
  background-color: var(--b9-primary-color);
}

@media (max-width: 1024px) {
  .promotion-carousel__indicators {
    bottom: 10px;
    gap: 6px;
  }

  .promotion-carousel__indicator {
    width: 10px;
    height: 10px;
  }

  .promotion-carousel__indicator.active {
    width: 24px;
  }
}

@media (max-width: 576px) {
  .promotion-carousel__indicators {
    bottom: 5px;
    gap: 4px;
  }

  .promotion-carousel__indicator {
    width: 8px;
    height: 8px;
  }

  .promotion-carousel {
    border-radius: 0 !important;
  }

  .promotion-carousel__indicator.active {
    width: 20px;
  }
  .promotion-carousel__track .slick-list {
    border-radius: 3px;
  }
  .promotion-container {
    .slick-slide {
      border-radius: 0 !important;
    }
  }
  .promotion-carousel__indicators .slick-dots li {
    height: 23px;
  }
}

.promotion {
  position: relative;
  background-image: url("/assets/img/views/main/home/promotion-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  font-family: "Outfit", sans-serif;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 7;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  .promotion-content {
    position: relative;
    z-index: 2;
  }

  .promotion-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1.25rem;

    font-family: Outfit;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    text-align: center;
  }

  .promotion-button {
    background-color: var(--b9-primary-color); /* Lime green */
    color: white;
    border: none;
    border-radius: 50px;
    height: 48px;
    font-weight: 700;
    font-size: 20px;
    width: 196px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0px 4px 4px 0px #00000040;
    color: #121a22;
    &:hover {
      background-color: var(--b9-primary-hover);
      text-decoration: none;
    }
    .gift-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }
  }

  /* Responsive styles */
  @media (max-width: 1024px) {
    padding: 2rem 0;
    min-height: auto;

    .promotion-text {
      font-size: 16px;
      margin-bottom: 0.5rem;
    }

    .promotion-button {
      padding: 0.625rem 1.5rem;
      font-size: 14px;
      width: 160px;
      height: 40px;
    }
  }
  @media (max-width: 576px) {
    padding: 1rem 0;
    border-radius: 6px;
    aspect-ratio: unset;
    height: 80px;
    .promotion-text {
      font-size: 12px;
      margin-bottom: 0.25rem;
    }
    .promotion-button {
      padding: 0;
      height: 24px;
      font-size: 10px;
      width: 100px;
      gap: 0.25rem;
      svg {
        width: 10px;
        height: 10px;
      }
    }
  }
}

.promotion--pro-coaching {
  background-image: url("/assets/img/views/main/components/promotions/bg-pro-coaching.jpg");
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 260px;
  .promotion-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  img {
    width: 284px;
  }
  .promotion-text {
    font-family: Outfit;
    font-weight: 700;
    font-style: Bold;
    font-size: 43.03px;
    line-height: 140%;
    letter-spacing: 0px;
    text-align: center;
    margin-bottom: 0;
  }
  .promotion-button {
    background-color: var(--b9-primary-color);
    border: none;
    border-radius: 50px;
    height: 64px;
    font-weight: 700;
    font-size: 24px;
    width: 230px;
    svg {
      width: 23px;
      height: 32px;
    }
  }
  @media (max-width: 1600px) {
    padding: 0 180px;
    img {
      width: 200px;
    }
  }
  @media (max-width: 1024px) {
    padding: 0 20px 0 20px;
    justify-content: center;
    img {
      width: 120px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 15%;
    }
    .promotion-content {
      gap: 5px;
      padding-left: 15%;
      .promotion-text {
        font-size: 28px;
      }
      .promotion-button {
        font-size: 16px;
        width: 180px;
        height: 40px;
        svg {
          width: 20px;
          height: 28px;
        }
      }
    }
  }
  @media (max-width: 576px) {
    padding: 0 20px 0 20px;
    justify-content: flex-end;
    img {
      width: 97px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 30px;
    }
    .promotion-content {
      margin-left: -30px;
      gap: 5px;
      .promotion-text {
        font-size: 18px;
      }
      .promotion-button {
        font-size: 14px;
        width: 126px;
        height: 32px;
        svg {
          width: 12px;
          height: 18px;
        }
      }
    }
  }
}

.promotion--break-camps {
  background-image: url("/assets/img/views/main/components/promotions/bg-break-camps.png");
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  .promotion-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    padding-bottom: 20px;
    h3 {
      font-family: "Bai Jamjuree", sans-serif;
      font-weight: 700;
      font-style: Bold;
      font-size: 32px;
      line-height: 100%;
      letter-spacing: 0%;
      text-transform: uppercase;
      color: #fcfcfc;
      text-shadow: 0px 2.13px 6.4px 0px #00000040;
    }
    h2 {
      font-family: Outfit;
      font-weight: 800;
      font-style: ExtraBold;
      font-size: 40px;
      line-height: 140%;
      letter-spacing: 0px;
      text-align: center;
      text-transform: uppercase;
      color: #fcfcfc;
      margin-top: 10px;
    }
    h4 {
      font-family: "Odibee Sans", sans-serif;
      font-weight: 400;
      font-size: 24px;
      line-height: 100%;
      letter-spacing: 4px;
      text-align: center;
      text-transform: uppercase;
      color: #fcfcfc;
      margin-top: 15px;
    }
  }
  .break-camps-left {
    position: absolute;
    left: -4%;
    top: -10%;
    height: 120%;
    clip-path: url(#shape1);
  }
  .break-camps-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    clip-path: url(#shape2);
  }
  .break-camps-left-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
  @media (max-width: 1024px) {
    .promotion-content {
      padding-left: 0;
      padding-bottom: 0;
      h3 {
        font-size: 16px;
      }
      h2 {
        font-size: 20px;
        margin-top: 0;
      }
      h4 {
        font-size: 12px;
        margin-top: 3px;
        letter-spacing: 1.5px;
      }
    }
    .break-camps-left {
      left: -4%;
    }
    .break-camps-right {
      right: 0%;
    }
  }
  @media (max-width: 576px) {
    background-image: url("/assets/img/views/main/components/promotions/bg-pro-coaching.jpg");
    .promotion-content {
      padding-left: 0;
      padding-bottom: 0;
      h3 {
        font-size: 12px;
      }
      h2 {
        font-size: 15px;
        margin-top: 0;
      }
      h4 {
        font-size: 9px;
        margin-top: 3px;
        letter-spacing: 1.5px;
      }
    }
    .break-camps-left {
      left: -18%;
    }
    .break-camps-right {
      right: -12%;
    }
  }
}

.promotion--kid-camps {
  background-image: url("/assets/img/views/main/components/promotions/bg-kid-camps.png");
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 15%;
  .overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-bottom: 15px;
    h5 {
      font-family: "Odibee Sans", sans-serif;
      font-weight: 400;
      font-size: 20px;
      line-height: 100%;
      text-align: center;
      text-transform: uppercase;
      color: #fcfcfc;
      margin-top: 15px;
    }
    h2 {
      font-family: Outfit;
      font-style: ExtraBold;
      font-size: 101px;
      line-height: 1;
      margin-top: -5px;
      letter-spacing: 0px;
      margin-bottom: 0;
      text-align: center;
      text-transform: uppercase;
      color: #fcfcfc;
    }
    h4 {
      font-family: Outfit;
      font-size: 26px;
      line-height: 140%;
      letter-spacing: 0px;
      text-align: center;
      text-transform: uppercase;
      color: #fcfcfc;
      width: 100%;
      text-align: center;
    }
    .mask {
      margin-top: 15px;
      background: linear-gradient(198.22deg, #9dc44d -15.57%, #3b683d 138.49%);
      width: 240px;
      height: 36px;
      bottom: 20%;
      box-shadow: 0.67px 1.35px 4.04px 0px #0c351d73;
      position: relative;
      h4 {
        position: absolute;
        top: -15px;
      }
    }
  }
  .promotion-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 80px;
    h2 {
      font-family: Outfit;
      font-weight: 800;
      font-style: ExtraBold;
      font-size: 32px;
      line-height: 140%;
      letter-spacing: 0px;
      text-align: left;
      text-transform: uppercase;
      color: #fcfcfc;
      &:last-child {
        margin-top: -15px;
      }
    }
    h4 {
      font-family: Outfit;
      font-weight: 400;
      font-size: 20px;
      line-height: 100%;
      text-align: left;
      color: #fcfcfc;
    }
    .separator {
      width: 210px;
      margin: 10px 0;
      height: 10px;
      background-color: #fcfcfc;
      margin-top: 15px;
      background: linear-gradient(0deg, #9dc44d 0%, #3b683d 100%);
    }
    h2.brand-name {
      margin-top: -15px;
    }
  }
  .right-image {
    background-image: url("/assets/img/views/main/components/promotions/kid-camps-right-image.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    width: 28%;
    height: 100%;
    right: -10px;
    top: 0;
    @media (max-width: 820px) {
      width: 29%;
    }
  }
  @media (max-width: 1024px) {
    padding-left: 10%;
    .overview {
      -webkit-transform: scale(0.6); /* Safari support */
      transform: scale(0.6);
      -webkit-transform-origin: 0; /* Ensures zoom starts from top-left */
      transform-origin: 0;
    }
    .promotion-content {
      -webkit-transform: scale(0.65); /* Safari support */
      transform: scale(0.65) translateX(-50%);
      -webkit-transform-origin: 0; /* Ensures zoom starts from top-left */
      transform-origin: 0;
    }
  }
  @media (max-width: 576px) {
    padding-left: 5%;
    .overview {
      -webkit-transform: scale(0.4); /* Safari support */
      transform: scale(0.4);
      -webkit-transform-origin: 0; /* Ensures zoom starts from top-left */
      transform-origin: 0;
    }
    .promotion-content {
      -webkit-transform: scale(0.4); /* Safari support */
      transform: scale(0.4) translateX(-50%);
      -webkit-transform-origin: 0; /* Ensures zoom starts from top-left */
      transform-origin: 0;
    }
  }
}
