/* Blog hub layout.
   Loaded after the shared Attio theme so this page can use the full public
   content shell without changing the layout of other landing pages. */

.blog-hub-page {
  padding-bottom: clamp(48px, 7vw, 88px);
  background: linear-gradient(180deg, #f8fbff 0, #fff 30%, var(--attio-canvas) 100%);
}

body:not(.reference-home) .blog-hub-page > .blog-hub-hero {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 24px auto 0 !important;
  padding: clamp(58px, 7vw, 88px) clamp(24px, 6vw, 76px) !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body:not(.reference-home) .blog-hub-page > .blog-hub-hero h1 {
  max-width: 1060px;
  margin: 18px auto 0;
  font-size: clamp(44px, 4.4vw, 64px) !important;
  line-height: 1.01 !important;
  letter-spacing: -.052em !important;
  text-wrap: balance;
}

body:not(.reference-home) .blog-hub-page > .blog-hub-hero > p {
  max-width: 760px;
  margin: 22px auto 0 !important;
  color: var(--attio-muted) !important;
  font-size: clamp(16px, 1.4vw, 19px) !important;
  font-weight: 500;
  line-height: 1.55 !important;
  text-wrap: pretty;
}

.blog-hub-page .blog-hub-hero .hero-actions {
  justify-content: center;
  margin-top: 26px;
}

.blog-hub-page > .blog-hub-nav {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 16px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.blog-hub-page > .blog-hub-nav a {
  min-width: 0;
  min-height: 56px;
  padding: 10px 14px;
  border-color: var(--attio-line-strong);
  border-radius: var(--attio-r);
  box-shadow: none;
  text-align: center;
}

.blog-hub-page > .blog-hub-nav a:hover {
  border-color: var(--attio-subtle);
  box-shadow: var(--attio-shadow);
}

.blog-hub-page > .blog-content-section,
.blog-hub-page > .blog-cta {
  width: 100%;
  max-width: none;
  margin-right: auto !important;
  margin-left: auto !important;
}

body:not(.reference-home) .blog-hub-page > .blog-content-section {
  padding: clamp(64px, 7vw, 96px) 0 !important;
}

body:not(.reference-home) .blog-hub-page > .blog-content-section-alt {
  padding-right: clamp(22px, 4vw, 48px) !important;
  padding-left: clamp(22px, 4vw, 48px) !important;
  border-color: var(--attio-line-strong);
  border-radius: var(--attio-r);
  background: linear-gradient(180deg, #f2f7ff, #f8fbff);
}

.blog-hub-page .blog-section-heading {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.blog-hub-page .blog-section-heading h2 {
  margin-top: 8px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  text-wrap: balance;
}

.blog-hub-page .blog-section-heading p {
  max-width: 700px;
  margin: 14px auto 0;
  line-height: 1.65;
  text-wrap: pretty;
}

.blog-hub-page .blog-card-grid {
  display: grid !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px;
  align-items: stretch;
}

.blog-hub-page .blog-card {
  height: 100%;
  padding: clamp(20px, 2.4vw, 28px) !important;
}

body:not(.reference-home) .blog-hub-page > .blog-cta {
  display: block !important;
  margin-top: 24px !important;
  padding: clamp(56px, 7vw, 84px) clamp(24px, 6vw, 76px) !important;
  border: 1px solid var(--attio-line-strong) !important;
  border-radius: var(--attio-r) !important;
  box-shadow: none !important;
  text-align: center;
}

.blog-hub-page > .blog-cta h2 {
  max-width: 900px;
  margin: 16px auto 0;
  text-wrap: balance;
}

.blog-hub-page > .blog-cta p {
  max-width: 720px;
  margin: 16px auto 0;
  line-height: 1.6;
}

.blog-hub-page > .blog-cta .hero-actions {
  justify-content: center;
  margin-top: 26px;
}

@media (max-width: 1000px) {
  .blog-hub-page .blog-card-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body:not(.reference-home) .blog-hub-page > .blog-hub-hero {
    margin-top: 14px !important;
    padding: 44px 20px !important;
  }

  body:not(.reference-home) .blog-hub-page > .blog-hub-hero h1 {
    max-width: 620px;
    font-size: clamp(38px, 11vw, 52px) !important;
  }

  .blog-hub-page > .blog-hub-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .blog-hub-page > .blog-hub-nav a {
    justify-content: flex-start;
    min-height: 52px;
    text-align: left;
  }

  body:not(.reference-home) .blog-hub-page > .blog-content-section {
    padding: 52px 0 !important;
  }

  body:not(.reference-home) .blog-hub-page > .blog-content-section-alt {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  .blog-hub-page .blog-section-heading h2 {
    font-size: clamp(32px, 9vw, 42px);
  }
}

@media (max-width: 520px) {
  .blog-hub-page .blog-hub-hero .hero-actions,
  .blog-hub-page > .blog-cta .hero-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .blog-hub-page .blog-hub-hero .hero-actions a,
  .blog-hub-page > .blog-cta .hero-actions a {
    width: 100%;
  }
}
