/* Font Styling */
.sarabun-light {
  font-family: 'Sarabun', sans-serif;
  font-weight: 300;
}

/* Header Banner Base Styles */
.header-banner.uk-background-black {
  background-color: #000 !important;
  padding: 10px 10px 30px;
}

.header-banner .headline {
  font-size: 68px;
  line-height: 1.1;
  margin: 0;
  max-width: 100%;
  letter-spacing: 3px !important;
  color: #F3F4F8;
  white-space: normal;
  word-break: normal;
}

.header-banner .text-content {
  position: relative;
  z-index: 2;
  margin-bottom: -50px;
  transition: transform 0.4s ease;
  white-space: normal;
}

.header-banner .gradient-heading {
  font-weight: bold;
  background: linear-gradient(90deg, #00B1F7, #1E1DA5, #8A69D4, #EC3FFF, #EB7722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% auto;
  animation: gradientHeading 5s ease infinite;
  display: inline-block;
  letter-spacing: 3px;
}

@keyframes gradientHeading {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Countdown Styling */
.header-banner .flexi-countdown {
  font-size: 27px;
  padding: 20px 30px;
  border-radius: 50px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.6px;
  text-decoration: none;
  display: inline-block;
  background: linear-gradient(#000, #000) padding-box,
              linear-gradient(90deg, #00B1F7, #1E1DA5, #8A69D4, #EC3FFF, #EB7722) border-box;
  border: 3px solid transparent;
  background-size: 300% auto;
  background-position: 0% center;
  animation: gradientBorderMove 5s ease infinite;
  transition: all 0.4s ease;
}

.header-banner .countdown-overlay {
  position: absolute;
  top: 100px;
  left: 50%;
  border-radius: 12px;
  text-align: center;
}

/* Image Container */
.header-banner .image-container {
  position: relative;
  width: 750px;
  height: 750px;
  max-width: 100%;
  margin: 0 auto;
}

.header-banner .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Text Transform Adjustments */
@media (min-width: 2400px) {
  .header-banner .text-content {
    transform: translateX(320px);
  }
}

@media (min-width: 2100px) and (max-width: 2399px) {
  .header-banner .text-content {
    transform: translateX(310px);
  }
}

@media (min-width: 1880px) and (max-width: 2099px) {
  .header-banner .headline,
  .header-banner .text-content {
    white-space: nowrap;
  }
  .header-banner .text-content {
    transform: translateX(115px);
  }
}
/* SMALL LAPTOP: wrap headline into two lines */
@media (max-width: 1440px) {
  .header-banner .headline {
    font-size: 56px;
    line-height: 1.2;
    white-space: normal;
  }

  .header-banner .flexi-countdown {
    font-size: 22px;
    padding: 16px 24px;
  }


/* TABLET: centralise layout and stack nicely */
@media (max-width: 1023px) {
  .header-banner.uk-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-banner .text-content,
  .header-banner .image-wrapper {
    width: 100% !important;
    padding: 20px 0;
    text-align: center !important;
    transform: none !important;
  }

  .header-banner .image-container {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
  }

  .header-banner .image-container img {
    height: auto;
  }

  .header-banner .countdown-overlay {
    position: static;
    margin-top: 10px;
    transform: none;
  }
}

/* MOBILE: scale down text, spacing, countdown size */
@media (max-width: 767px) {
  .header-banner .headline {
    font-size: 48px;
    letter-spacing: 2px;
  }

  .header-banner .gradient-heading {
    font-size: inherit;
    letter-spacing: inherit;
  }

  .header-banner .flexi-countdown {
    font-size: 18px;
    padding: 12px 18px;
  }

  .header-banner .image-container {
    max-width: 400px;
  }
}

/* VERY SMALL MOBILE */
@media (max-width: 480px) {
  .header-banner .headline {
    font-size: 38px;
  }

  .header-banner .flexi-countdown {
    font-size: 16px;
    padding: 10px 16px;
  }

  .header-banner .image-container {
    max-width: 300px;
  }
}
  .header-banner .text-content {
    margin-bottom: -20px;
  }
}
@media (min-width: 1445px) and (max-width: 1879px) {
  .header-banner .countdown-overlay {
    top: auto;
    position: right;
    transform: none;
  }
}

@media (min-width: 1024px) and (max-width: 1444px) {
  .header-banner .countdown-overlay {
    top: auto;
    position: right;
    transform: none;
  }
}