/* Events listing + detail */
.events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.events-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 58, 158, 0.25);
  color: #3d3a9e;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
}
.events-filter.is-active,
.events-filter:hover {
  background: #3d3a9e;
  color: #fff;
  border-color: #3d3a9e;
}
.events-section {
  padding: 2.5rem 0 4rem;
}
.events-empty {
  text-align: center;
  color: #667085;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 40, 100, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 40, 100, 0.12);
}
.event-card-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef2f8;
  overflow: hidden;
}
.event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.event-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #3d3a9e;
  font-weight: 700;
}
.event-timing {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.event-card-cover .event-timing {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}
.event-timing--upcoming { background: #e8efff; color: #2746a8; }
.event-timing--ongoing { background: #e7f8ef; color: #0f8a4b; }
.event-timing--past { background: #eef1f5; color: #5b6472; }
.event-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.event-card-title {
  margin: 0;
  font-size: 1.15rem;
  color: #1d2550;
}
.event-card-meta,
.event-card-venue {
  margin: 0;
  color: #5b6472;
  font-size: 0.92rem;
}
.event-card-summary {
  margin: 0.35rem 0 0;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.5;
}
.event-card-cta {
  margin-top: auto;
  padding-top: 0.75rem;
  color: #3d3a9e;
  font-weight: 700;
  font-size: 0.9rem;
}

.event-detail-hero .event-timing {
  margin-bottom: 0.75rem;
}
.event-breadcrumb {
  margin-bottom: 0.75rem;
  color: #667085;
  font-size: 0.9rem;
}
.event-breadcrumb a {
  color: #3d3a9e;
  text-decoration: none;
}
.event-detail {
  padding: 2rem 0 4rem;
}
.event-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.75rem;
  align-items: start;
}
.event-detail-flyer {
  background: #f4f6fb;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6ebf2;
  margin-bottom: 1.25rem;
}
.event-detail-flyer img {
  display: block;
  width: 100%;
  height: auto;
}
.event-detail-body {
  line-height: 1.7;
  color: #333;
}
.event-detail-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 40, 100, 0.08);
  position: sticky;
  top: 6rem;
}
.event-detail-card h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: #1d2550;
}
.event-detail-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.event-detail-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8494;
  margin-bottom: 0.15rem;
}
.event-detail-list dd {
  margin: 0;
  color: #24304a;
  font-weight: 600;
}
.event-contacts {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eef2f7;
}
.event-contacts h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}
.event-contacts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.event-contacts a {
  color: #3d3a9e;
  text-decoration: none;
}
.event-detail-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.event-detail-actions .btn {
  width: 100%;
  text-align: center;
}

/* Homepage entity feed event cards */
.news-card .event-timing {
  margin-left: 0.5rem;
}
.news-card-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f8;
}
.news-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 900px) {
  .event-detail-grid {
    grid-template-columns: 1fr;
  }
  .event-detail-card {
    position: static;
  }
}
