body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9fafb;
  color: #333;
  text-align: center;
}

header {
  background-color: #1e90ff;
  color: white;
  padding: 20px;
}

h1 {
  margin: 0;
  font-size: 2em;
}

main {
  margin: 30px;
}

button {
  background-color: #1e90ff;
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #0077cc;
}

#events-container {
  margin: 20px auto;
  max-width: 600px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

footer {
  background-color: #f1f1f1;
  padding: 10px;
  font-size: 0.9em;
}

/* === Campus Events Portal Enhancements === */

/* Container for main content */
.container {
  max-width: 900px;
  margin: 2rem auto;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header section */
header {
  background-color: #004aad;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
}

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

/* Events section */
#eventsList {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

/* Individual event cards */
.event-card {
  background: #f1f7ff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #d9e6ff;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-card h3 {
  color: #004aad;
  margin-top: 0;
}

/* Buttons inside event cards */
.event-card button {
  background-color: #004aad;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.2s;
}

.event-card button:hover {
  background-color: #003580;
}

/* Registration form */
#registrationForm {
  margin-top: 2rem;
  background: #f9fbff;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #d9e6ff;
}

#registrationForm h3 {
  color: #004aad;
  margin-top: 0;
}

#registrationForm label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
  color: #333;
}

#registrationForm input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

#registrationForm button {
  background-color: #004aad;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  font-size: 1rem;
}

#registrationForm button:hover {
  background-color: #003580;
}

/* Footer */
footer {
  text-align: center;
  color: #555;
  background: #f1f1f1;
  padding: 1rem;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
}

/* Responsive layout for mobile screens */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .event-card {
    padding: 1rem;
  }

  #registrationForm input,
  #registrationForm button {
    width: 100%;
  }
}
