html {
  height: 100%;
}

body {
  font-family: sans-serif;
  margin: 0;
  background-color: #f4f4f4;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #333;
  color: #fff;
  padding: 1em;
  text-align: center;
  position: relative;
}

.site-title-link {
  color: inherit;
  text-decoration: none;
}

.site-title-link:hover,
.site-title-link:focus {
  text-decoration: none;
}

header h1 {
  margin: 0 0 0.5em 0;
}

/* Desktop Navigation */
.header-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.header-nav li {
  margin: 0 1em;
}

.header-nav a {
  color: #ddd;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus {
  color: #fff;
  text-decoration: underline;
}

/* Hamburger Menu Styles - Hidden by default on larger screens */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  position: absolute;
  top: 1em;
  right: 1em;
  cursor: pointer;
  padding: 0.5em;
  z-index: 1000;
}

.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Navigation - Styles for when hamburger is active */
@media (max-width: 768px) {
  header h1 {
    margin-bottom: 0;
    padding-right: 50px;
  }
  .header-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #444;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1em 0;
    z-index: 999;
  }

  .header-nav li {
    margin: 0;
    text-align: center;
  }

  .header-nav a {
    display: block;
    padding: 0.75em 1em;
    color: #fff;
    border-bottom: 1px solid #555;
  }
  .header-nav li:last-child a {
    border-bottom: none;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-toggle-checkbox:checked ~ .header-nav ul {
    display: flex;
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

main {
  padding: 1em;
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  width: 100%;
  align-self: center;
  box-sizing: border-box;
}

.welcome-message {
  margin-bottom: 2em;
  font-style: italic;
  font-size: 1.1em;
  color: #555;
  text-align: center;
}

.contact-details p {
    margin-bottom: 0.5em;
}

footer {
  background-color: #ECEFF1;
  color: #555;
  padding: 2em 1em;
  margin-top: 2em;
  flex-grow: 1; /* Make footer take available space */
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-site-title {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 0.5em;
  text-align: left;
}

.footer-contact-details {
  text-align: left;
  margin-bottom: 1.5em;
}

.footer-contact-details p {
  margin: 0.25em 0;
  font-size: 0.9em;
}

.footer-contact-details a {
  color: #555;
  text-decoration: none;
}

.footer-contact-details a:hover,
.footer-contact-details a:focus {
  color: #000;
  text-decoration: underline;
}

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

.footer-nav li {
  margin: 0.25em 0.75em;
}

.footer-nav a {
  color: #555;
  text-decoration: none;
  font-size: 0.9em;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: #000;
  text-decoration: underline;
}

.footer-privacy-notice {
  font-size: 0.8em;
  color: #777;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  text-align: center;
}

.footer-copyright {
  font-size: 0.8em;
  color: #666;
  text-align: center;
  margin-top: 2em;
}

/* Utility classes for special text formatting */
.text-red {
  color: #e53e3e;
}

.text-center {
  text-align: center;
}

.text-underline {
  text-decoration: underline;
}

.bg-red-white-text {
  background-color: #e53e3e;
  color: white;
  padding: 0.5em;
}

/* Post and Announcement Styling */
.post-list-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5em;
  margin-bottom: 1.5em;
}

.post-list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.post-list-item h2 {
  margin-bottom: 0.25em;
}

.post-list-item a {
  text-decoration: none;
  color: #4a148c; /* A deep purple for links */
}

.post-list-item a:hover {
  text-decoration: underline;
}

.post-list-date {
  color: #555;
  font-size: 0.9em;
  display: block;
  margin-bottom: 1em;
}

/* Single Post Page Styling */
.post .post-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
}

.post .post-title {
  font-size: 2.5em; /* Make the title large and prominent */
  margin-bottom: 0.25em;
  color: #222;
}

.post .post-meta {
  color: #555;
  font-size: 0.9em;
  margin-top: 0;
}

.post .post-content {
  line-height: 1.6;
}

/* Homepage Post Preview */
.post-list-preview {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.post-list-preview li {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-list-preview li:last-child {
  border-bottom: none;
}

.post-list-preview .post-list-date {
  color: #555;
  font-size: 0.9em;
  white-space: nowrap;
  margin-left: 1em;
}

.button-link {
  display: inline-block;
  padding: 0.75em 1.5em;
  background-color: #4a148c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

.button-link:hover {
  background-color: #2a0c50;
} 