.category-overview {
  margin: 30px auto;
}

.category-overview__layout {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.category-overview__filters {
  flex: 0 0 250px;
}

.category-overview__main {
  flex: 1;
}

.page-header-with-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.informatie-type-filter {
  display: flex;
  align-items: center;
  gap: 15px;
}

.square-toggle {
  display: flex;
  align-items: center;
  gap: 15px;
}

.square-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.square-toggle-track:hover {
  border-color: #236bf6;
}

.square-toggle-slider {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  background-color: #236bf6;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.square-toggle[data-active="tickets"] .square-toggle-slider {
  transform: translateX(0);
}

.square-toggle[data-active="education"] .square-toggle-slider {
  transform: translateX(20px);
}

.square-toggle-option {
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
  user-select: none;
}

.square-toggle-option.active {
  color: #236bf6;
  font-weight: 500;
}

.square-toggle-option:hover:not(.active) {
  color: #236bf6;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.company-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.company-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.company-card__image {
  height: 180px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.company-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-card__placeholder {
  width: 100%;
  height: 100%;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.company-card__title {
  padding: 15px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.company-card:hover .company-card__title {
  color: #236bf6;
  text-decoration: underline;
}

.company-card:hover .company-card__tag {
  color: #666;
  text-decoration: none;
}

.company-card__tags {
  padding: 0 15px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.company-card__tag {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
}

.active-filters {
  margin: 10px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  background-color: #236bf6;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.filter-chip-remove {
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-chip-remove:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.custom-filter-section {
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 8px;
}

.custom-filter-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.filter-btn-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-btn {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  width: 100%;
}

.filter-btn:hover {
  background-color: #f5f5f5;
  color: #236bf6;
}

.filter-btn:hover .filter-btn-checkbox {
  border-color: #236bf6;
}

.filter-btn.active .filter-btn-checkbox {
  border-color: #236bf6;
}

.filter-btn.active .filter-btn-mark {
  display: block;
}

.filter-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f8f9fa !important;
  color: #6c757d !important;
}

.filter-btn-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.filter-btn-mark {
  width: 12px;
  height: 12px;
  background-color: #236bf6;
  border-radius: 2px;
  display: none;
}

.results-counter {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.custom-filter-checkbox {
  margin-bottom: 12px;
  position: relative;
}

.custom-filter-checkbox:last-child {
  margin-bottom: 0;
}

.custom-filter-checkbox label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  padding-left: 30px;
  user-select: none;
}

.custom-filter-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.custom-filter-checkbox:hover input ~ .checkmark {
  background-color: #f0f0f0;
}

.custom-filter-checkbox input:checked ~ .checkmark {
  background-color: #236bf6;
  border-color: #236bf6;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-filter-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-filter-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.category-overview__filters .custom-filter-section:first-child {
  display: none;
}

.mobile-filter-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
  background: #f8f9fa;
  border-color: #236bf6;
}

.mobile-filter-toggle svg {
  transition: transform 0.3s ease;
}

.mobile-filter-chevron {
  transform: rotate(0deg);
}

.filters-container {
  display: block;
  max-height: none;
  overflow: visible;
  background: none;
  border: none;
}

@media (max-width: 768px) {
  .page-header-with-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .informatie-type-filter {
    width: 100%;
    justify-content: center;
  }

  .category-overview__layout {
    flex-direction: column;
  }
  
  .category-overview__filters {
    flex: 0 0 auto;
  }

  .mobile-filter-toggle {
    display: flex;
  }

  .filters-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    border-top: none;
    margin-top: -1px;
  }

  .filters-container.expanded {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.5s ease-in;
    border-top: 1px solid #ddd;
    margin-top: 0;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .filters-container .custom-filter-section {
    padding: 20px 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
  }

  .filters-container .custom-filter-section:last-child {
    border-bottom: none;
    padding-bottom: 25px;
  }

  .filters-container .custom-filter-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    padding-top: 5px;
    margin-top: -5px;
  }

  .active-filters {
    display: flex !important;
    margin: 15px 0 20px;
  }

  .company-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
  }

  .filters-container.expanded::-webkit-scrollbar {
    width: 6px;
  }

  .filters-container.expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .filters-container.expanded::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
  }

  .filters-container.expanded::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
}