/* Redesigned Events page styles - modern card grid */
:root {
  --card-bg: #ffffff;
  --muted: #6c757d;
  --accent: #0d6efd;
  --brand: #008080;
  --page-pad: 24px;
}
.events-section {
  padding: 40px 16px;
}
.events-section h1 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
  color: #0b5560;
  letter-spacing: 0.2px;
}
.events-section p.text-muted {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Grid */
#eventsList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card */
.event-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(18, 38, 63, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(18, 38, 63, 0.1);
}
.event-card .event-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.event-card .event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card .event-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.event-card h3 a {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #008080;
  line-height: 1.12;
  text-decoration: none;
}
.event-card h3 a:hover {
  text-decoration: underline;
}
.event-card h3 {
  font-size: 1.05rem;
  margin: 0;
  color: #07373a;
  line-height: 1.25;
}
.event-meta {
  color: var(--muted);
  font-size: 0.875rem;
}
.event-card p.summary {
  color: #495057;
  margin: 0;
  font-size: 0.95rem;
}
.event-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #f1f3f5;
}
.btn-teal-outline {
  /* keep the existing utility but refined */
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-teal-outline:hover {
  background: rgba(0, 128, 128, 0.06);
}

/* Pager */
.pager {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* Empty state centered */
.events-empty {
  padding: 28px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}

/* Responsiveness */
@media (max-width: 1024px) {
  #eventsList {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-card .event-image {
    height: 160px;
  }
}
@media (max-width: 600px) {
  #eventsList {
    grid-template-columns: 1fr;
  }
  .event-card .event-image {
    height: 220px;
  }
}

/* Small tweaks for legacy selectors used in the page JS */
.event-item {
  display: contents;
}
.event-item .event-card {
  width: 100%;
}
