/* =========================
   EVENTS PAGE ONLY
========================= */

.events-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 90px;
}

/* ===== HERO ===== */
.events-hero {
  text-align: center;
  max-width: 950px;
  margin: 0 auto 55px;
}

.events-title {
  font-size: 3rem;
  font-weight: 900;
  margin: 0 0 16px;
  color: #222;
}

.events-subtext {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #444;
  margin: 0;
}

/* ===== NEXT EVENT + MAP ===== */
.next-event-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* left text, right map */
  gap: 26px;
  align-items: stretch;
  margin-bottom: 70px;
}

/* Left text card */
.next-event-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 34px 32px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.next-event-kicker {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #7a003c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.next-event-title {
  margin: 0 0 14px;
  font-size: 2.2rem;
  color: #222;
}

.next-event-desc {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.85;
  color: #444;
}

/* Right map card */
.map-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  min-height: 360px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== PAST FUNCTIONS ===== */
.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin: 0 0 30px;
  color: #222;
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards horizontally on desktop */
  gap: 18px;
}

.past-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.past-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
}

.past-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.past-info {
  padding: 14px 14px 16px;
  text-align: center;
}

.past-info h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #222;
}

.past-date {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1050px) {
  .past-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .next-event-section {
    grid-template-columns: 1fr; /* stack text above map */
  }

  .map-card {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .events-title {
    font-size: 2.2rem;
  }

  .past-grid {
    grid-template-columns: 1fr;
  }
}
