:root {
  --bcsg-red: #D81F3F;
  --bcsg-red-deep: #A2132C;
  --bcsg-ink: #18171C;
  --bcsg-ink-2: #45434E;
  --bcsg-ink-3: #7C7A86;
  --bcsg-bg: #FBF8F4;
  --bcsg-surface: #FFFFFF;
  --bcsg-line: #ECE5DC;
  --bcsg-line-2: #E2DACE;
  --bcsg-star: #E0A312;
  --bcsg-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --bcsg-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bcsg-radius: 16px;
  --bcsg-shadow: 0 4px 14px rgba(24,23,28,0.07), 0 12px 36px rgba(24,23,28,0.06);
}

.bcsg-blog-grid-wrap,
.bcsg-blog-grid-wrap * {
  box-sizing: border-box;
}

.bcsg-blog-grid-wrap {
  width: 100%;
  max-width: 100%;
  font-family: var(--bcsg-sans);
  color: var(--bcsg-ink);
  overflow: hidden;
}

/* Controls */
.bcsg-feed-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.bcsg-feed-filter {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.bcsg-chip {
  appearance: none;
  border: 1px solid var(--bcsg-line-2);
  background: var(--bcsg-surface);
  color: var(--bcsg-ink);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: .18s ease;
  white-space: nowrap;
  min-height: 36px;
  width: auto;
}

.bcsg-chip:hover {
  transform: translateY(-1px);
  border-color: var(--bcsg-ink-3);
}

.bcsg-chip.is-active {
  background: var(--bcsg-ink);
  border-color: var(--bcsg-ink);
  color: #fff;
}

.bcsg-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.bcsg-feed-search {
  height: 42px;
  width: 280px;
  min-width: 240px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bcsg-surface);
  border: 1px solid var(--bcsg-line-2);
  border-radius: 999px;
  padding: 0 16px;
  transition: .18s ease;
  flex: 0 0 auto;
}

.bcsg-feed-search:focus-within {
  border-color: var(--bcsg-red);
  box-shadow: 0 0 0 3px rgba(216,31,63,.13);
}

.bcsg-feed-search svg {
  width: 16px;
  height: 16px;
  color: var(--bcsg-ink-3);
  flex: 0 0 auto;
}

.bcsg-feed-search input {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  min-width: 0;
  flex: 1;
  height: 100%;
  font: inherit;
  color: var(--bcsg-ink);
  box-shadow: none !important;
  padding: 0 !important;
}

/* Grid */
.bcsg-feed-grid {
  display: grid;
  grid-template-columns: repeat(var(--bcsg-columns, 3), minmax(0, 1fr));
  gap: 22px;
}

.bcsg-gcard {
  min-width: 0;
  background: var(--bcsg-surface);
  border: 1px solid var(--bcsg-line);
  border-radius: var(--bcsg-radius);
  overflow: hidden;
  transition: .22s ease;
  display: flex;
  flex-direction: column;
}

.bcsg-gcard[hidden],
.bcsg-gcard[aria-hidden="true"] {
  display: none !important;
}

.bcsg-gcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--bcsg-shadow);
  border-color: var(--bcsg-line-2);
}

.bcsg-card-link-wrap {
  color: inherit;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bcsg-ph {
  height: 190px;
  position: relative;
  overflow: hidden;
  background: #F4EFE8;
}

.bcsg-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .22s ease;
}

.bcsg-gcard:hover .bcsg-ph img {
  transform: scale(1.035);
}

.bcsg-ph-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background-image: repeating-linear-gradient(45deg, #F4EFE8, #F4EFE8 11px, #EFE8DF 11px, #EFE8DF 22px);
}

.bcsg-pf-ic svg {
  width: 36px;
  height: 36px;
}

.bcsg-pf-lbl {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.82);
  padding: 5px 9px;
  border-radius: 7px;
}

.bcsg-gbody {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.bcsg-tag {
  position: absolute;
  top: -176px;
  left: 13px;
  max-width: calc(100% - 26px);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bcsg-ink);
  padding: 6px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bcsg-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.bcsg-gbody h3 {
  font-family: var(--bcsg-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--bcsg-ink);
}

.bcsg-gcard:hover .bcsg-gbody h3 {
  color: var(--bcsg-red-deep);
}

.bcsg-gmeta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-size: 13px;
  color: var(--bcsg-ink-3);
  font-weight: 700;
  flex-wrap: wrap;
}

.bcsg-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--bcsg-star);
  margin-left: auto;
}

.bcsg-stars svg {
  width: 15px;
  height: 15px;
}

.bcsg-gfoot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bcsg-read {
  font-size: 14px;
  font-weight: 800;
  color: var(--bcsg-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bcsg-read svg {
  width: 15px;
  height: 15px;
  transition: .2s ease;
}

.bcsg-gcard:hover .bcsg-read svg {
  transform: translateX(3px);
  color: var(--bcsg-red);
}

.bcsg-picks {
  font-size: 12.5px;
  color: var(--bcsg-ink-3);
  font-weight: 700;
  white-space: nowrap;
}

.bcsg-feed-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 54px 20px;
  color: var(--bcsg-ink-3);
  font-weight: 700;
}

/* Tablet */
@media (max-width: 1024px) {
  .bcsg-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bcsg-feed-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .bcsg-feed-search {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }
}

/* Mobile: horizontal tabs + full search */
@media (max-width: 767px) {
  .bcsg-blog-grid-wrap {
    padding-inline: 0;
    overflow: visible;
  }

  .bcsg-feed-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 22px;
    width: 100%;
  }

  .bcsg-feed-filter {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap !important;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .bcsg-feed-filter::-webkit-scrollbar {
    display: none;
  }

  .bcsg-chip {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    padding: 9px 15px;
    font-size: 13.5px;
    line-height: 1;
    white-space: nowrap !important;
  }

  .bcsg-feed-search {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px;
    flex: 0 0 auto;
  }

  .bcsg-feed-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bcsg-ph {
    height: 190px;
  }

  .bcsg-gbody {
    padding: 18px 17px 20px;
  }

  .bcsg-gbody h3 {
    font-size: 22px;
    line-height: 1.08;
  }

  .bcsg-gmeta {
    gap: 8px;
    font-size: 12.5px;
  }

  .bcsg-stars {
    margin-left: 0;
    width: auto;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .bcsg-feed-controls {
    gap: 12px;
  }

  .bcsg-chip {
    padding: 8px 13px;
    font-size: 13px;
    min-height: 34px;
  }

  .bcsg-feed-search {
    height: 44px;
  }

  .bcsg-ph {
    height: 185px;
  }

  .bcsg-gbody h3 {
    font-size: 21px;
  }

  .bcsg-gfoot {
    gap: 10px;
  }
}

/* Extra narrow phones */
@media (max-width: 360px) {
  .bcsg-gbody h3 {
    font-size: 20px;
  }

  .bcsg-picks {
    font-size: 12px;
  }
}
