/* Our Past Events — public home */
.past-events-section {
  background: linear-gradient(180deg, #f0f6fc 0%, #ffffff 100%);
  padding: 4rem 0;
  margin-top: 1rem;
}

.past-events-section .section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.past-events-section .section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #005696;
  margin-bottom: 0.5rem;
}

.past-events-section .section-head p {
  color: #5a6a85;
  margin: 0;
  font-size: 1.05rem;
}

.past-events-section .section-head .accent-line {
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, #005696, #f37021);
  border-radius: 999px;
  margin: 1rem auto 0;
}

.past-events-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.past-year-item {
  background: #fff;
  border: 1px solid #e2eaf3;
  border-radius: 16px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 86, 150, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.past-year-item.is-open {
  border-color: #c5d9eb;
  box-shadow: 0 8px 28px rgba(0, 86, 150, 0.1);
}

.past-year-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.past-year-toggle:hover {
  background: #f8fbff;
}

.past-year-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.past-year-badge {
  min-width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(145deg, #005696, #003d66);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  flex-shrink: 0;
}

.past-year-badge .year-num {
  font-size: 1.15rem;
  font-weight: 800;
}

.past-year-badge .year-sub {
  font-size: 0.65rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.past-year-meta strong {
  display: block;
  font-size: 1.1rem;
  color: #1e293b;
  font-weight: 700;
}

.past-year-meta span {
  font-size: 0.88rem;
  color: #64748b;
}

.past-year-chevron {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef4fa;
  color: #005696;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.2s ease;
  flex-shrink: 0;
}

.past-year-item.is-open .past-year-chevron {
  transform: rotate(180deg);
  background: #005696;
  color: #fff;
}

.past-year-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.past-events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  padding-top: 1rem;
}

.past-event-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

a.past-event-chip {
  cursor: pointer;
}

.past-event-chip:hover {
  background: #eef6ff;
  border-color: #d4e8f7;
}

.past-event-chip .chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #005696;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.past-event-chip .chip-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.35;
  font-weight: 500;
}

.past-event-chip .chip-date {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 0.15rem;
}

.past-events-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

.past-events-gallery-link {
  text-align: center;
  margin-top: 1.75rem;
}

.past-events-gallery-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .past-events-grid {
    grid-template-columns: 1fr;
  }

  .past-year-badge {
    min-width: 52px;
    height: 52px;
  }

  .past-year-badge .year-num {
    font-size: 1rem;
  }
}
