/* Root layout tweaks */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
}

/* Header styles */
header {
  text-align: center;
  padding: 20px;
  background-color: #800000; /* Galway maroon */
  color: white;
}

#site-logo {
  max-width: 100px;
  margin-bottom: 10px;
}

.tagline {
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 5px;
}

/* Intro Section */
.intro {
  text-align: center;
  padding: 20px;
  background-color: #f8f0f0;
  border-bottom: 1px solid #ccc;
}

.intro h2 {
  color: #800000;
}

.intro p {
  font-size: 1rem;
  color: #444;
}

/* Quick submit button style */
#submit-event {
  text-align: center;
  margin: 30px auto;
}

.btn-submit {
  background-color: #800000;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #a30000;
}

/* Event Listings */
#event-listings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px 15px;
}

.event-card {
  position: relative;
  overflow: hidden;
  color: white; /* Ensure text is readable */
  background-image: url('images/card_img.webp'); /* <-- Put your image path here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border: 1px solid #800000;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
  padding: 20px;
  max-width: 350px;
  width: 100%;
  text-align: left;
  transition: transform 0.2s ease;
}


.event-card:hover {
  transform: scale(1.02);
}

.event-card h3 {
  color: #d1001c;  /* bright Galway-inspired red */
  margin-bottom: 10px;
  background-color: cornsilk;
  filter: drop-shadow(0px 1px 1px black);
  text-shadow: 0px 1px 1px black;
}

.event-card p {
  font-size: 0.95rem;
  color: #ffffff;
}


.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* semi-transparent dark overlay */
  z-index: 0;
}

.event-card * {
  position: relative;
  z-index: 1;
}



/* Footer style */
footer {
  background-color: #800000;
  color: white;
  text-align: center;
  padding: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .event-card {
    max-width: 90%;
  }

  .btn-submit {
    width: 80%;
  }
}
