

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.navbar {
  background: #f4f4f4;
  overflow: hidden;
  padding: 0 20px;
  height: 60px;
  min-width: 320px;
  position: relative;
  transition: height 0.3s;
}
.navbar.open {
  background: #f4f4f4; /* */
}
/* Logo floats left */
.logo {
  float: left;
  font-weight: bold;
  font-size: 24px;
  padding: 17px 20px 17px 0;
  color: #333;
  text-decoration: none;
}
/* Nav links float left, next to logo */
.nav-links {
  float: left;
  height: 60px;
}
.nav-links a {
  float: left;
  display: block;
  color: #333;
  text-decoration: none;
  padding: 22px 15px;
}
/* Search bar floats right */
.search-container {
  float: right;
  margin: 13px 0 0 20px;
}
.search-bar {
  float: left;
}
.search-bar input[type="text"] {
  padding: 6px 12px;
  border: none;
  border-radius: 20px 0 0 20px;
  font-size: 16px;
  outline: none;
  background: #fff;
  color: #333;
  transition: box-shadow 0.2s;
}
.icon-btn {
  float: left;
  background: #fff;
  border: none;
  border-radius: 0 20px 20px 0;
  width: 34px;
  height: 32px;
  cursor: pointer;
  color: #e75480;
  font-size: 18px;
  box-shadow: none;
  margin-left: -1px;
  transition: background 0.2s;
}
.icon-btn:hover {
  background: #ffe0ec;
}
/* Hamburger icon - hidden by default */
.icon {
  display: none;
  position: absolute;
  right: 20px;
  top: 26px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
}
.icon.open .fa-bars::before {
  content: '\f00d'; /* FontAwesome "X" */
}

.container {
  width: 100%;
  overflow: auto;
  background: #fff;
}

.main-content {
  float: left;
  width: 68%;
  padding: 32px 24px 32px 32px;
}

.post {
  background: #f4f4f4;
  margin-bottom: 32px;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.post h2 {
  margin-top: 0;
}

.post .meta {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 12px;
}

.post a {
  color: #007acc;
  text-decoration: none;
}

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

.sidebar {
  float: left;
  width: 28%;
  padding: 32px 32px 32px 0;
}

.widget {
  background: #eaeaea;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 6px;
}

.widget h3 {
  margin-top: 0;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  margin-bottom: 8px;
}

.widget a {
  color: #333;
  text-decoration: none;
}

.widget a:hover {
  color: #007acc;
}

.footer {
  clear: both;
  background: #222;
  color: #fff;
  padding: 18px;
  text-align: center;
  font-size: 0.95em;
  margin-top: 32px;
}

/* Clearfix for container */
.container::after {
  content: "";
  display: table;
  clear: both;
}
 /* Styles for the new post form */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="date"],
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Quicksand", sans-serif;
    font-size: 1em;
}

textarea {
    resize: vertical; /* Allows vertical resizing */
}

input[type="submit"] {
    background-color: #007acc;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #005691;
}

.container_post {
  width: 100%;
  overflow: auto;
  background: #fff;
}
.main-contentpost {
  width: 50%;
  padding: 32px 24px 32px 32px;
}


/* Additional form-specific styling for nice login appearance */
.login-form .main-contentlog {
  width: 100%;
  padding: 32px 24px 32px 32px;
}

.login-form {
  background: #f4f4f4;
  padding: 32px 24px;
  border-radius: 8px;
  max-width: 400px;
  margin: 40px auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.login-form h2 {
  margin-top: 0;
  text-align: center;
}
.login-form label {
  font-weight: bold;
  color: #333;
}
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: "Quicksand", sans-serif;
  font-size: 1em;
}
.login-form input[type="submit"] {
  background-color: #007acc;
  color: white;
  padding: 10px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 1em;
  transition: background-color 0.3s;
}
.login-form input[type="submit"]:hover {
  background-color: #005691;
}

.container_signup {
  width: 100%;
  overflow: auto;
  background: #fff;
}
.main-contentsignup {
  width: 100%;
  padding: 32px 24px 32px 32px;
}


/* Additional form-specific styling for nice login appearance */

.signup_form{
  width: 100%;
  padding: 32px 24px 32px 32px;
}

.signup_form {
  background: #f4f4f4;
  padding: 32px 24px;
  border-radius: 8px;
  max-width: 400px;
  margin: 40px auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.signup_form h2 {
  margin-top: 0;
  text-align: center;
}
.signup_form label {
  font-weight: bold;
  color: #333;
}
.signup_form input[type="text"],
.signup_form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: "Quicksand", sans-serif;
  font-size: 1em;
}
.signup_form input[type="submit"] {
  background-color: #007acc;
  color: white;
  padding: 10px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 1em;
  transition: background-color 0.3s;
}
.signup_form input[type="submit"]:hover {
  background-color: #005691;
}



@media (max-width: 600px) {
  .login-form {
    padding: 18px 6px;
  }

  .signup_form {
    padding: 18px 6px;
  }
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 10px 0;
  }
  .logo, .nav-links, .search-container, .nav-links a, .search-bar, .icon-btn {
    float: none !important;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto 10px auto;
    text-align: center;
  }
  .nav-links {
    height: auto;
    margin-bottom: 0;
    width: 100%;
    margin: 0;
    display: none; /* Initially hide nav links */
  }
  .navbar.open .nav-links {
    display: block; /* Show nav links when navbar is open */
  }
  .nav-links a {
    padding: 10px 0;
    color: #000;
    width: 100%;
    margin: 0;
  }
  .search-container {
    margin: 0 0 10px 15px;
    display: none; /* Initially hide search container */
  }
  .navbar.open .search-container {
    display: block; /* Show search when navbar is open */
  }
  .search-bar input[type="text"] {
    width: 80%;
    float: left;
    margin: 0 auto;
    display: block;
  }
  .icon-btn {
    width: 40px;
    margin: 0;
    border-radius: 0 20px 20px 0;
  }
  /* Hamburger icon visible on mobile */
  .icon {
    display: block;
  }
      .main-content {
            width: 100%;
            padding: 20px;
        }
}

/* Responsive: Stack columns on small screens */
@media (max-width: 800px) {
  .main-content, .sidebar {
    float: none;
    width: 100%;
    padding: 20px;
  }
  .sidebar {
    padding-top: 0;
  }
  .container {
    padding: 0;
  }
}

@media (max-width: 500px) {
  .header h1 {
    font-size: 1.5em;
  }
  .nav li {
    display: block;
    margin: 0;
  }
  .nav a {
    padding: 12px 0;
    display: block;
  }
}

input[type="submit"]:hover { background-color: #005691; }
@media (max-width: 800px) {
    .main-content { float: none; width: 100%; padding: 20px; }
}
