.page-blog-template {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef2ff;
  --ink: #10233e;
  --ink-2: #44556f;
  --line: #dbe4f0;
  --primary: #10233e;
  --accent: #6f6bff;
  --accent-2: #8b5cf6;
  --shadow: 0 20px 60px rgba(16,35,62,.08);
  --shadow-sm: 0 4px 12px rgba(16,35,62,.04);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1200px;
}

.page-blog-template .container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.page-blog-template img {
  max-width: 100%;
  display: block;
}

.page-blog-template a {
  text-decoration: none;
  color: inherit;
}

.page-blog-template h1,
.page-blog-template h2,
.page-blog-template h3,
.page-blog-template h4 {
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.03em;
}

.page-blog-template .wp-block-group,
.page-blog-template .wp-block-columns,
.page-blog-template .wp-block-buttons,
.page-blog-template .wp-block-image {
  margin-bottom: 0;
}

.page-blog-template .wp-block-button.btn,
.page-blog-template .wp-block-button.btn-primary,
.page-blog-template .wp-block-button.btn-secondary {
  margin: 0;
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-blog-template .section {
  padding: 76px 0;
  position: relative;
}

.page-blog-template .section.soft {
  background: var(--bg-soft);
  position: relative;
}

.page-blog-template .section.soft::before,
.page-blog-template .section.soft::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.page-blog-template .section.soft::before { top: 0; }
.page-blog-template .section.soft::after { bottom: 0; }

.page-blog-template .page-hero {
  padding: 34px 0 24px;
  background: var(--bg);
}

.page-blog-template .page-hero h1 {
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 18px 0 14px;
  color: var(--ink);
  max-width: none;
}

.page-blog-template .page-hero p.lead {
  font-size: 20px;
  color: var(--ink-2);
  max-width: 720px;
  margin-bottom: 0;
  line-height: 1.5;
}

.page-blog-template .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.page-blog-template .card-grid.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.page-blog-template .wp-block-columns.card-grid.three {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.page-blog-template .wp-block-columns.card-grid.three > .wp-block-column {
  min-width: 0;
  margin: 0;
  flex-basis: auto !important;
}

.page-blog-template .card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-height: 0;
}

.page-blog-template .card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--ink);
}

.page-blog-template .card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.page-blog-template .hero-actions,
.page-blog-template .wp-block-buttons.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-blog-template .btn,
.page-blog-template .btn-primary,
.page-blog-template .wp-block-button.btn .wp-block-button__link,
.page-blog-template .wp-block-button.btn-primary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: .18s ease;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.page-blog-template .btn-secondary,
.page-blog-template .wp-block-button.btn-secondary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: .18s ease;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.page-blog-template .btn-primary:hover,
.page-blog-template .wp-block-button.btn-primary .wp-block-button__link:hover {
  transform: translateY(-1px);
}

.page-blog-template .btn-secondary:hover,
.page-blog-template .wp-block-button.btn-secondary .wp-block-button__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 840px) {
  .page-blog-template .page-hero {
    padding: 22px 0 20px;
  }

  .page-blog-template .page-hero h1 {
    font-size: 44px;
  }

  .page-blog-template .page-hero p.lead {
    font-size: 18px;
  }

  .page-blog-template .section {
    padding: 56px 0;
  }

  .page-blog-template .wp-block-columns.card-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 480px) {
  .page-blog-template .container {
    width: calc(100% - 32px);
  }

  .page-blog-template .page-hero h1 {
    font-size: 34px;
  }

  .page-blog-template .hero-actions,
  .page-blog-template .wp-block-buttons.hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-blog-template .btn,
  .page-blog-template .btn-primary,
  .page-blog-template .btn-secondary,
  .page-blog-template .wp-block-button.btn .wp-block-button__link,
  .page-blog-template .wp-block-button.btn-primary .wp-block-button__link,
  .page-blog-template .wp-block-button.btn-secondary .wp-block-button__link {
    width: 100%;
  }
}
