/* ==========================================================================
   COUNTDOWN SECTION STYLES
   ========================================================================== */

/* Base Section Styles */
.countdown-section {
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  background-color: #1a1a1a;
}

.countdown-section .pattern-left {
  top: 0;
  left: 0;
}

.countdown-section .pattern-right {
  top: 0;
  right: 0;
}

@media (max-width: 767px) {
  .countdown-section .pattern-right {
    display: none;
  }
}

.countdown-section.has-button {
  height: 320px;
}

/* Background Image Styles */
.countdown-section .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.countdown-section .background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.countdown-section .background-image .desktop-image {
  display: none;
}

.countdown-section .background-image .mobile-image {
  display: block;
}

/* Overlay */
.countdown-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  border-radius: 8px;
  opacity: 0.3;
}

/* Container and Content */
.countdown-section .container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  z-index: 10;
  height: 100%;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-section .content {
  text-align: center;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
.countdown-section .title {
  font-size: 24px;
  margin-bottom: 24px;
  margin-top: 0;
  color: #ffffff;
}

.countdown-section .description {
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 512px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  opacity: 0.9;
}

/* Countdown Timer */
.countdown-section .countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.countdown-section .countdown-item {
  text-align: center;
}

.countdown-section .countdown-number {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding-block: 16px;
  width: fit-content;
  min-width: 104px;
  border: 1px solid white;
}

.countdown-section .number {
  display: block;
  font-size: 20px;
  line-height: 1;
  color: #ffffff;
}

.countdown-section .label {
  display: block;
  font-size: 14px;
  margin-top: 8px;
  color: #ffffff;
  opacity: 0.8;
}

.countdown-section .countdown-separator {
  display: none;
}

/* CTA Button */
.countdown-section .cta-button {
  text-align: center;
}

.countdown-section .cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 165px;
  height: 44px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 8px;
  background-color: #ebc117;
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Custom Styling Variables */
.countdown-section[data-bg-color] {
  background-color: var(--bg-color);
}

.countdown-section .custom-color {
  color: var(--custom-color) !important;
}

.countdown-section .custom-button {
  background-color: var(--button-bg) !important;
  color: var(--button-text) !important;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Desktop (768px and up) */
@media (min-width: 768px) {
  .countdown-section.has-button {
    min-height: 398px;
  }

  .countdown-section .background-image .desktop-image {
    display: block;
  }

  .countdown-section .background-image .mobile-image {
    display: none;
  }

  .countdown-section .title {
    font-size: 36px;
  }

  .countdown-section .countdown-number {
    padding-block: 27px;
    border: 1px solid white;
  }

  .countdown-section .number {
    font-weight: 400;
    font-size: 36px;
    line-height: 150%;
    line-height: 1;
  }

  .countdown-section .label {
    font-size: 16px;
  }

  .countdown-section .countdown-separator {
    display: block;
    height: 110px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* Mobile (767px and below) */
@media (max-width: 768px) {
  .countdown-section .countdown-number {
    min-width: 70px;
  }
}
