/* ============================================================
   EVENTS PAGE (events.html, opened as /events)

   A column of cards, one per upcoming event: its picture when it has one,
   then the title, when and where, a few lines of description, and the
   button to its sign-up page. Two columns once there is room.
   ============================================================ */
.events-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 5% 80px;
}

.events-back {
  display: inline-block; margin-bottom: 24px; color: var(--yellow);
  font-family: 'Barlow Condensed', 'Heebo', sans-serif; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
}
.events-back:hover { text-decoration: underline; }

.events-head { margin-bottom: 32px; }
.events-intro { color: #ccc; line-height: 1.8; max-width: 70ch; }

.events-notice {
  padding: 18px 20px; border-radius: 6px; line-height: 1.6;
  background: var(--dark2); border: 1px solid rgba(245,200,0,0.25); color: var(--white);
}

.events-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 24px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}

.events-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  transition: border-color .2s;
}
.events-card:hover { border-color: rgba(245,200,0,0.4); }

.events-pic {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--dark3);
}

.events-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }

.events-title {
  font-family: 'Barlow', 'Heebo', sans-serif; font-weight: 900;
  font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere;
}
.events-title a { color: var(--white); text-decoration: none; }
.events-title a:hover { color: var(--yellow); }

.events-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--white); font-size: 0.95rem; }
.events-facts li { overflow-wrap: anywhere; }

/* A long description is cut to a few lines; the full text is on the event's page. */
.events-desc {
  color: #bbb; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}

.events-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.events-badge {
  padding: 4px 12px; border-radius: 999px; font-size: 0.8rem;
  color: #ff8080; border: 1px solid rgba(255,80,80,0.5);
}
.events-card.is-full .events-pic { filter: grayscale(0.6); opacity: 0.8; }

@media (max-width: 600px) {
  .events-wrap { padding-top: 100px; }
  .events-foot .btn-primary, .events-foot .btn-secondary { flex: 1; text-align: center; }
}
