/* Additional styles to enhance the initiative numbers */

/* Animated counter effect for the initiative number */
.initiative-number {
  position: relative;
  display: inline-block;
  padding: 10px 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 181, 74, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(230, 181, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 181, 74, 0);
  }
}

/* Add decorative elements around the number */
.initiative-number::before,
.initiative-number::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  z-index: -1;
}

.initiative-number::before {
  top: -10px;
  left: -10px;
}

.initiative-number::after {
  bottom: -10px;
  right: -10px;
}

/* Add a subtle pattern background to the initiative highlight box */
.initiative-highlight {
  background-image: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      #2a307a 100%
    ),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Add a floating icon next to the number */
.number-icon {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

.number-icon i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Add a subtle gradient to the number text */
.initiative-number {
  background: linear-gradient(to right, var(--accent-color), #f0c675);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: 2px;
}

/* Add a counter animation effect */
.counter-wrapper {
  position: relative;
  display: inline-block;
}

/* Enhance the initiative title with a subtle underline */
.initiative-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.initiative-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

/* Add a subtle shadow to the text for better readability */
.initiative-description {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Add a highlight effect to important words in the description */
.highlight-word {
  color: var(--accent-color);
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .initiative-number {
    font-size: 3rem;
    padding: 5px 20px;
  }

  .number-icon {
    width: 30px;
    height: 30px;
    top: -10px;
    right: -10px;
  }

  .number-icon i {
    font-size: 1rem;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
