html, body {
  margin: 0;
  padding: 0;
  font-size: 14px;
}

body {
  font-size: 1rem;
}

#events-list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 10px;
}

#events-list li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 15px;
}

#events-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.event-date-container {
  font-family: 'Eurostile', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #365f91;
  color: white;
  width: 100px; 
  height: 95%; 
  text-align: center;
  margin-right: 20px;
  border-radius: 8px;
  flex-shrink: 0; 
}

.event-month {
  padding: 5px;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
}

.event-day {
  font-size: 2.5rem; 
  font-weight: bold;
  line-height: 1;
  width: 90%; 
  height: 40%; 
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.event-date-container .divider {
  width: 100%;
  border-top: 1px solid #447BB2;
  margin: 5px 0;
}

.event-item strong {
  font-family: 'Eurostile', sans-serif;
  font-size: 1.1rem;
  color: #365f91;
  margin-bottom: -10%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}


.event-item, .event-item a {
  text-decoration: none;
  color: #444;
  display: block;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
}

.event-item a {
  font-weight: 700;
  color: #0A8FD1;
}

.event-item a:hover {
  color: #F1CB23;
  text-decoration: underline;
}

.event-item:hover {
  background: #f5f5f5;
}

.event-time {
  font-family: Arial, sans-serif;
  color: black;
  margin: 0; 
}

.event-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.more-details-link {
  margin-top: -5px;
  font-size: 1rem;
  font-weight: normal;
}

.more-details-link:hover {
  text-decoration: underline;
}

/* Responsive Grid Layout */
@media screen and (min-width: 768px) {
  /* Tablet: Two columns */
  #events-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-month {
    font-size: 1.5rem;
  }

  .event-day {
    font-size: 2.5rem;
  }

  .event-item strong {
    font-size: 1.3rem;
  }
}

@media screen and (min-width: 1024px) {
  /* Desktop: Three columns */
  #events-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .event-month {
    font-size: 1.5rem;
  }

  .event-day {
    font-size: 2.5rem;
  }

  .event-item strong {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 767px) {
  /* Mobile: Single column */
  #events-list {
    grid-template-columns: 1fr;
  }

  .event-date-container {
    width: 100px;  
    height: 95%; 
  }

  .event-month {
    font-size: 1.4rem;
  }

  .event-day {
    font-size: 2.2rem;
  }

  .event-item strong {
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) {
  /* Small mobile screens */
  html {
    font-size: 12px;
  }
  .event-date-container {
    width: 100px;  
    height: 95%; 
  }
  .event-month {
    font-size: 1.4rem;
    padding: 0 0 10px 0;
  }

  .event-day {
    font-size: 2.2rem;
    padding: 20px 0 10px 0;
  }

  .event-item strong {
    font-family: 'Eurostile', sans-serif;
    font-size: 1.2rem;
    color: #365f91;
    margin-bottom: 4%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }
    .more-details-link {
    margin-top: 3%;
    font-size: 1rem;
    font-weight: normal;
  }
}
}

