/* theme.css - minimal WP glue. Layout/typography come from css/1-7 (original HubSpot).
   Only add what the WP loop needs and what css/1-7 do not already cover. */

:root { --webox-ink:#212127; --webox-red:#b90618; --webox-muted:#525c60; }

.body-wrapper {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--webox-ink);
}

/* content images never overflow */
.blog-post__body img { max-width: 100%; height: auto; }

/* ---- listing card bits css/6 doesn't fully lay out ---- */
.body-container--blog-index .content-wrapper { max-width: 1160px; margin: 0 auto; padding: 24px 20px 72px; }

/* featured hero (title+excerpt left, UPDATE image right) */
.blog-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 40px 0 24px; }
.blog-hero__title { font-size: 40px; line-height: 1.12; font-weight: 800; margin: 0 0 18px; }
.blog-hero__title a { color: var(--webox-ink); text-decoration: none; }
.blog-hero__title a:hover { color: var(--webox-red); }
.blog-hero__excerpt { color: var(--webox-muted); font-size: 18px; line-height: 1.6; margin: 0; }
.blog-hero__image { display: block; }
.blog-hero__image img { width: 100%; height: auto; max-width: 560px; margin-left: auto; display: block; }
@media (max-width: 782px) {
  .blog-hero { grid-template-columns: 1fr; gap: 24px; }
  .blog-hero__image img { max-width: 100%; }
}
.service .blog-post__author { display: flex; align-items: center; gap: 10px; }
.service .blog-post__author img { border-radius: 50%; flex: 0 0 auto; }
.service .author-name { font-weight: 700; font-size: 15px; }
.service .card .heading a.heading-link { color: var(--webox-ink); text-decoration: none; }
.service .card .heading a.heading-link:hover { color: var(--webox-red); }
.service .card .heading h2 { font-size: 24px; line-height: 1.25; font-weight: 800; }
.service .card .content { color: var(--webox-muted); line-height: 1.6; font-size: 15px; }
.service .card .card-date { color: var(--webox-muted); font-weight: 600; font-size: 14px; gap: 4px; }

/* ---- single post small helpers (css/5 handles .blog-post width) ---- */
.body-container--service-detail .content-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.blog-post__title { font-size: 42px; line-height: 1.14; font-weight: 800; margin: 8px 0 22px; }
.blog-post__timestamp { color: var(--webox-ink); font-weight: 600; font-size: 15px; }
.blog-post__body { font-size: 18px; line-height: 1.75; }
.blog-post__body a { color: var(--webox-red); }
/* "Explore this content with AI" pills (HubSpot .hs-button rendered as tags) */
.blog-post__body .hs-button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  vertical-align: middle; background: #f7aebd; color: #212127;
  border: none; border-radius: 8px; padding: 8px 18px; margin: 4px 8px 4px 0;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-transform: none; text-decoration: none;
}
.blog-post__body .hs-button:hover { background: #f299ab; color: #212127; border: none; }
/* wpautop 把锚点内换行转成了 <br>,导致按钮变多行高 -> 隐藏它,文字回到单行居中 */
.blog-post__body .hs-button br { display: none; }
.blog-post__body .hs-button { white-space: nowrap; }
.blog-related-posts { padding: 48px 20px; margin-top: 48px; }
.blog-related-posts__image { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }
.blog-related-posts__post { text-decoration: none; color: var(--webox-ink); }
.blog-related-posts__title-link { display: block; margin-top: 10px; font-weight: 700; }

/* mobile menu fallback */
@media (max-width: 900px) {
  .header--open .header__navigation { display: block; }
  .menu__item--open > .menu__submenu { display: block; }
}
