/* ---- Layout & Typography (aligns with universal.css) ---- */
.page-header { margin-bottom: .5rem; }
.page-header h1 { color: #192a3a; letter-spacing: .2px; }
.page-lead { color: #555; margin-top: .25rem; }

/* Section */
.events-section { margin-top: 1.75rem; }
.section-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.section-head h2 { color: #192a3a; font-size: 1.25rem; }

/* Badge */
.badge { font-size: .7rem; padding: .2rem .5rem; border-radius: 999px; border: 1px solid rgba(0,0,0,.08); }
.badge-live { background: #ffecec; color: #b30000; border-color: #ffd3d3; }

/* ---- Cards Grid ---- */
.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

/* ---- Card ---- */
.event-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.10);
}
.event-card.past { opacity: .9; }

/* Title + Meta on one line */
.event-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin-top: .5rem;
}
.event-title { margin: 0; font-size: 1.05rem; color: #192a3a; }
.event-meta { margin: 0; white-space: nowrap; color: #6b7280; font-size: .95rem; }
.event-meta .location { color: #4f5051; }

/* Description */
.event-desc { margin-top: .5rem; line-height: 1.45; color: #4f5051; }
.muted { color: #777; }

/* ---- Photo slider (single image) ---- */
.photo-slider {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
}
.photo-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-slider button.prev-photo,
.photo-slider button.next-photo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,.38);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.photo-slider button.prev-photo { left: 8px; }
.photo-slider button.next-photo { right: 8px; }
.photo-slider button:hover { background: rgba(0,0,0,.5); }

.slider-indicators {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.slider-indicators .indicator {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.6);
  cursor: pointer;
}
.slider-indicators .indicator.active { background: #fff; }

/* ---- Countdown chip ---- */
.countdown {
  display: inline-block;
  min-width: 54px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 6px;
  background: #e8f0ff;
  color: #004aad;
  border: 1px solid #d6e5ff;
}

/* ---- Responsiveness (plays nice with responsive.css) ---- */
@media (max-width: 1024px) {
  .event-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 768px) {
  .event-row { align-items: center; }
  .event-meta { font-size: .9rem; }
}
@media (max-width: 480px) {
  .event-row { flex-direction: row; }
  .event-meta { white-space: normal; }
}


/* --- Single Event (post) --- */
.crumbs { margin-bottom: .5rem; }
.crumbs a { color: #4b6cb7; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.event-hero {     
    margin-bottom: .75rem;
    background: none;
    position: relative;
    align-items: anchor-center;
 }
.event-hero__title { margin: 0 0 .25rem 0; color:#192a3a; font-size: clamp(1.4rem, 2.3vw, 2rem); margin-right: 1rem; }
.event-hero__meta { margin: 0; color:#6b7280; }

.event-media { margin: .75rem 0 1rem; }
.photo-slider--lg { 
    width: 500px;
    justify-self: center;
 }

.event-footer { margin-top: 1rem; }
.btn {
  display:inline-block; padding:.55rem .9rem; border-radius:10px;
  background:#1f2937; color:#fff; text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background:#111827; transform: translateY(-1px); box-shadow:0 8px 18px rgba(0,0,0,.08); }

/* Tighten card spacing on the list page when titles become links */
.event-title a { color: inherit; text-decoration: none; }
.event-title a:hover { text-decoration: underline; }
