/*
 * Upcoming Event Widget Styles
 */

.upcoming-event-widget {
  position: absolute;
  top: 35%;
  right: 20%;
  transform: translateY(-50%);
  width: 250px;
  height: 180px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: white;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  z-index: 10;
}

.upcoming-event-widget:hover {
  transform: translateY(calc(-50% - 5px));
  box-shadow: 0 12px 32px rgba(31, 38, 135, 0.3);
}

.calendar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

.calendar-icon svg {
  width: 100%;
  height: 100%;
}

.event-date {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.event-name {
  font-size: 16px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

}

.event-countdown {
  font-size: 14px;
  font-weight: 300;
  color: #f5b942;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .upcoming-event-widget {
    right: 5%;
  }
}

@media (max-width: 768px) {
  .upcoming-event-widget {
    position: absolute;
    top: 20%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin: 0;
    width: 90%;
    max-width: 280px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }

  .upcoming-event-widget:hover {
    transform: translateX(-50%) translateY(-5px);
  }

  .hero-section .container {
    padding-top: 220px;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }
}
