body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

header {
  background-color: #800000;
  color: white;
  text-align: center;
  padding: 20px;
}

header h1 {
  margin: 0;
  font-size: 28px;
}

.event-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px;
}

.event-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 380px;
  transition: transform 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.event-details {
  padding: 20px;
  text-align: left;
}

h2 {
  color: #2c3e50;
  margin: 0 0 5px 0;
  font-size: 20px;
}

.type {
  color: #0077cc;
  font-weight: bold;
  margin-bottom: 10px;
}

.details-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.label {
  font-weight: 600;
  color: #555;
}

.value {
  color: #222;
}

.host {
  margin-top: 15px;
  font-size: 14px;
  color: #800000;
  font-style: italic;
}

footer {
  color: white;
  text-align: left;
  padding: 12px;
  margin-top: 40px;
}

.section-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  text-align: center;
}

.center-box {
  width: 80%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 🌐 Mobile Responsive Fix */
@media (max-width: 768px) {
  .event-container {
    flex-direction: column;
    gap: 20px;
    padding: 10px;
  }

  .event-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px auto;
    padding: 15px;
    box-sizing: border-box;
  }

  .event-image {
    height: auto;
    max-height: 220px;
  }

  h2 {
    font-size: 18px;
  }

  .event-details {
    padding: 12px;
  }

  .details-row {
    flex-direction: column;
    gap: 4px;
    padding: 2px 0;
    font-size: 14px;
  }

  .host {
    font-size: 13px;
    margin-top: 10px;
  }

  header h1 {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
    padding: 10px;
  }

  footer {
    font-size: 13px;
    padding: 10px;
  }

  .center-box {
    width: 95%;
  }
}
