/* Blog — Buzzoid-matching index (white bg, home-scale type) */

.bl-page {
  background: #ffffff;
}

.bl-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* Category bar */
.bl-cats {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #e9ecf2;
}

.bl-cats-inner {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.bl-cat-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bl-cat-list button,
.bl-cat-list a {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s, background 0.15s;
}

.bl-cat-list button:hover,
.bl-cat-list a:hover {
  color: #1a1d23;
  background: #f5f7fa;
}

.bl-cat-list button.is-active,
.bl-cat-list a.is-active {
  color: #1a1d23;
  background: #f0f2f5;
}

.bl-search {
  position: relative;
  flex-shrink: 0;
}

.bl-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 15px;
  pointer-events: none;
}

.bl-search input {
  width: min(260px, 42vw);
  box-sizing: border-box;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  font-family: inherit;
  font-size: 15px;
  color: #1a1d23;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bl-search input:focus {
  border-color: #ff5c00;
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.12);
}

.bl-search input::placeholder {
  color: #9ca3af;
}

/* Intro */
.bl-intro {
  padding: 48px 0 28px;
  background: #ffffff;
}

.bl-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1a1d23;
  line-height: 1.05;
}

.bl-intro p {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: #6b7280;
}

.bl-page-label {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
}

/* Featured */
.bl-featured {
  padding: 0 0 48px;
  background: #ffffff;
}

.bl-featured-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px 48px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.bl-featured-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f6f9;
  aspect-ratio: 16 / 10;
}

.bl-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bl-featured-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff5c00;
}

.bl-featured-card h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1a1d23;
}

.bl-featured-card .bl-excerpt {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.6;
  color: #6b7280;
}

.bl-meta {
  margin: 0 0 14px;
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
}

.bl-card .bl-meta {
  margin: 0 0 8px;
}

.bl-read {
  font-size: 16px;
  font-weight: 700;
  color: #ff5c00;
}

.bl-featured-card:hover .bl-read {
  color: #ea5500;
}

/* Grid */
.bl-grid-wrap {
  padding: 8px 0 40px;
  background: #ffffff;
}

.bl-grid-wrap > h2 {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1d23;
}

.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.bl-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.bl-card.is-hidden {
  display: none;
}

.bl-card-media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f5f7fa;
  margin-bottom: 16px;
}

.bl-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bl-card:hover .bl-card-media img {
  transform: scale(1.03);
}

.bl-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #1a1d23;
}

.bl-card .bl-excerpt {
  margin: 0;
  flex: 1;
  font-size: 15px;
  line-height: 1.55;
  color: #6b7280;
}

.bl-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: #6b7280;
  font-size: 16px;
}

.bl-empty.is-on {
  display: block;
}

/* Pagination — Buzzoid style */
.bl-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  padding: 20px 0 48px;
  flex-wrap: wrap;
  background: #ffffff;
}

.bl-pager a,
.bl-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
}

.bl-pager a:hover {
  color: #1a1d23;
}

.bl-pager .is-current {
  background: #1a1d23;
  color: #fff;
  font-weight: 700;
}

.bl-pager .bl-pager-edge {
  color: #1a1d23;
  font-weight: 700;
  min-width: auto;
  padding: 0 12px;
}

.bl-pager .bl-pager-edge[aria-disabled="true"],
.bl-pager .is-disabled {
  color: #c4c9d2;
  pointer-events: none;
}

/* CTA banner — match Buzzoid pre-footer */
.bl-cta {
  padding: 0 0 64px;
  background: #ffffff;
}

.bl-cta-inner {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px 28px;
  padding: 28px 32px;
  background: #f5f7fa;
  border-radius: 20px;
}

.bl-cta-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.bl-cta-copy {
  flex: 1;
  min-width: 0;
}

.bl-cta-copy strong {
  display: block;
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #1a1d23;
  letter-spacing: -0.02em;
}

.bl-cta-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
  max-width: 52ch;
}

.bl-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  background: #ff5c00;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.bl-cta-btn:hover {
  background: #ea5500;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .bl-featured-card,
  .bl-grid {
    grid-template-columns: 1fr;
  }

  .bl-grid {
    gap: 32px;
  }

  .bl-cats {
    top: 56px;
  }

  .bl-cats-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .bl-search input {
    width: 100%;
  }

  .bl-cta-inner {
    flex-wrap: wrap;
    padding: 24px;
  }

  .bl-cta-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .bl-shell,
  .bl-cats-inner,
  .bl-cta-inner {
    width: calc(100% - 32px);
  }

  .bl-intro {
    padding-top: 32px;
  }

  .bl-cat-list {
    gap: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .bl-cat-list button,
  .bl-cat-list a {
    white-space: nowrap;
  }
}
