/* Blog page (hs-blog__*) — uses tokens and classes from main.css */

/* ---------- Hero ---------- */
.hs-blog__hero {
  background: #f9f9f9;
  border-bottom: 1px solid #e6e9ea;
  padding: 54px 0 64px;
}
.hs-blog__hero-inner > * { min-width: 0; }
.hs-blog__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 15px;
  line-height: 1.4;
  color: #727062;
}
.hs-blog__crumbs a {
  color: #111110;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
  cursor: pointer;
}
.hs-blog__crumbs a:hover,
.hs-blog__crumbs a:focus-visible { color: #cb960e; border-color: #cb960e; }
.hs-blog__crumbs-sep { color: #9ea0a4; }
.hs-blog__hero .hs-eyebrow { margin-bottom: 18px; }
.hs-blog__headline {
  max-width: 900px;
  font-size: var(--type-h1-size);
  font-weight: 600;
  line-height: var(--type-h1-line-height);
  letter-spacing: var(--type-h1-letter-spacing);
  color: #111110;
}
.hs-blog__lead {
  max-width: 760px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.6;
  color: #727062;
}

/* ---------- Main ---------- */
.hs-blog__main { padding: 70px 0 var(--hs-section-y); background: #ffffff; }

.hs-blog__feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.hs-blog__feed > * { min-width: 0; }
.hs-blog__post {
  background: #ffffff;
  border: 1px solid #d5d8dc;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.hs-blog__post:hover,
.hs-blog__post:focus-within {
  border-color: #111110;
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(17, 17, 16, .08);
}
.hs-blog__post-link { display: flex; flex-direction: column; height: 100%; cursor: pointer; }
.hs-blog__post-media {
  position: relative;
  aspect-ratio: 400 / 260;
  overflow: hidden;
  background: #f9f9f9;
}
.hs-blog__post-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hs-blog__post:hover .hs-blog__post-media > img { transform: scale(1.04); }
.hs-blog__post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}
.hs-blog__post-date {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #cb960e;
}
.hs-blog__post-title {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #111110;
  overflow-wrap: anywhere;
}
.hs-blog__post-excerpt {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #727062;
}
.hs-blog__post-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-weight: 600;
  color: #111110;
  transition: color .3s ease;
}
.hs-blog__post-more img { width: 14px; height: 14px; transition: transform .3s ease; }
.hs-blog__post:hover .hs-blog__post-more,
.hs-blog__post-link:focus-visible .hs-blog__post-more { color: #cb960e; }
.hs-blog__post:hover .hs-blog__post-more img { transform: translateX(4px); }

/* ---------- Empty state ---------- */
.hs-blog__empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 40px;
  background: #f9f9f9;
  border-left: 4px solid #f8c647;
}
.hs-blog__empty-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: #111110;
}
.hs-blog__empty-text { margin-top: 14px; color: #727062; }
.hs-blog__empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 28px;
}

/* ---------- Pagination ---------- */
.hs-blog__pag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 56px;
}
.hs-blog__pag-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hs-blog__pag-num,
.hs-blog__pag-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  font-weight: 600;
  color: #111110;
}
.hs-blog__pag-num {
  border: 2px solid #d5d8dc;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.hs-blog__pag-num:hover,
.hs-blog__pag-num:focus-visible { border-color: #111110; background: #f9f9f9; }
.hs-blog__pag-num--active,
.hs-blog__pag-num--active:hover { background: #f8c647; border-color: #111110; cursor: default; }
.hs-blog__pag-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 2px solid #111110;
  font-weight: 600;
  color: #111110;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.hs-blog__pag-btn img { width: 16px; height: 16px; transition: filter .3s ease; }
.hs-blog__pag-btn--prev img { transform: scaleX(-1); }
.hs-blog__pag-btn:hover,
.hs-blog__pag-btn:focus-visible { background: #111110; color: #ffffff; }
.hs-blog__pag-btn:hover img,
.hs-blog__pag-btn:focus-visible img { filter: brightness(0) invert(1); }

/* ---------- CTA (light panel) ---------- */
.hs-blog__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
  padding: 48px 50px;
  background: #f9f9f9;
  border: 1px solid #e6e9ea;
  border-left: 4px solid #f8c647;
}
.hs-blog__cta > * { min-width: 0; }
.hs-blog__cta-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #111110;
}
.hs-blog__cta-copy { margin-top: 14px; max-width: 640px; color: #727062; }
.hs-blog__cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hs-blog__headline { font-size: 52px; }
  .hs-blog__feed { gap: 24px; }
  .hs-blog__cta { padding: 40px; gap: 30px; }
}
@media (max-width: 1024px) {
  .hs-blog__feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-blog__cta { grid-template-columns: minmax(0, 1fr); }
  .hs-blog__headline { font-size: 46px; }
}
@media (max-width: 768px) {
  .hs-blog__hero { padding: 40px 0 48px; }
  .hs-blog__crumbs { margin-bottom: 26px; }
  .hs-blog__headline { font-size: 38px; }
  .hs-blog__lead { font-size: 18px; }
  .hs-blog__main { padding: 50px 0 80px; }
  .hs-blog__cta { margin-top: 60px; padding: 32px 28px; }
  .hs-blog__cta-title { font-size: 28px; }
  .hs-blog__empty { padding: 36px 28px; }
}
@media (max-width: 480px) {
  .hs-blog__feed { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hs-blog__headline { font-size: 32px; }
  .hs-blog__post-body { padding: 20px 20px 22px; }
  .hs-blog__post-title { font-size: 22px; }
  .hs-blog__cta { padding: 28px 20px; }
  .hs-blog__cta-title { font-size: 25px; }
  .hs-blog__cta-actions { flex-direction: column; }
  .hs-blog__cta-actions .hs-btn { width: 100%; padding-inline: 20px; }
  .hs-blog__empty-title { font-size: 26px; }
  .hs-blog__pag { gap: 10px; margin-top: 40px; }
  .hs-blog__pag-num, .hs-blog__pag-dots { min-width: 40px; height: 40px; }
  .hs-blog__pag-btn { height: 40px; padding: 0 14px; }
}
@media (max-width: 375px) {
  .hs-blog__headline { font-size: 29px; }
  .hs-blog__lead { font-size: 17px; }
  .hs-blog__cta-title { font-size: 23px; }
}
