/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto; /* vertical scroll */
}

/* Heading */
.heading {
  text-align: center;
  margin: 30px 0;
  font-size: 2rem;
  color: #fff;
}

/* Events container - vertical layout */
.events-container {
  display: flex;
  flex-direction: column; /* stack events vertically */
  gap: 30px;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 50px; /* space at bottom */
}

/* Event card */
.event-card {
  display: flex;
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: scale(1.03);
}

/* Event image */
.event-image {
  flex: 0 0 35%;
  perspective: 1000px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #333;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.event-image img:hover {
  transform: scale(1.05);
}

/* Event details */
.event-details {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-details h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
}

.event-details p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ccc;
}

/* Register button */
.event-link {
  padding: 12px 25px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  width: fit-content;
}

.event-link:hover {
  background-color: #555;
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
  .event-card {
    flex-direction: column;
  }

  .event-image {
    width: 100%;
    height: 250px;
  }

  .event-details {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .event-card {
    flex: 0 0 100%;
  }
}

/* Modal for click-to-zoom */
#image-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

#image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  cursor: zoom-out;
}
