/* ============================================================
   MARYAM RAFIEE — EVENTS PAGE (events.html) STYLES
   Loaded together with base.css.
   ============================================================ */

.events-archive-section { padding: 3.5rem 2rem 5rem; }
.events-archive-inner { max-width: 900px; margin: 0 auto; }

.events-archive { list-style: none; border-radius: 8px; overflow: hidden; }

/* Alternating row backgrounds — driven purely by nth-child, so new
   <li> rows added later (top or bottom) keep alternating automatically,
   no manual "odd/even" classes needed. */
.event-row {
  display: flex;
  align-items: stretch;
  gap: 1.1rem;
  padding: 0.9rem 1.1rem;
}
.event-row:nth-child(odd)  { background: var(--warm-white); }
.event-row:nth-child(even) { background: var(--cream); }

/* Square image/placeholder — height always matches the two text lines
   next to it, width always equals that height (aspect-ratio keeps it
   square as content wraps to more/fewer lines on smaller screens). */
.event-row-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--sand);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.event-row-image svg { width: 42%; height: 42%; }
/* Once real photos are added, swap the placeholder <svg> for an
   <img src="..." alt="..."> inside .event-row-image — this rule makes
   it fill the same square automatically. */
.event-row-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.event-row-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
}
.event-row-venue {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.4;
}
.event-row-meta {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .events-archive-section { padding: 2.5rem 1.25rem 3.5rem; }
  .event-row { padding: 0.75rem 0.85rem; gap: 0.85rem; }
  .event-row-venue { font-size: 0.9rem; }
  .event-row-meta { font-size: 0.8rem; }
}
