/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f8ff;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

header {
  background-color: #1e90ff;
  color: white;
  text-align: center;
  padding: 40px 20px;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin: 10px 0 0;
  font-size: 1.2rem;
  font-weight: 300;
}

main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.events-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  width: 90%;
  max-width: 1200px;
}

.event-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.event-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.event-content {
  padding: 20px;
  text-align: center;
}

.event-content h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  color: #1e90ff;
}

.date, .location {
  font-size: 1rem;
  color: #555;
  margin: 5px 0;
}

.description {
  margin: 15px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.register-btn {
  padding: 10px 20px;
  background-color: #1e90ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.register-btn:hover {
  background-color: #007bb5;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
}

footer p {
  margin: 0;
  font-size: 1rem;
}


/* Responsive Design */
@media (max-width: 1200px) {
  .events-section {
      grid-template-columns: 1fr 1fr;
  }
}

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

  header h1 {
      font-size: 2rem;
  }

  .register-btn {
      width: 100%;
      padding: 12px;
  }
}
