/* Reset some default browser styles */
body, h1, h2, h3, p, ul, li, a {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}

/* Global styles */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: black;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Header styles */
.banner {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('banner-image.png') no-repeat center center/cover;
  height: 400px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-size: 2em;
  font-weight: bold;
}

.navbar ul {
  display: flex;
}

.navbar li {
  margin-left: 20px;
}

.navbar a {
  color: #fff;
  font-size: 1.1em;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #ddd;
}

.banner-text h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.banner-text p {
  font-size: 1.2em;
}

/* Main content styles */
main {
  padding: 40px 0;
}

.post {
  background: #fff;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post h1 {
  font-size: 2em;
  margin: 20px 0 15px 0;
  color: #333;
}

.post h2 {
  font-size: 1.5em;
  margin: 18px 0 12px 0;
  color: #333;
}

.post h3 {
  font-size: 1.3em;
  margin: 15px 0 10px 0;
  color: #444;
}

.post hr {
  margin: 20px 0;
  border: none;
  border-top: 2px solid #ddd;
}

.post p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #007bff;
  font-weight: bold;
  transition: color 0.3s;
}

.read-more:hover {
  color: #0056b3;
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
  outline: none;
}

textarea.form-control {
  min-height: 200px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0056b3;
}

.error {
  color: red;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #ffe6e6;
  border: 1px solid #ffcccc;
  border-radius: 5px;
}

/* Footer styles */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer p {
  margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .navbar {
      flex-direction: column;
  }

  .navbar ul {
      flex-direction: column;
      align-items: center;
      margin-top: 15px;
  }

  .navbar li {
      margin: 10px 0;
  }

  .banner {
      height: 300px;
  }

  .banner-text h1 {
      font-size: 2em;
  }

  .banner-text p {
      font-size: 1em;
  }
}