/* Blog index page */

.blog-index-page .page-banner-title {
  background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-index-page .page-banner-inner > :nth-child(2) { animation-delay: 0.15s; }
.blog-index-page .page-banner-inner > :nth-child(3) { animation-delay: 0.25s; }

.blog-index-page .page-banner-sub {
  max-width: 620px;
  margin-top: 22px;
}

.bi-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Filter bar */
.bi-filter-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.bi-filter-bar--inline {
  border-bottom: none;
  margin-bottom: 36px;
}

.bi-filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  flex-wrap: wrap;
}

.bi-filter-bar--inline .bi-filter-inner {
  padding: 0;
}

.bi-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bi-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 16px;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bi-pill:hover {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.bi-pill.active {
  background: #ffec00;
  color: #080808;
  border-color: #ffec00;
  font-weight: 600;
}

.bi-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  height: 42px;
  min-width: 240px;
}

.bi-search svg {
  width: 15px;
  height: 15px;
  stroke: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.bi-search input {
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  width: 100%;
}

.bi-search input::placeholder { color: rgba(255,255,255,0.35); }

/* Shared card */
.bi-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0b0b0b;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.bi-card-img {
  position: relative;
  background: #0e0e0e;
  overflow: hidden;
}

.bi-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bi-card-img--ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  text-align: center;
  padding: 20px;
}

.bi-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffec00;
  color: #080808;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border-radius: 999px;
}

.bi-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd800;
}

.bi-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

.bi-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bi-meta-item svg {
  width: 13px;
  height: 13px;
  stroke: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.bi-meta-div {
  width: 1px;
  height: 13px;
  background: var(--border);
}

.bi-arrow-btn {
  position: absolute;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.bi-arrow-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.bi-card:hover .bi-arrow-btn {
  background: #ffec00;
  border-color: #ffec00;
  color: #080808;
}

.bi-card:hover .bi-arrow-btn svg { transform: rotate(45deg); }

/* Archive */
.bi-archive {
  padding: 56px 0 40px;
  background: var(--bg);
}

.bi-archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.bi-archive-head .services-title {
  max-width: none;
}

.bi-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bi-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bi-card--post .bi-card-img { aspect-ratio: 16 / 10; }

.bi-post-body {
  padding: 24px 24px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bi-card--post .bi-cat { margin-bottom: 13px; }

.bi-card--post h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: #fff;
}

.bi-card--post .bi-excerpt {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.bi-card--post .bi-meta {
  margin-top: auto;
  font-size: 12.5px;
}

.bi-card--post .bi-arrow-btn {
  width: 40px;
  height: 40px;
  bottom: 22px;
  right: 22px;
}

.bi-card--post .bi-arrow-btn svg { width: 14px; height: 14px; }

/* Pagination */
.bi-pagination {
  padding: 32px 0 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg);
}

.bi-page-num,
.bi-page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.15s ease;
  text-decoration: none;
}

.bi-page-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.bi-page-btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.bi-page-num.active {
  background: #ffec00;
  color: #080808;
  border-color: #ffec00;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1100px) {
  .bi-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .bi-post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .bi-wrap { padding: 0 20px; }
  .bi-archive-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bi-filter-inner { flex-direction: column; align-items: stretch; }
  .bi-search { min-width: 0; }
}
