.insight-classifier {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #dfe9f3;
  border-radius: 22px;
  background: #f5f9fc;
}

.insight-category-group,
.insight-country-field {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.insight-country-field {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dfe9f3;
}

.insight-filter-label,
.insight-country-field > span {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  column-gap: 8px;
}

.insight-filter-label > span,
.insight-country-field b {
  grid-row: 1 / span 2;
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.insight-filter-label strong,
.insight-country-field strong {
  color: #263b52;
  font-size: 14px;
  font-weight: 900;
}

.insight-filter-label small,
.insight-country-field small {
  margin-top: 3px;
  color: #8a98aa;
  font-size: 11px;
  font-weight: 700;
}

.insight-category-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.insight-category-tabs button {
  min-height: 48px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d8e4ef;
  border-radius: 14px;
  background: #fff;
  color: #607187;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.insight-category-tabs button:hover {
  border-color: #8edfff;
  color: var(--cyan-dark);
}

.insight-category-tabs button:focus-visible,
.insight-country-field select:focus-visible {
  outline: 3px solid rgba(0, 174, 239, .2);
  outline-offset: 2px;
}

.insight-category-tabs button.active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 9px 22px rgba(0, 174, 239, .2);
}

.insight-category-tabs b {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf4f8;
  color: #74869b;
  font-size: 10px;
  line-height: 1.5;
}

.insight-category-tabs button.active b {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.insight-country-field select {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 16px;
  border: 1px solid #d8e4ef;
  border-radius: 14px;
  background-color: #fff;
  color: #263b52;
  font-weight: 750;
  cursor: pointer;
}

.insight-search-bar {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.news-card {
  display: block;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: #bfe5f5;
  box-shadow: 0 18px 42px rgba(19, 57, 91, .12);
}

.news-card:focus-visible {
  outline: 3px solid #00aeef;
  outline-offset: 4px;
}

.news-card-meta {
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.news-card-tags {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  overflow: hidden;
}

.news-card-tags span {
  max-width: 88px;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f4f8;
  color: #6b7c90;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card-tags .business-study {
  background: #e6f7ff;
  color: #007fab;
}

.news-card-tags .business-immigration {
  background: #e9f7ef;
  color: #20774b;
}

@media (max-width: 980px) {
  .insight-category-group,
  .insight-country-field {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .insight-category-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .insight-classifier {
    padding: 14px;
    border-radius: 18px;
  }

  .insight-category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-category-tabs button:first-child {
    grid-column: 1 / -1;
  }

  .insight-category-tabs button {
    min-height: 46px;
    font-size: 12px;
  }

  .insight-search-bar {
    grid-template-columns: 1fr;
  }

  .news-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-card-tags {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insight-category-tabs button,
  .news-card {
    transition: none;
  }
}
