.mobile-filter-btn {
  position: absolute;
  left: 15px;
  background: var(--primary-color);
  color: white;
  border: none;
          padding: 4px 8px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
}

/* Sticky effect when hero is out of view */
.mobile-filter-btn.sticky {
  position: fixed;
  top: 15px !important;
  left: 15px;
}

.mobile-filter-btn:hover {
  background: #45a049;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100%;
  background: white;
  -webkit-box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  padding: 20px;
  -webkit-transition: left 0.3s ease-in-out;
  -o-transition: left 0.3s ease-in-out;
  transition: left 0.3s ease-in-out;
  z-index: 1001;
}

.sidebar.open {
  left: 0;
  overflow-y: auto;
  box-sizing: border-box;
}

.sidebar-overlay.open {
  display: block;
}

.sidebar h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.sidebar label {
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 16px;
}

.sidebar input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

#clear-filters {
  margin-top: 10px;
  width: 100%;
  background-color: #d9534f;
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}

#clear-filters:hover {
  background-color: #c9302c;
}

/* Adjust main content when sidebar is open */
.sidebar.open + .blog-posts {
  margin-left: 260px;
}

/* Responsive Adjustments */
@media (min-width: 1375px) {
  .container .mobile-filter-btn {
    display: none !important;
  }
  .sidebar {
    position: static;
    width: 250px;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
}