:root {
  --blog-bg: #f6f9ff;
  --blog-text: #0f1b33;
  --blog-muted: #5f6f87;
  --blog-accent: #1f63e9;
  --blog-pill: #eaf1ff;
  --blog-card-border: #e3ebf7;
  --blog-card-shadow: 0 14px 32px rgba(15, 27, 51, 0.06);
}

.blog-hub {
  background:
    radial-gradient(900px 280px at 90% -10%, rgba(31, 99, 233, 0.12), transparent 60%),
    var(--blog-bg);
  color: var(--blog-text);
  padding-bottom: 56px;
}

.blog-hub .container {
  padding-top: 7.25rem;
}

.blog-hero {
  max-width: 760px;
  padding: 1.8rem 1.9rem;
  border: 1px solid #dce8fb;
  border-radius: 20px;
  background: linear-gradient(155deg, #ffffff, #f3f8ff 70%);
}

.blog-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.blog-hero-subtitle {
  margin: 0.85rem 0 0;
  color: var(--blog-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.blog-search-wrap {
  margin-top: 1.25rem;
}

.blog-search-wrap input {
  width: 100%;
  border: 1px solid #d7e4f8;
  border-radius: 999px;
  background: #fff;
  padding: 0.95rem 1.1rem;
  font-size: 0.97rem;
  line-height: 1.5;
  box-shadow: 0 8px 18px rgba(12, 22, 40, 0.06);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search-wrap input:focus {
  border-color: #9bbcf4;
  box-shadow: 0 0 0 4px rgba(31, 99, 233, 0.13);
}

.blog-filters {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.blog-filter-pill {
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blog-pill);
  color: #2f4c79;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-pill:hover {
  background: #dce9ff;
}

.blog-filter-pill.is-active {
  border-color: #b7cefa;
  background: #cfe0ff;
  color: #163f82;
}

.blog-featured {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border: 1px solid #dce7f9;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 27, 51, 0.06);
}

.blog-featured-media {
  display: block;
  min-height: 260px;
  background: linear-gradient(135deg, #dce9ff, #eff4ff);
}

.blog-featured-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.blog-featured-content {
  padding: 1.7rem 1.8rem 1.8rem;
}

.blog-featured-label {
  margin: 0;
  color: #18489a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-featured h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.blog-featured h2 a {
  color: var(--blog-text);
  text-decoration: none;
}

.blog-featured h2 a:hover {
  color: #164baf;
}

.blog-featured-excerpt {
  margin: 0.8rem 0 0;
  color: var(--blog-muted);
  line-height: 1.72;
}

.blog-featured-meta {
  margin: 1rem 0 0;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: #5f6f88;
  font-size: 0.84rem;
}

.blog-post-section {
  margin-top: 2.9rem;
}

.blog-results {
  margin: 0;
  color: #596983;
  font-size: 0.86rem;
  font-weight: 600;
}

.blog-post-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-post-card {
  border: 1px solid var(--blog-card-border);
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
  box-shadow: var(--blog-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-post-card:hover {
  transform: translateY(-3px);
  border-color: #c9daf8;
  box-shadow: 0 18px 34px rgba(15, 27, 51, 0.1);
}

.blog-post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-post-card-thumb-wrap {
  display: block;
  margin: -1rem -1rem 0.85rem;
  border-bottom: 1px solid #e6edf8;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  min-height: 164px;
  background: linear-gradient(135deg, #e2ecff, #f2f7ff);
}

.blog-post-card-thumb {
  width: 100%;
  min-height: 164px;
  object-fit: cover;
  display: block;
}

.blog-card-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2e4f84;
  background: #eef4ff;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
}

.blog-post-card h3 {
  margin: 0.8rem 0 0;
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.7em;
  transition: color 0.2s ease;
}

.blog-post-card:hover h3 {
  color: #1c52ba;
}

.blog-problem-excerpt {
  margin: 0.72rem 0 0;
  color: var(--blog-muted);
  line-height: 1.66;
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-card-meta {
  margin-top: auto;
  padding-top: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: #6a7890;
  font-size: 0.78rem;
  border-top: 1px solid #edf2fa;
}

.blog-card-meta span:last-child {
  text-align: right;
}

.blog-inline-cta {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #eff5ff, #e9f1ff);
  border: 1px solid #d7e5fb;
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-inline-cta-text {
  margin: 0;
  color: #3a4f72;
  line-height: 1.6;
}

.blog-inline-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.66rem 0.95rem;
  background: var(--blog-accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.blog-empty {
  color: var(--blog-muted);
}

.blog-pagination {
  margin-top: 1.35rem;
}

.blog-pagination .page-numbers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.blog-pagination .page-numbers li {
  margin: 0;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.55rem;
  border-radius: 10px;
  border: 1px solid #dce6f7;
  color: #3f567b;
  text-decoration: none;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-pagination .page-numbers a:hover {
  border-color: #aec6ef;
  color: #1d4da7;
}

.blog-pagination .page-numbers .current {
  border-color: #b7cdf4;
  background: #e9f1ff;
  color: #1f4fa8;
}

@media (max-width: 1024px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured-media,
  .blog-featured-image {
    min-height: 220px;
  }

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

@media (max-width: 768px) {
  .blog-hub .container {
    padding-top: 6.4rem;
  }

  .blog-hero {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .blog-post-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .blog-post-card {
    padding: 0.95rem;
  }

  .blog-post-card-thumb-wrap {
    margin: -0.95rem -0.95rem 0.85rem;
  }

  .blog-card-meta {
    flex-direction: column;
    gap: 0.35rem;
  }

  .blog-card-meta span:last-child {
    text-align: left;
  }

  .blog-inline-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
  }
}
