.bm-related-section,
.bm-related-section * {
  box-sizing: border-box;
}

.entry-content > .bm-related-section,
.wp-block-post-content > .bm-related-section,
.bm-simple-post + .bm-related-section {
  max-width: none !important;
}

.bm-related-section {
  width: 100vw;
  max-width: none !important;
  margin-top: 66px;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  padding: 58px 0 62px;
  background: #fdf9f3;
}

.bm-related-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.bm-related-section .bm-related-title {
  margin: 0 0 30px;
  color: #18356d;
  font-family: var(--wp--preset--font-family--heading), "Source Serif 4", Georgia, serif;
  font-size: clamp(34px, 3.2vw, 52px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: none;
}

.bm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.bm-related-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(32, 44, 78, 0.07);
  border-radius: 17px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(39, 45, 55, 0.055), 0 2px 7px rgba(39, 45, 55, 0.03);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bm-related-card:hover,
.bm-related-card:focus-visible {
  border-color: rgba(255, 120, 109, 0.35);
  box-shadow: 0 10px 28px rgba(39, 45, 55, 0.075), 0 3px 10px rgba(39, 45, 55, 0.04);
  transform: translateY(-3px);
  text-decoration: none;
}

.bm-related-card:focus-visible {
  outline: 3px solid rgba(255, 120, 109, 0.3);
  outline-offset: 3px;
}

.bm-related-card__media {
  display: block;
  width: 138px;
  min-height: 178px;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
  background: #f4efe7;
}

.bm-related-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
}

.bm-related-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 58px 17px;
}

.bm-related-card__category {
  display: block;
  font-family: Inter, "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  color: #ff786d;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.bm-related-section .bm-related-card-title {
  display: block;
  min-width: 0;
  margin: 0;
  color: #102d63;
  font-family: var(--wp--preset--font-family--heading), "Source Serif 4", Georgia, serif;
  font-size: clamp(20px, 1.6vw, 27px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.23;
  letter-spacing: -0.015em;
  text-transform: none;
  overflow-wrap: break-word;
}

.bm-related-section .bm-related-card-title a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.bm-related-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffc2b0;
  border-radius: 999px;
  background: #fff7f2;
  color: #ff765f;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.bm-related-card__arrow-icon {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bm-related-card:hover .bm-related-card__arrow,
.bm-related-card:focus-visible .bm-related-card__arrow {
  border-color: #ff786d;
  background: #ff786d;
  color: #ffffff;
  transform: translateX(2px);
}

@media (max-width: 1050px) {
  .bm-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .bm-related-section {
    width: auto;
    margin-top: 62px;
    margin-left: -18px;
    margin-right: -18px;
    padding: 42px 0 46px;
  }

  .bm-related-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bm-related-section .bm-related-title {
    margin-bottom: 30px;
    font-size: clamp(32px, 9vw, 40px);
  }

  .bm-related-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bm-related-card {
    grid-template-columns: 122px minmax(0, 1fr);
    min-height: 158px;
  }

  .bm-related-card__media {
    width: 122px;
    min-height: 158px;
  }

  .bm-related-card__image {
    min-height: 158px;
  }

  .bm-related-card__body {
    padding: 19px 16px 54px 15px;
  }

  .bm-related-section .bm-related-card-title {
    font-size: 20px;
  }

  .bm-related-card__arrow {
    right: 14px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 430px) {
  .bm-related-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .bm-related-card__media {
    width: 104px;
  }

  .bm-related-card__category {
    font-size: 10px;
  }

  .bm-related-section .bm-related-card-title {
    font-size: 18px;
  }
}

.bm-related-section h2.bm-related-title {
  font-size: clamp(34px, 3.2vw, 52px) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
}

.bm-related-section h3.bm-related-card-title {
  font-size: clamp(20px, 1.6vw, 27px) !important;
  font-weight: 600 !important;
  line-height: 1.23 !important;
}
