/*
 * page-events.css
 * Loaded only on the Events page (page-events.php).
 *
 * Cascade conflicts:
 *  - .section-label   → companies adds display:flex + ::after ruler; need block + no ruler
 *                       also: events wants font-size:0.6rem/weight-700/margin-bottom:16px;
 *                       studio (last) gives 0.68rem/600/12px
 *  - .section-title   → studio wins with margin-bottom:20px; events needs 8px
 *  - .page-hero       → companies (after events in cascade) adds display:flex, min-height:340px,
 *                       border-bottom, padding-left/right:56px; need to reset these
 *                       (padding-bottom:40px is already correct from events' own cascade win)
 *  - .page-hero-inner → sectors (last def) wins with gap:60px, align-items:center, padding-bottom:72px;
 *                       events needs gap:80px, align-items:end, padding-bottom:40px
 *                       (display:grid and grid-template-columns:1fr 1fr are correct from sectors)
 */

/* section-label: fix font-size, weight, margin, and remove companies' flex+ruler */
.section-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  gap: 0;
  margin-bottom: 16px;
}

.section-label::after {
  display: none;
}

/* section-title: restore events' margin-bottom */
.section-title {
  margin-bottom: 8px;
}

/* page-hero: undo companies' flex layout, min-height, border, and side padding
   padding-bottom:40px comes from events' own cascade win — leave it intact */
.page-hero {
  display: block;
  min-height: 0;
  border-bottom: none;
  padding-left: 0;
  padding-right: 0;
}

/* page-hero-inner: sectors wins with wrong gap/align-items/padding-bottom
   events needs 2-column grid (already from sectors cascade), just fix the differing values */
.page-hero-inner {
  padding: 64px 56px 40px;
  gap: 80px;
  align-items: end;
}

/* event card overlay link — covers the whole card; RSVP sits above via z-index */
.event-card { position: relative; }
.event-card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 12px;
}
.event-card-rsvp {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display: inline-block;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.event-card-rsvp:hover { opacity: 0.75; }

/* past events pagination — mirrors sectors hc-pagination / hc-page-btn */
.past-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 18px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.past-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: white;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.past-page-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.past-page-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.past-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.past-page-dots {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 2px;
  color: var(--gray);
  font-size: 0.72rem;
  font-weight: 500;
  user-select: none;
}

/* separator between type-pills and format-pills in the filter bar */
.filter-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  align-self: center;
  margin: 0 6px;
  flex-shrink: 0;
}

/* past items as links */
.past-item--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.past-item--link:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37,132,197,0.08);
}
.past-item--link:hover .past-title {
  color: var(--blue);
}
.past-arrow {
  color: var(--gray);
  flex-shrink: 0;
  margin-left: auto;
  transition: color 0.2s, transform 0.2s;
}
.past-item--link:hover .past-arrow {
  color: var(--blue);
  transform: translateX(3px);
}
