/* Events archive & single page styles */
.events-archive { padding: 60px 0; }
.events-archive .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.events-title { font-size: 2rem; font-weight: 700; margin-bottom: 40px; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.event-card-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }

.event-card-body { padding: 20px; }
.event-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ee5253;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.event-card-body h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.event-location { display: block; font-size: 0.85rem; color: #666; margin-bottom: 10px; }
.event-card-body p { font-size: 0.9rem; color: #444; line-height: 1.5; margin: 0; }

@media (max-width: 900px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* Single event page */
.event-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.event-single .container { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.event-meta { display: flex; gap: 20px; color: #666; margin-bottom: 24px; font-size: 0.95rem; }
.event-content { line-height: 1.7; margin-bottom: 32px; }
.event-register-btn {
  display: inline-block;
  background: #ee5253;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.event-register-btn:hover { background: #d64344; }\n\n\n\n/* Events hero with YouTube video background */
.events-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  isolation: isolate;
}

.events-hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.events-hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -62%) scale(3.2);
  pointer-events: none;
  border: none;
}

.events-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(210, 90, 30, 0.55);
  z-index: 1;
}

.events-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.events-hero-content h1 {
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .events-hero { height: 220px; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }
  .events-hero-content h1 { font-size: 2rem; }
}

.events-archive {
  background: #ffffff;
  position: relative;
  z-index: 3;
  padding: 60px 0;
}

.events-pagination {
  margin-top: 40px;
  text-align: center;
}
.events-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 6px;
  background: #f2f2f2;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.events-pagination .page-numbers.current {
  background: #ee5253;
  color: #fff;
}
.events-pagination .page-numbers:hover:not(.current) {
  background: #ddd;
}
