:root {
  --gold-primary: #D4AF37;
  --gold-light: #FFD700;
  --blue-primary: #1160AF;
}

.events-section-title {
  text-align: center;
  color: var(--gold-light);
  margin-bottom: 30px;
  font-size: 2.2em;
  padding-top: 30px;
  font-weight: 900;
  text-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  letter-spacing: 2px;
  animation: titleFadeIn 0.7s ease-out;
}

@keyframes titleFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.year-group {
  margin-bottom: 50px;
  animation: groupFadeIn 0.8s ease-out;
}

@keyframes groupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.year-title {
  text-align: center;
  color: var(--gold-light);
  font-size: 2.2em;
  margin-bottom: 30px;
  border-bottom: 3px solid var(--gold-primary);
  padding-bottom: 15px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.year-title:hover {
  text-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
  transform: scale(1.02);
}

.all-events-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.event-box {
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  height: 280px;
  display: flex;
  align-items: flex-end;
  transition: all 0.4s ease;
  border: 2px solid var(--gold-primary);
  cursor: pointer;
}

.event-box:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.3);
}

.event-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.95));
  color: white;
  padding: 25px 15px 15px;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.event-box:hover .event-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.98));
  padding: 30px 15px 15px;
}

.event-overlay h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.5em;
  color: var(--gold-light);
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.event-overlay p {
  margin: 0;
  font-size: 0.95em;
  color: #CCCCCC;
}

.event-box a {
  text-decoration: none;
  color: inherit;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .events-section-title {
    font-size: 1.8em;
  }

  .year-title {
    font-size: 1.6em;
    width: 90%;
  }

  .all-events-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px;
  }

  .event-box {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .events-section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .year-title {
    font-size: 1.3em;
    margin-bottom: 20px;
  }

  .all-events-container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .event-box {
    height: 200px;
  }

  .event-overlay h3 {
    font-size: 1.1em;
  }

  .event-overlay p {
    font-size: 0.85em;
  }
}