:root {
  --brand-color: #9E0059;
  --border-color: #D1D1D4;
  --dropdown-bg: #ffffff;
  --hover-bg: #f9f9f9;
}
.filter-section {
    padding: 70px 0;
}
.filter-section h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: var(--primaryGrayBlack);
    padding-top: 24px;
    margin-bottom: 16px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 0;
  padding-top: 16px;
  padding-bottom: 24px;
}

.filter-group {
  position: relative;
  min-width: 140px;
}

.dropdown {
  border: 1px solid var(--border-color);
  cursor: pointer;
  background-color: var(--dropdown-bg);
  font-weight: 400;
  color: var(--lightGrey);
  position: relative;
  font-size: 16px;
  line-height: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 42px;
  padding-left: 16px;
  min-width: 200px;
}

.dropdown::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #555;
  width: 24px;
  height: 17px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='17' viewBox='0 0 24 17' fill='none'%3E%3Cmask id='mask0_622_42612' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='24' height='17'%3E%3Crect width='24' height='17' fill='%23D9D9D9'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_622_42612)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.96557 12.1705L4.61508 6.81998L6.81995 4.61511L12.1704 9.9656L17.7855 4.35052L19.8728 6.4378L14.2577 12.0529L12.0528 14.2578L9.96557 12.1705Z' fill='%239E0159'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.dropdown.white::after{
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='17' viewBox='0 0 24 17' fill='none'%3E%3Cmask id='mask0_622_42612' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='24' height='17'%3E%3Crect width='24' height='17' fill='%23D9D9D9'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_622_42612)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.96557 12.1705L4.61508 6.81998L6.81995 4.61511L12.1704 9.9656L17.7855 4.35052L19.8728 6.4378L14.2577 12.0529L12.0528 14.2578L9.96557 12.1705Z' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E");
}
.dropdown-menu {
  position: absolute;
  top: 103%;
  left: 0;
  background-color: var(--dropdown-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 0;
  display: none;
  flex-direction: column;
  z-index: 9999;
  min-width: 195px;
  max-height: 240px;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #D1D1D4 #D1D1D4;
  padding: 12px 32px 12px 16px;
}

/* Chrome, Safari, Edge */
.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: var(--primaryGray);
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: var(--primaryGray);
  border-radius: 10px;
  border: 2px solid var(--primaryGray);
}
.dropdown.active .dropdown-menu {
  display: flex;
}

.dropdown-menu label {
  display: flex;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  margin: 8px 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--primaryGray);
  transition: background-color 0.3s ease;
}
.dropdown-menu label:last-child {
  margin-bottom: 0;
}
.dropdown-menu label span{
  font-weight: 400;
  line-height: 24px;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: var(--lightGrey);
}
.dropdown-menu label:hover span{
  color:var(--brand-color);
}
.dropdown-menu label:last-child{
  border:none;
}
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.custom-checkbox .box {
  border: 1px solid var(--lightGrey);
  position: relative;
  display: inline-block;
  accent-color: var(--secondaryColor);
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  margin-right: 8px;
  flex-shrink: 0;
  border-radius: 0;
  background-color: white;
  position: relative;
  display: inline-block;
}

/* Show checkmark when checked */
.custom-checkbox input[type="checkbox"]:checked + .box {
  background-color:var(--secondaryColor);
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M20.285 5.709a1 1 0 010 1.414l-11 11a1 1 0 01-1.414 0l-5-5a1 1 0 111.414-1.414L9 15.586 18.871 5.709a1 1 0 011.414 0z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size:20px 20px;
  border:none;
}


.dropdown-menu input:checked + span {
  font-weight: 600;
  color: var(--secondaryColor);
}

.clear-btn {
  font-size: 16px;
  color: var(--secondaryColor);
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 24px;
}
#resContainer .research .text a{
  display: inline-flex;
  align-items: center;
}
.research{
  padding-bottom:0;
}
.filter-section.research{
  padding:0;
  padding-bottom: 60px;
}
.clear-filters{
  display: none;
}
#no-results{
  display: none;
}
.no-results-container{
  display: flex;
  gap:24px;
  margin-top: 30px;
  align-items: center;
}
.no-results-container h2 {
  font-size: 30px;
  font-style: normal;
  font-weight: 500;
  line-height: 38px;
  padding-top: 0;
}

.no-results-container h2 span {
  color: #9E0159; /* Magenta tone from screenshot */
}

.no-results-container p {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px; 
  color: var(--primaryGrayBlack);
}
@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .clear-btn {
    margin-left: 0;
    margin-top: 10px;
  }

  .dropdown {
    width: 100%;
  }
}
