/* Hero Section */
.hero--events {
  position: relative;
  background-image: url('../assets/images/website-event-collage.jpeg');
  background-size: cover;
  background-position: center;
  padding: 180px 0 100px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero--events::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.hero--events > .container {
  position: relative;
  z-index: 2;
}

/* Upcoming Events Timeline */
.events-timeline {
  padding: 80px 0 40px 0;
  background: var(--bg-primary);
}
.events-timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}
.events-timeline-grid::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}
@media (max-width: 768px) {
  .events-timeline-grid::before {
    left: 20px;
  }
}
.event-timeline-card {
  display: flex;
  gap: 30px;
  position: relative;
}
.event-timeline-badge {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .event-timeline-card {
    gap: 20px;
  }
  .event-timeline-badge {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}
.event-timeline-content {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  flex-grow: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Past Events Cards */
.events-past {
  padding: 40px 0 80px 0;
  background: var(--bg-secondary);
}
.events-past-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.event-past-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-color);
}
@media (max-width: 992px) {
  .event-past-card {
    grid-template-columns: 1fr;
  }
}
.event-past-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-past-videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 20px;
  background: #000;
  align-content: center;
}
.event-past-videos.multi-video {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .event-past-videos.multi-video {
    grid-template-columns: 1fr;
  }
}
.event-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.event-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Event Typography */
.event-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.event-date {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}
.event-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}
.event-desc, .event-summary {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA */
.events-cta {
  padding: 100px 0;
  background: var(--bg-primary);
  text-align: center;
}
/* Event Card Premium Overrides */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
  height: 100%;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.badge--upcoming {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge--live {
  background: #ffebee;
  color: #d32f2f;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: pulseLive 2s infinite;
}
.badge--completed {
  background: #f5f5f5;
  color: #757575;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(211, 47, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}
