/* ==========================================================
   Events List — Facebook-Style Layout
   Vertical list, image left + text right, clean info rows
   ========================================================== */

/* ── List wrapper: 2-column grid ── */
.events-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 0;
}

/* ── Event card (horizontal row) ── */
.event-card-row {
  display: flex;
  flex-direction: row;
  background: var(--card-bg, #fff);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}

.event-card-row:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* ── Image column (fixed square-ish) ── */
.event-row-img {
  width: 160px;
  min-width: 160px;
  height: 160px;
  overflow: hidden;
  background: var(--goshir-cream, #f8f4ee);
  border-radius: 10px 0 0 10px;
}

.event-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Text column ── */
.event-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 12px 14px;
}

/* ── Clickable header (date + titles + location) ── */
.event-row-header {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.event-row-header:focus-visible {
  outline: 2px solid var(--goshir-gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Date line */
.event-row-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--goshir-mid-gray, #777);
  margin-bottom: 4px;
}

/* Title block — bilingual */
.event-row-title {
  margin-bottom: 4px;
}

.event-row-title-zh {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 1px;
}

.event-row-title-en {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--goshir-mid-gray, #555);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Organizer / location line */
.event-row-org {
  font-size: 13px;
  color: var(--goshir-mid-gray, #777);
  margin-top: auto;
  padding-top: 4px;
}

.event-row-org a {
  color: #385898;
  text-decoration: none;
  font-weight: 600;
}

.event-row-org a:hover {
  text-decoration: underline;
}

/* ── Expand detail ── */
.event-row-detail {
  overflow: hidden;
  transition: max-height 0.4s ease;
  max-height: 0;
}

.event-card-row.is-expanded .event-row-detail {
  max-height: 3000px;
}

.event-row-detail-inner {
  padding: 14px 0 4px;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 6px;
}

.event-row-description {
  max-width: 100%;
}

.event-row-description > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--goshir-warm-gray, #4a3f3a);
  margin: 0 0 10px;
}

.event-row-description > p:last-child {
  margin-bottom: 0;
}

.event-row-description > ul {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.event-row-description > ul > li {
  position: relative;
  padding: 8px 10px 8px 20px;
  margin-bottom: 5px;
  line-height: 1.5;
  font-size: 12.5px;
  color: var(--goshir-warm-gray, #4a3f3a);
  background: rgba(255,255,255,0.4);
  border-left: 2px solid var(--goshir-gold, #b8860b);
  border-radius: 4px;
}

.event-row-description > ul > li:last-child {
  margin-bottom: 0;
}

.event-row-description > ul > li::before {
  content: '✦';
  position: absolute;
  left: 6px;
  top: 9px;
  color: var(--goshir-gold, #b8860b);
  font-size: 8px;
  opacity: 0.7;
}

.event-row-description strong {
  color: var(--goshir-crimson, #a04030);
}

/* ── Responsive ── */
@media (max-width: 780px) {
  .events-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .event-card-row {
    flex-direction: column;
  }

  .event-row-img {
    width: 100%;
    min-width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
  }

  .event-row-body {
    padding: 10px 14px;
  }
}