/* Reset and Box Sizing */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  background-color: #f0f2f5;
  color: #1c1e21;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Lora', serif;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
header {
  position: relative;
  background-image: url('town.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 15px 0;
  z-index: 1;
}

header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.header-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  z-index: 1;
}

/* Logo */
.logo img {
  height: 100px;
  width: 121px;
  margin-right: 10px;
}

/* Navigation */
nav {
  z-index: 1;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: border-bottom 0.3s ease;
}

nav ul li a:hover {
  border-bottom: 2px solid white;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #7f6946, #8f7d62);
  color: white;
  text-align: center;
  padding: 50px 20px;
}

/* Buttons */
a.button, .button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #6d7751;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

a.button:hover, .button:hover {
  background-color: #57603f;
}

/* Cards */
.card {
  background: white;
  border-left: 5px solid #6d7751;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.01);
}

/* Cemetery Image Example */
.cemetery-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

/* Calendar iframe */
iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: none;
}

/* Footer */
footer {
  background-color: #3b5998;
  color: white;
  text-align: center;
  padding: 10px 0;
}

/* Multi-column list for links */
ul {
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

/* Responsive Media Query */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    margin-top: 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    margin: 8px 0;
  }

  .logo img {
    margin-bottom: 10px;
  }

  ul {
    columns: 1;
  }
}
