header.wp-block-template-part {
  --bm-header-font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

header.wp-block-template-part .wp-block-columns {
  align-items: center !important;
}

header.wp-block-template-part .wp-block-column {
  display: flex;
  align-items: center;
}

header.wp-block-template-part .wp-block-column:last-child {
  justify-content: flex-end;
}

header.wp-block-template-part .wp-block-site-title,
header.wp-block-template-part .wp-block-site-title a,
header.wp-block-template-part .wp-block-navigation,
header.wp-block-template-part .wp-block-navigation__container,
header.wp-block-template-part .wp-block-navigation-item,
header.wp-block-template-part .wp-block-navigation-item__content {
  font-family: var(--bm-header-font) !important;
}

header.wp-block-template-part .wp-block-site-title {
  margin: 0 !important;
  font-size: clamp(1.85rem, 1.45rem + 1.4vw, 2.65rem) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em;
}

header.wp-block-template-part .wp-block-site-title a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

header.wp-block-template-part .wp-block-site-title a:hover,
header.wp-block-template-part .wp-block-site-title a:focus-visible {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

body.home header.wp-block-template-part .wp-block-group.is-style-header-fixed {
  padding: clamp(20px, 1.45vw, 26px) 0 !important;
}

body.home header.wp-block-template-part .wp-block-columns {
  width: min(1400px, calc(100% - 48px));
  max-width: min(1400px, calc(100% - 48px)) !important;
  margin-inline: auto !important;
}

body.home .entry-content.wp-block-post-content {
  padding-top: 0 !important;
}

body.home #heroBook.hero-book {
  margin-top: 0 !important;
}

body.single-post .wp-block-group:has(> .wp-block-columns > .wp-block-column > .wp-block-post-navigation-link),
body.single-post .wp-block-columns:has(> .wp-block-column > .wp-block-post-navigation-link),
body.single-post .wp-block-post-navigation-link {
  display: none !important;
}

body.single-post hr.wp-block-separator:has(+ .wp-block-group > .wp-block-columns > .wp-block-column > .wp-block-post-navigation-link) {
  display: none !important;
}

header.wp-block-template-part .wp-block-navigation,
header.wp-block-template-part .wp-block-navigation__container {
  align-items: center !important;
}

header.wp-block-template-part .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  font-weight: 500;
  line-height: 1.1;
}

@media (max-width: 781px) {
  header.wp-block-template-part .wp-block-group.is-style-header-fixed {
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
  }

  header.wp-block-template-part .wp-block-site-title {
    font-size: clamp(1.45rem, 6vw, 2rem) !important;
  }
}

.bm-footer {
  width: 100%;
  border-top: 1px solid #e4e8ee;
  background: #fff;
}

.bm-footer *,
.bm-footer *::before,
.bm-footer *::after {
  box-sizing: border-box;
}

.bm-footer__inner {
  width: min(100% - 56px, 1560px);
  min-height: 104px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto repeat(3, minmax(180px, 1fr)) auto;
  align-items: center;
  column-gap: clamp(16px, 2.4vw, 34px);
}

.bm-footer__logo {
  color: #071b66;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(27px, 1.75vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
  white-space: nowrap;
}

.bm-footer__logo:hover,
.bm-footer__logo:focus-visible {
  color: #071b66;
}

.bm-footer__feature {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #071b66;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.bm-footer__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  color: #071b66;
  line-height: 1;
}

.bm-footer__icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.bm-footer__icon circle {
  fill: currentColor;
  stroke: none;
}

.bm-footer__icon--green {
  color: #26794f;
}

.bm-footer__copyright {
  margin: 0;
  color: #3e4d72;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}

@media (max-width: 1350px) {
  .bm-footer__inner {
    width: min(100% - 40px, 1280px);
    grid-template-columns: auto repeat(3, minmax(150px, 1fr)) auto;
    column-gap: 16px;
  }

  .bm-footer__logo {
    font-size: 28px;
  }

  .bm-footer__feature {
    gap: 8px;
    font-size: 13px;
  }

  .bm-footer__copyright {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .bm-footer__inner {
    width: min(100% - 32px, 720px);
    min-height: 0;
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding: 26px 0;
  }

  .bm-footer__logo,
  .bm-footer__copyright {
    text-align: center;
  }

  .bm-footer__feature {
    justify-content: center;
    text-align: center;
  }
}
