/* ===== Events CSS (namespaced) ===== */
.events-archive-wrapper {
  font-family: var(--en_bodyfont), sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 1.5em 0 0 0;
}

/* Hero - full width */
.events-hero {
  width: 100%;
  height: 260px;
  background-size: cover !important;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  /* Make hero full-bleed across many themes */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}
.events-hero-title {
  font-size: 42px;
  font-family: var(--en_headerfont2, Georgia, serif);
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  margin: 0;
}

/* Page layout */
.events-page-wrapper {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
  box-sizing: border-box;
}

/* Sidebar */
.events-sidebar { width: 250px; flex: 0 0 250px; }
.events-sidebar-section { margin-bottom: 30px; }
.events-sidebar-heading {
  font-family: var(--en_headerfont2, Georgia, serif);
  font-size: 14px;
  font-weight: 600;
  color: #83764B;
  margin-bottom: 10px;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 5px;
}
.events-sidebar-links { list-style: none; padding: 0; margin: 0; }
.events-sidebar-links li { margin-bottom: 10px; }
.events-sidebar-links a {
  text-decoration: none;
  color: #041744;
  font-size: 15px;
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
}
.events-sidebar-links a.active,
.events-sidebar-links a:hover {
  color: #fff;
  background: #041744;
}

/* Events list */
.events-listing { flex: 1; }
.events-title {
  font-family: var(--en_headerfont2, Georgia, serif);
  font-size: 28px;
  color: #041744;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Grid */
.events-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Card */
.event-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .18s ease;
}
.event-card:hover { transform: translateY(-4px); }

.event-thumb img, .events-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.event-info { padding: 14px; }
.event-name {
  font-family: var(--en_headerfont2, Georgia, serif);
  font-size: 18px;
  margin: 0 0 8px;
  color: #041744;
}
.event-name a { color: inherit; text-decoration: none; }

.event-time {
  font-size: 14px;
  color: #83764B;
  margin: 0 0 10px;
}

.event-excerpt {
  font-size: 14px;
  color: #333;
  margin-bottom: 14px;
}

.event-readmore {
  display: inline-block;
  padding: 8px 12px;
  background: #041744;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}
.event-readmore:hover { opacity: 0.95; }

/* Responsive */
@media (max-width: 1000px) {
  .events-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .events-page-wrapper { flex-direction: column; padding: 0 12px; }
  .events-sidebar { order: 2; width: 100%; }
  .events-container { grid-template-columns: 1fr; gap: 18px; }
  .events-hero { height: 200px; }
  .events-hero-title { font-size: 30px; }
}