body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  background-color: #8b0000;
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

header h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 2.5em;
}

header .subtitle {
  font-size: 1.2em;
  margin-top: 5px;
}

nav {
  background-color: #ffd700;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0 15px;
}

nav a {
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #8b0000;
}

.hero {
  background: linear-gradient(rgba(30, 20, 8, 0.5), rgba(30, 20, 8, 0.5)),
    radial-gradient(circle at top right, #6e3f22, #3c2516 45%, #1e1510);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content {
  max-width: 800px;
  padding: 20px;
}

.hero h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
}

.cta-button {
  background-color: #ffd700;
  color: #8b0000;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  display: inline-block;
}

section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-family: "Cinzel", serif;
  color: #8b0000;
  text-align: center;
  margin-bottom: 30px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.event-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.event-card-liturgical {
  border-color: #d6bf7b;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-date {
  font-weight: bold;
  color: #9a7a00;
}

.event-location {
  margin-top: 12px;
}

#calendar {
  text-align: center;
}

#calendar ul {
  display: inline-block;
  text-align: left;
}

.education-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.education-item {
  flex: 1 1 300px;
  margin: 10px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

input[type="email"] {
  padding: 10px;
  min-width: 260px;
}

button[type="submit"] {
  padding: 10px 16px;
  background: #8b0000;
  color: white;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

footer {
  background-color: #8b0000;
  color: white;
  padding: 20px;
  text-align: center;
}

footer a {
  color: #ffd700;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  nav li {
    margin: 10px 0;
  }

  .hero {
    height: 300px;
  }
}
