/* Add here all your CSS customizations */
#header .header-row {
	display: flex;
	flex-grow: 0;
	align-items: center;
	align-self: stretch;
	max-height: 100%;
}

.timer-box {
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  min-width: 60px;
  transition: all 0.2s ease;
}

.timer-box:hover {
  border-color: #d0d0ff;
  background: #f9f9ff;
}

.timer-value {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
  color: #2c2c2c;
}

.timer-label {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 575.98px) {
  .timer-value { font-size: 1.5rem; }
  .timer-box { min-width: 50px; padding: 0.4rem 0.5rem; }
}


.bg-color-grey {
  background: #eefaff !important;
}

section.section {
    padding: 20px 0 !important;
}


.bg-color-light {
  background-image: url('../images/section-bg.png') !important;
  background-size: cover; /* Scales image to cover entire section */
  background-repeat: no-repeat; /* Prevents tiling of the image */
  background-position: center center; /* Centers the image */
}

.bg-color-light {
  width: 100%;
}

/* make carousel a positioning context */
#myCarousel {
  position: relative;
  overflow: visible; /* allow the overlay to show */
}

/* overlay that appears at the bottom of the carousel */
#myCarousel .carousel-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: rgb(0 0 0 / 74%); /* light transparent black */
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* allow clicks to pass through to controls by default */
}

/* allow interactive children (buttons/links/inputs) inside overlay to be clickable */
#myCarousel .carousel-overlay * {
  pointer-events: auto;
}

/* ensure controls and indicators remain clickable and above overlay */
#myCarousel .carousel-control-prev,
#myCarousel .carousel-control-next,
#myCarousel .carousel-indicators {
  z-index: 10;
}

/* style the countdown cards so they look good on the overlay */
#myCarousel .countdown-card {
  border-radius: .5rem;
  border: 1px solid rgba(255,255,255,0.12);
  height: 72px;
  width: 72px;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  background: rgba(255,255,255,0.03);
  color: #fff;
}

/* numbers larger, label subtle */
#myCarousel .countdown-card strong {
  font-size: 2rem;
  line-height: 1;
}

#myCarousel .countdown-card small {
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  font-size: 1rem;
  margin-top: 4px;
}

/* responsive: reduce card size on small screens */
@media (max-width: 480px) {
  #myCarousel .countdown-card {
    height: 60px;
    width: 60px;
    min-width: 60px;
  }
  #myCarousel .carousel-overlay { padding: 8px; }
  #myCarousel .countdown-card strong { font-size: 1.05rem; }
}

/* Preloader Styles */
body.preloader-active {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    position: fixed !important;
}

.preloader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #ffffff 0%, #f4f9fc 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    max-width: 400px;
    width: 100%;
}

.preloader-logo-container {
    margin-bottom: 30px;
    opacity: 0;
    transform: scale(0.9);
    animation: preloaderLogoFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.preloader-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.preloader-loader {
    width: 180px;
    height: 4px;
    background: #eefaff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.preloader-progress-fill {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #6bcdf7 0%, #342a8b 50%, #6bcdf7 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: preloaderProgressMove 2s infinite cubic-bezier(0.4, 0, 0.2, 1), preloaderGradientShift 4s infinite linear;
}

.preloader-text-status {
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #342a8b;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    animation: preloaderTextFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

@keyframes preloaderLogoFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes preloaderTextFadeIn {
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

@keyframes preloaderProgressMove {
    0% {
        left: -100%;
        right: 100%;
    }
    50% {
        left: 0%;
        right: 0%;
    }
    100% {
        left: 100%;
        right: -100%;
    }
}

@keyframes preloaderGradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}
