/* Case Study Listing styles */
.bs-section.bs-casestudy-archive {
  padding: 48px 0 72px;
  /* background-color: #f5f5f7; */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

.bs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.bs-archive-header {
  margin-bottom: 32px;
}

.bs-archive-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
}

.bs-archive-subtitle {
  margin: 0;
  color: #374151;
  font-size: 14px;
  max-width: 720px;
  line-height: 1.6;
}

/* GRID – 3 per row desktop */
.bs-casestudy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .bs-casestudy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .bs-casestudy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bs-card.bs-casestudy-card {
  position: relative;
  background: #ffffff;
  border: 4px solid rgba(16, 16, 16, 0.05);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.bs-card.bs-casestudy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.12);
  /* border-color: #1b99d7; */
}

/* Blue angle */
.bs-card.bs-casestudy-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 40px;
  height: 40px;
  border-top: 4px solid #1b99d7;
  border-left: 4px solid #1b99d7;
  border-radius: 4px;
}

/* Badge */
.bs-badge-top {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  background: #e0f2fe;
  color: #1b99d7;
}

.bs-card-title-link {
  text-decoration: none;
  color: inherit;
}

.bs-casestudy-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  padding-right: 70px;
}

.bs-casestudy-image-wrap {
  border-radius: 10px;
  overflow: hidden;
  background-color: #f9fafb;
}

.bs-casestudy-image {
  width: 100%;
  display: block;
  height: auto;
}

.bs-casestudy-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 8px;
  font-size: 12px;
  color: #9ca3af;
}

.bs-casestudy-benefits-text {
  font-size: 13px;
  color: #374151;
  margin: 0;
}

/* Metrics */
.bs-casestudy-metrics {
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 10px;
}

.bs-casestudy-metrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bs-metrics-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #1b99d7;
  font-size: 10px;
  font-weight: 500;
}

.bs-metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bs-metrics-table th,
.bs-metrics-table td {
  padding: 6px 4px;
  text-align: left;
}

.bs-metrics-table thead th {
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}

.bs-metrics-table tbody tr:nth-child(even) {
  background: #f3f4f6;
}

/* Footer */
.bs-casestudy-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  flex-direction: column;
}

.bs-casestudy-tags-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bs-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.bs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

.bs-btn-black, .bs-btn-black:visited {
  background-color: #111827;
  color: #ffffff;
}

.bs-btn-black:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15,23,42,0.18);
}

/* Pagination */
.bs-archive-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.bs-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0 3px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.bs-archive-pagination .page-numbers.current {
  background-color: #1b99d7;
  border-color: #1b99d7;
  color: #ffffff;
}

.bs-archive-pagination .page-numbers:hover {
  background-color: #e5f3ff;
}
