* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #f7f7f7;
  color: #333;
}

.new-post-btn-container {
    text-align: center;
    margin-bottom: 20px;
}

.new-post-btn {
  padding: 10px 16px;
  font-size: 14px;
  background-color: #00cc4b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;

}

.new-post-btn a {
    text-decoration: none;
    color: rgb(6, 6, 6);
    font-weight: 900;
}

.blog-main-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
}

.blog-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-post-container {
  display: flex;
  gap: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  align-items: flex-start;
}

.blog-image {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.blog-blurb-container {
  flex: 1;
}

.blog-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
}

.blog-authour-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-authour-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-authour {
  font-size: 14px;
  color: #555;
}

.blog-snippet {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 12px;
}

.blog-detail-link {
  display: inline-block;
  font-size: 14px;
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
}

.blog-detail-link:hover {
  color: #005fa3;
}

form {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

input[type="text"],
input[type="file"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

textarea {
  height: 150px;
  resize: vertical;
}

button.submit-post {
  padding: 12px 16px;
  font-size: 16px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: fit-content;
  align-self: flex-end;
}

button.submit-post:hover {
  background-color: #005fa3;
}


h1 {
  text-align: center;
  margin-bottom: 30px;
}

.post-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-title {
  font-size: 24px;
  margin-bottom: 15px;
}

.post-image {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 4px;
}

.post-content {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.post-tags {
  display: inline-block;
  background-color: #e0e0e0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.button-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-evenly;
}
.edit-post, .cancel-post, .confirm-edit, .back-btn {
  padding: 10px 16px;
  font-size: 14px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.edit-post:hover,
.cancel-post:hover, 
.confirm-edit:hover, 
.back-btn:hover {
  background-color: #005fa3;
}

.delete-post {
  padding: 10px 16px;
  font-size: 14px;
  background-color: #a3020d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.edit-post-container {
    display: none;
}

.display-content {
    display: block;
}

.hide-content {
    display: none;
}