/* ═══ Events Page ═══ */
.ev-page {
  padding: 48px 0 80px;
}

.ev-container {
  max-width: 1100px;
}

/* ── Section ── */
.ev-section {
  margin-bottom: 64px;
}

.ev-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a212b;
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.ev-year-heading {
  font-size: 22px;
  font-weight: 700;
  color: #1a212b;
  margin: 40px 0 16px;
}

.ev-empty {
  color: #888;
  font-size: 15px;
  padding: 24px 0;
}

/* ── Upcoming Table ── */
.ev-table-wrap {
  margin-top: 0;
  overflow-x: auto;
}

.ev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ev-table thead tr {
  background: #f5f5f5;
}

.ev-table th {
  text-align: left;
  font-weight: 600;
  color: #1a212b;
  font-size: 13px;
  padding: 10px 16px;
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
}

.ev-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #333;
}

.ev-table tbody tr:last-child td {
  border-bottom: none;
}

.ev-table tbody tr:hover {
  background: #fafafa;
}

.ev-table-name {
  font-weight: 600;
  color: #1a212b !important;
  min-width: 220px;
}

.ev-table-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 8px;
  display: block;
}

.ev-table-date {
  color: var(--color-primary) !important;
  white-space: nowrap;
}

.ev-table-location {
  color: #555 !important;
  min-width: 140px;
}

.ev-table-details {
  text-align: center;
  width: 60px;
}

.ev-table-link {
  font-size: 18px;
  color: #1a212b;
  text-decoration: none;
  font-weight: 700;
}

.ev-table-link:hover {
  color: var(--color-primary);
}

.ev-table-empty {
  color: #888;
  padding: 24px 16px !important;
}

/* ── Past Events Grid ── */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.ev-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}

.ev-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .10);
  transform: translateY(-2px);
  text-decoration: none;
}

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

.ev-card-body {
  padding: 20px;
  flex: 1;
}

.ev-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a212b;
  margin: 0 0 8px;
  line-height: 1.4;
}

.ev-card-date {
  font-size: 13px;
  color: var(--color-primary);
  margin: 0 0 4px;
}

.ev-card-location {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* ── Past Events Grid ── */
.ev-grid--past {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.ev-card--past .ev-card-img img,
.ev-card--past .ev-card-img-placeholder {
  height: 130px;
}

.ev-card-img-placeholder {
  width: 100%;
  background: #1a212b;
  display: block;
}

.ev-card--past .ev-card-body {
  padding: 14px 16px;
}

.ev-card--past .ev-card-title {
  font-size: 14px;
  margin-bottom: 6px;
}

/* ── Responsive ── */
@media (max-width: 768px) {

  .ev-grid,
  .ev-grid--past {
    grid-template-columns: repeat(2, 1fr);
  }

  .ev-section-title {
    font-size: 22px;
  }

  .ev-year-heading {
    font-size: 18px;
  }
}