.subtitle {
  color: var(--color-secondarytext);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* FILTER ROW */
.filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filters-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* DROPDOWN */
.filters-row .dropdown {
  position: relative;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  min-width: 150px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.dropdown-btn .label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.chevron svg {
  width: 14px;
  height: 14px;
  stroke: #666;
  stroke-width: 2;
  fill: none;
}

/* ROTATION */
.dropdown.open .chevron {
  transform: rotate(180deg);
}

.dropdown.active .chevron svg {
  stroke: #f15a22;
}

.filters-row .dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  width: 180px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: none;
  z-index: 100;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.option {
  padding: 10px;
  cursor: pointer;
}

.option:hover {
  background-color: #f5f5f5;
}

.option.selected {
  background-color: var(--color-bgsecondary);
  color: var(--color-primary);
}

.filters-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 8px 14px 8px 35px;
  border-radius: 8px;
  border: 1px solid #aaa;
  width: 250px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.clear-all {
  font-size: 14px;
  cursor: pointer;
}

.section-divider {
  margin: 3rem 0 0 0;
}

.dropdown.active .dropdown-btn {
  border-color: #f15a22;
  background: #fff3ed;
  color: #f15a22;
}

/* LABEL COLOR */
.dropdown.active .label {
  color: #f15a22;
}

/* CHEVRON COLOR (if using svg) */
.dropdown.active .chevron svg {
  stroke: #f15a22;
}

/* SELECTED OPTION */
.option.selected {
  background: #fff3ed;
  color: #f15a22;
}

/*--------------case study cards--------------*/
.masonry {
  display: flex;
  gap: 30px;
}

.all-cards {
  /*display: none;*/
  /* hide original list */
}

.masonry {
  display: flex;
  gap: 30px;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.case-card {
  /*display: none;*/
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .masonry {
    flex-direction: column;
  }
}

.case-img {
  border-radius: 14px;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-card.large .case-img {
  height: 500px;
}

.case-card.small .case-img {
  height: 360px;
}

.case-content {
  margin-top: 14px;
}

.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-top h3 {
  color: var(--color-primary);
  margin: 20px 0 5px 0;
  font-size: 20px;
}

.case-top span {
  font-size: 12px;
  color: #777;
}

.case-content p {
  font-size: 14px;
  color: var(--color-secondarytext);
  line-height: 1.5;
  margin: 10px 0 22px 0;
}

.case-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tags span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: linear-gradient(#FFFAF5, #FFFAF5) padding-box, linear-gradient(180deg, #ffffff 0.03%, #FE5B15 75.78%) border-box;
}

.cta {
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.cta:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

#loadMore {
  width: 100%;
  color: #fff;
  display: block;
  text-align: center;
  margin: 20px auto;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background-color: var(--color-primary);
  transition: .3s;
}

#loadMore:hover {
  color: var(--color-primary);
  background-color: #fff;
  border: 1px solid var(--color-primary);
  text-decoration: none;
}

.noContent {
  color: #999 !important;
  background-color: transparent !important;
  pointer-events: none;
  border: 1px solid #d2d2d2 !important;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .case-row {
    grid-template-columns: 1fr;
    column-count: 1;
  }

  .case-card.large .case-img,
  .case-card.small .case-img {
    height: 450px;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }

  .filters-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters-right {
    width: 100%;
    justify-content: space-between;
  }

  .search-box input {
    width: 100%;
  }
}