body {
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Smooth background animation */
  animation: bgMove 10s ease-in-out infinite alternate;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.next-event {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeIn 1s ease;
  background: rgba(40, 60, 90, 0.45);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(7px);
  border-radius: 18px;
  padding: 32px 40px 24px 40px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: box-shadow 0.3s;
}

.next-event:hover {
  box-shadow: 0 12px 40px 0 rgba(52,152,219,0.25);
  transform: translateY(-4px) scale(1.02);
  transition: box-shadow 0.3s, transform 0.3s;
}

.next-event h1 {
  font-size: 2.3em;
  color: #5dade2;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(52,152,219,0.15);
  animation: slideDown 1.2s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px);}
  to { opacity: 1; transform: translateY(0);}
}

#next-event {
  font-size: 1.25em;
  color: #f7faff;
  letter-spacing: 0.5px;
  margin-top: 8px;
  transition: color 0.3s;
}

#next-event:hover {
  color: #85c1e9;
}

.calendar-section {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  animation: fadeIn 1.5s ease;
  padding: 0 20px;
}

#mini-calendar {
  background: rgba(34, 40, 49, 0.7);
  padding: 32px 28px;
  border-radius: 18px;
  width: 100%;
  box-shadow: 0px 0px 32px rgba(52,152,219,0.18);
  min-height: 420px;
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(5px);
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#mini-calendar:hover {
  box-shadow: 0px 0px 48px rgba(52,152,219,0.28);
  transition: box-shadow 0.3s;
}

/* Mini Calendar Event Item */
.event-item {
  margin-bottom: 20px;
  padding: 18px 18px 14px 18px;
  border-left: 5px solid #5dade2;
  background: rgba(26, 26, 34, 0.85);
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(52,152,219,0.08);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s;
}

.event-item:hover {
  border-left: 5px solid #e67e22;
  box-shadow: 0 4px 24px 0 rgba(230,126,34,0.13);
  transform: scale(1.025);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

.event-item h3 {
  margin: 0;
  font-size: 1.18em;
  color: #5dade2;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.event-item:hover h3 {
  color: #e67e22;
}

.event-item p {
  margin: 5px 0 0;
  font-size: 1em;
  color: #eaeaea;
  opacity: 0.92;
  transition: color 0.3s;
}

.event-item:hover p {
  color: #ffd9b3;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Countdown timer style */
.countdown {
  font-size: 1.08em;
  color: #e74c3c;
  font-weight: bold;
  letter-spacing: 1px;
  animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
  from { color: #e74c3c; }
  to { color: #ffb3a7; }
}

::-webkit-scrollbar {
  width: 8px;
  background: #232526;
}
::-webkit-scrollbar-thumb {
  background: #5dade2;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .calendar-section {
    padding: 10px;
  }
  .next-event {
    padding: 18px 10px 14px 10px;
  }
  .next-event h1 {
    font-size: 1.5em;
  }
  #next-event {
    font-size: 1em;
  }
  #mini-calendar {
    padding: 14px 6px;
    min-height: 300px;
  }
  .event-item {
    padding: 10px 8px 8px 8px;
  }
  
  .main-footer {
    font-size: 0.95em;
    padding: 14px 0 10px 0;
    border-radius: 0 0 10px 10px;
  }
}

.main-footer {
  width: 100%;
  margin-top: 48px;
  padding: 22px 0 18px 0;
  background: rgba(34, 40, 49, 0.65);
  border-top: 1.5px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 24px 0 rgba(52,152,219,0.10);
  backdrop-filter: blur(5px);
  text-align: center;
  font-size: 1.08em;
  color: #b2bec3;
  letter-spacing: 0.5px;
  border-radius: 0 0 18px 18px;
  animation: fadeIn 1.2s;
}

.main-footer span {
  color: #85c1e9;
  font-weight: 500;
  letter-spacing: 1px;
}
