/* Blog search + filters — Figma Blog-v4 "Our Tips & Articles" */

.cura-bs {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 32px;
  color: #1A2933;
  font-family: 'Amiko', sans-serif;
}

.cura-bs *,
.cura-bs *::before,
.cura-bs *::after {
  box-sizing: border-box;
}

.cura-bs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}

.cura-bs-title {
  margin: 0;
  font-family: 'Sofia Sans Semi Condensed', 'Sofia Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: #1A2933;
}

.cura-bs-all {
  flex: none;
  color: #1A2933;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cura-bs-all:hover {
  color: #41637B;
}

.cura-bs-form {
  width: 100%;
  max-width: 812px;
  margin: 0 auto;
}

/* Search field */

.cura-bs-search {
  position: relative;
  margin: 0 0 12px;
}

.cura-bs-search input[type='search'] {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 8px 52px 8px 16px;
  border: 1px solid #C4CFD6;
  border-radius: 8px;
  background: #F1F5F9; /* LGray-Input */
  color: #1A2933;
  font-family: 'Amiko', sans-serif;
  font-size: 15px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cura-bs-search input[type='search']::placeholder {
  color: #8E99A1;
  opacity: 1;
}

.cura-bs-search input[type='search']:hover {
  border-color: #8E99A1;
}

.cura-bs-search input[type='search']:focus {
  outline: none;
  background: #FFFFFF;
  border-color: #73B1DD;
  box-shadow: 0 0 0 3px rgba(115, 177, 221, 0.28);
}

.cura-bs-search input[type='search']::-webkit-search-cancel-button {
  display: none;
}

.cura-bs-search button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent !important;
  color: #41637B !important; /* theme `button` rules otherwise make it near-white */
  cursor: pointer;
  box-shadow: none;
}

.cura-bs-search button svg {
  stroke: currentColor;
}

.cura-bs-search button:hover,
.cura-bs-search button:focus-visible {
  color: #1A2933 !important;
}

.cura-bs-search button:focus-visible {
  outline: 2px solid #73B1DD;
  outline-offset: -3px;
}

/* Filters row */

.cura-bs-filters {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  align-items: center;
  gap: 12px;
}

.cura-bs-ico {
  display: grid;
  place-items: center;
  width: 28px;
  color: #41637B;
}

.cura-bs-select {
  position: relative;
  min-width: 0;
}

.cura-bs-select select {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 6px 34px 6px 12px;
  border: 1px solid #C4CFD6;
  border-radius: 8px;
  background-color: #F1F5F9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2341637B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  color: #1A2933;
  font-family: 'Amiko', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cura-bs-select select:hover {
  border-color: #8E99A1;
}

.cura-bs-select select:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: #73B1DD;
  box-shadow: 0 0 0 3px rgba(115, 177, 221, 0.28);
}

.cura-bs-active {
  margin: 14px 0 0;
  color: #678295;
  font-size: 14px;
  text-align: center;
}

.cura-bs-active a {
  margin-left: 6px;
  color: #41637B;
  font-weight: 600;
  text-decoration: underline;
}

.cura-bs-empty {
  width: 100%;
  margin: 8px 0 32px;
}

@media (max-width: 767px) {
  .cura-bs-title {
    font-size: 26px;
    line-height: 32px;
  }

  .cura-bs-all {
    font-size: 16px;
  }

  .cura-bs-filters {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cura-bs-ico {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .cura-bs-filters {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cura-bs-ico {
    display: none;
  }
}
