.systeme-filter-widget {
  max-width: 100%;
  margin: 0 auto;
}

/* Filter Row Styles */
.filter-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-right {
  flex: 0 0 auto;
}

.filter-control-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

/* Filter Button Styles */
.filter-button {
  cursor: pointer;
  position: relative;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #12223b30;
  padding: 0px 24px 0px 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  border-radius: 100px;
  transition: all 0.3s ease;
  white-space: nowrap;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Local Roboto", sans-serif;
}

.filter-button:hover {
  border-color: #2e5d78;
}

.filter-button.active {
  background-color: #2e5d78;
  color: #ffffff;
}

/* Tag filter with color indicator */
.tag-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Search Input */
.systeme-filter-widget input.search-input {
  border-radius: 100px;
  font-size: 20px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #12223b30;
  padding: 0px 24px 0px 24px;
  color: #1e3649;
  height: 50px;
  font-family: "Local Roboto", sans-serif;
  width: 470px;
}

.search-input:focus {
  outline: none;
  border-color: #2e5d78;
}

.filter-right {
  position: relative;
  z-index: 1;
}

/* Radio Button Styles */
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-right: 20px;
}

.radio-option input[type="radio"] {
  margin: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #12223b30;
  appearance: none;
  border-radius: 50%;
  background-color: transparent;
}

.radio-option input[type="radio"]:checked {
  background-color: #2e5d78;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #12223b30;
}

.radio-label {
  color: #1e3649;
  cursor: pointer;
  font-family: "Local Roboto", sans-serif;
  font-size: 20px;
}

/* Posts Grid */
.systeme-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.systeme-post-card {
  background: #ffffff;
  border-radius: 40px;
  overflow: hidden;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #12223b30;
}
.systeme-post-card:hover {
  box-shadow: 23px 24px 50px -27px rgba(0, 0, 0, 0.23);
}

.systeme-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.systeme-post-title {
  padding: 15px;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  text-align: center;
}

.systeme-post-card a {
  text-decoration: none;
  color: inherit;
}
h3.systeme-post-title {
  font-size: 22px;
}
/* Pagination Styles */
.systeme-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.systeme-pagination a,
.systeme-pagination span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  color: #2d4751;
  min-width: 40px;
  text-align: center;
  line-height: 1.5;
}

.systeme-pagination a {
  transition: all 0.3s ease;
}

.systeme-pagination a:hover {
  background-color: #2e5d78;
  color: #ffffff;
}

.systeme-pagination .current {
  background-color: #2e5d78;
  color: #ffffff;
}

.systeme-pagination .dots {
  color: #2d4751;
}

/* Loading Spinner */
.loading-posts {
  text-align: center;
  padding: 40px;
}

.loading-posts img {
  max-width: 50px;
}

/* Responsive Design */
@media (max-width: 880px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-left {
    width: 100%;
  }

  .filter-right {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .systeme-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  .systeme-filter-widget input.search-input {
    width: 100%;
  }

  .filter-button {
    padding: 8px 16px;
    font-size: 16px;
  }
  .radio-label {
    font-size: 16px;
  }
  h3.systeme-post-title {
    font-size: 18px;
  }
  .systeme-filter-widget input.search-input {
    font-size: 16px;
  }
}
