.blog-page {
  background: var(--dark-bg);
  color: var(--text-primary);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 128px 24px 78px;
  border-bottom: 1px solid var(--dark-border);
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7ab3f5;
  background: rgba(19, 99, 198, 0.14);
  border: 1px solid rgba(19, 99, 198, 0.34);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 20px;
}

.blog-hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 18px;
  color: #f0f4ff;
}

.blog-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: var(--text-secondary);
}

.blog-listing {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
  padding: 56px 24px 96px;
}

.blog-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.blog-list-intro {
  text-align: center;
  margin-bottom: 12px;
}

.blog-list-intro h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 780;
  letter-spacing: -0.03em;
  color: #101f3d;
}

.blog-page .text-center {
  text-align: center;
}

.blog-page .pb-4 {
  padding-bottom: 20px;
}

.blog-page p.text-center {
  margin: 0 auto 30px;
  color: #4c6188;
  font-size: 17px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.blog-grid > [class*="col-"] {
  min-width: 0;
}

.blog-page .case-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(16, 31, 61, 0.08);
  background: #0f172a;
  box-shadow: 0 14px 30px rgba(10, 22, 45, 0.12);
  aspect-ratio: 4 / 5;
}

.blog-page .case-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s ease;
}

.blog-page .case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.06) 0%, rgba(7, 12, 20, 0.88) 70%, rgba(7, 12, 20, 0.94) 100%);
  transition: background 0.25s ease;
}

.blog-page .case-overlay h5 {
  margin: 0;
  color: #f0f4ff;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 680;
  text-wrap: balance;
}

.blog-page .btn-square {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(19, 99, 198, 0.84);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-page .btn-square i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 16px;
  line-height: 1;
}

.blog-page .btn-square i::before {
  content: "\2192";
}

.blog-page .case-item:hover img {
  transform: scale(1.045);
}

.blog-page .case-item:hover .case-overlay {
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.02) 0%, rgba(7, 12, 20, 0.9) 62%, rgba(7, 12, 20, 0.98) 100%);
}

@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .blog-hero {
    padding: 112px 18px 64px;
  }

  .blog-listing {
    padding: 48px 18px 82px;
  }

  .blog-grid {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-page .case-item {
    aspect-ratio: 5 / 6;
  }

  .blog-page .case-overlay h5 {
    font-size: 19px;
  }
}

/* Hub breadcrumb */
.hub-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(240, 244, 255, 0.35);
  margin-bottom: 18px;
}

.hub-breadcrumb a {
  color: rgba(240, 244, 255, 0.45);
  text-decoration: none;
}

.hub-breadcrumb a:hover {
  color: rgba(240, 244, 255, 0.72);
}

/* Category navigation */
.hub-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.hub-cat-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #3b5280;
  background: #ffffff;
  border: 1px solid #d4dded;
  text-decoration: none;
  transition: all 0.18s ease;
}

.hub-cat-link:hover {
  color: #1363c6;
  border-color: rgba(19, 99, 198, 0.4);
  background: rgba(19, 99, 198, 0.06);
}

.hub-cat-link.active {
  color: #ffffff;
  background: #1363c6;
  border-color: #1363c6;
}

.hub-article-count {
  text-align: center;
  font-size: 14px;
  color: #6d81a4;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Blog index category section */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #3b5280;
  background: #ffffff;
  border: 1px solid #d4dded;
  text-decoration: none;
  transition: all 0.18s ease;
}

.blog-cat-pill:hover {
  color: #1363c6;
  border-color: rgba(19, 99, 198, 0.4);
  background: rgba(19, 99, 198, 0.06);
}

/* Hub CTA section */
.hub-cta-section {
  text-align: center;
  margin-top: 64px;
  padding: 48px 24px;
  background: #ffffff;
  border: 1px solid #d4dded;
  border-radius: 18px;
}

.hub-cta-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 780;
  letter-spacing: -0.02em;
  color: #101f3d;
  margin: 0 0 12px;
}

.hub-cta-section p {
  max-width: 540px;
  margin: 0 auto 20px;
  color: #4c6188;
  font-size: 16px;
  line-height: 1.55;
}

.hub-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #1363c6;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hub-cta-btn:hover {
  background: #2d7de0;
  color: #ffffff;
}

@media (max-width: 620px) {
  .hub-category-nav {
    gap: 8px;
  }

  .hub-cat-link {
    font-size: 13px;
    padding: 7px 12px;
  }
}
