body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8; /* Very light gray background */
}

.container {
  display: flex;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.featured {
  width: 75%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.featured-post {
  background-color: white;
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.featured-post img {
  width: 100%;
  object-fit: cover;
}

.featured-post-content {
  padding: 15px;
}

.featured-post h2 {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.featured-post p {
  margin: 5px 0;
  font-size: 0.9em;
}

.all-posts {
  width: 25%;
  padding-left: 20px;
  max-height: 80vh;
  overflow-y: auto;
}

.all-posts h3 {
  margin-top: 0;
}

.post-item {
  background-color: white;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-item h4 {
  margin: 0 0 5px;
  font-size: 1em;
}

.post-item p {
  margin: 0;
  font-size: 0.8em;
  color: #666;
}

/* Create page styles */
#create-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

form {
  display: flex;
  flex-direction: column;
}

input, textarea {
  margin-bottom: 10px;
  padding: 8px;
  font-size: 1em;
}

button {
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

#auth-section {
  text-align: center;
}

.navbar {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
}

.navbar a:hover {
  text-decoration: underline;
}

#create-post-btn {
  position: sticky;
  top: 70px;
  right: 20px;
  float: right;
  margin-left: auto;
  z-index: 50;
}

#editor {
  height: 400px;
  margin-bottom: 10px;
}

/* Main page header and banner */
.header {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-title {
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
}

.site-title a {
  color: white;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
  margin-left: 20px;
}

.nav-item a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  padding: 10px;
}

.nav-item:hover > a {
  background-color: #555;
  border-radius: 4px;
}

.dropdown {
  display: none;
  position: absolute;
  background-color: #444;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 101;
  top: 100%;
  left: 0;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 12px 16px;
}

.dropdown a:hover {
  background-color: #555;
}

.banner {
  width: 100vw;
  height: 30vh;
  overflow: hidden;
  margin-bottom: 20px;
  margin-left: calc(-50vw + 50%);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Detail page styles */
#detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

#action-bar {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 50;
}

#action-bar button {
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#action-bar button:hover {
  background-color: #0056b3;
}

#post-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#post-content h1 {
  margin-top: 0;
  font-size: 1.8em;
}

#post-content h2 {
  font-size: 1.4em;
  color: #555;
}

#post-content p {
  line-height: 1.6;
}

#post-full-content {
  margin-top: 20px;
}

#edit-form {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#edit-form button {
  margin-right: 10px;
  margin-bottom: 10px;
}

#edit-editor {
  height: 400px;
  margin-bottom: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }
  
  .nav-item {
    margin: 5px 0;
    width: 100%;
  }
  
  .nav-item a {
    display: block;
    padding: 10px 0;
  }
  
  .dropdown {
    position: static;
    display: none;
    width: 100%;
  }
  
  .nav-item:hover .dropdown {
    display: block;
  }
  
  .container {
    flex-direction: column;
    padding: 10px;
  }
  
  .featured {
    width: 100%;
    grid-template-columns: 1fr;
  }
  
  .all-posts {
    width: 100%;
    padding-left: 0;
    margin-top: 20px;
  }
  
  #create-container {
    padding: 10px;
  }
}
