:root {
  --ink: #16202a;
  --muted: #5c6b78;
  --line: #d9e1e8;
  --panel: #ffffff;
  --soft: #f5f8fb;
  --blue: #2563eb;
  --green: #0f8f76;
  --shadow: 0 24px 80px rgba(22, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bf-modern-page {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #fff;
}

.bf-modern-page a {
  color: inherit;
  text-decoration: none;
}

.bf-wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.bf-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 225, 232, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.bf-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.bf-brand {
  display: flex;
  align-items: center;
  min-width: 190px;
}

.bf-brand img {
  width: 190px;
  height: auto;
  display: block;
}

.bf-navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #334453;
  font-size: 14px;
  font-weight: 800;
}

.bf-nav-menu {
  position: relative;
}

.bf-nav-menu > button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.bf-nav-menu > button::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.bf-feature-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  z-index: 60;
  width: min(760px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #cbd9e6;
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 247, 242, 0.88), rgba(255, 255, 255, 0.96) 34%),
    #fff;
  box-shadow: 0 34px 90px rgba(22, 32, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.bf-feature-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-left: 1px solid #cbd9e6;
  border-top: 1px solid #cbd9e6;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.bf-nav-menu:hover .bf-feature-dropdown,
.bf-nav-menu:focus-within .bf-feature-dropdown,
.bf-nav-menu.open .bf-feature-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.bf-feature-dropdown-head,
.bf-feature-dropdown-foot {
  grid-column: 1 / -1;
}

.bf-feature-dropdown-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e4ebf2;
  padding: 4px 6px 14px;
}

.bf-feature-dropdown-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.bf-feature-dropdown-head span {
  display: block;
  max-width: 390px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.bf-feature-dropdown a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.bf-feature-dropdown a:hover,
.bf-feature-dropdown a:focus {
  border-color: #cbd9e6;
  background: #fff;
  box-shadow: 0 14px 28px rgba(22, 32, 42, 0.08);
}

.bf-feature-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid #d7a6c8;
  border-radius: 8px;
  background: #fff;
  color: #9e3479;
}

.bf-feature-mark svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bf-feature-dropdown strong {
  color: var(--ink);
  font-size: 15px;
}

.bf-feature-dropdown span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
}

.bf-feature-dropdown-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e4ebf2;
  padding: 14px 6px 4px;
}

.bf-feature-dropdown-foot a {
  display: inline-flex;
  grid-template-columns: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.bf-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bf-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd9e6;
  border-radius: 8px;
  padding: 0 20px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.bf-btn.bf-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

.bf-modern-page .spinner-loading-box,
.bf-modern-page #masthead,
.bf-modern-page .title-box,
.bf-modern-page .outer-footer,
.bf-modern-page .copyright-theme,
.bf-modern-page .scrollup {
  display: none !important;
}

.bf-modern-page .outer_dpage,
.bf-modern-page main#maincontent,
.bf-modern-page .site-main,
.bf-modern-page .entry-content,
.bf-modern-page article.page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.bf-modern-page .outer_dpage {
  padding: 76px 0 96px;
}

.bf-modern-page .outer_dpage .container,
.bf-modern-page .middle-content,
.bf-modern-page .entry-content {
  width: 100%;
  max-width: none;
  padding: 0;
}

.bf-modern-page .above_title,
.bf-modern-page .middle-content,
.bf-modern-page .entry-content,
.bf-modern-page .wp-block-group,
.bf-modern-page .elementor,
.bf-modern-page .page-content {
  color: var(--ink);
}

.bf-modern-page h1,
.bf-modern-page h2,
.bf-modern-page h3,
.bf-modern-page h4 {
  color: var(--ink);
  font-family: inherit;
  letter-spacing: 0;
}

.bf-modern-page h1 {
  margin: 0 0 26px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 950;
}

.bf-modern-page h2 {
  margin-top: 34px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  font-weight: 950;
}

.bf-modern-page h3 {
  margin-top: 28px;
  font-size: 22px;
  line-height: 1.18;
}

.bf-modern-page p,
.bf-modern-page li {
  color: #4f6375;
  font-size: 17px;
  line-height: 1.62;
}

.bf-modern-page .middle-content,
.bf-modern-page .entry-content,
.bf-modern-page form,
.bf-modern-page [name="termly-embed"] {
  border: 1px solid #dbe6f1;
  border-radius: 8px;
  padding: clamp(26px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(245, 248, 251, 0.96), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: var(--shadow);
}

.bf-modern-page input,
.bf-modern-page textarea,
.bf-modern-page select {
  border: 1px solid #cbd9e6 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  color: var(--ink) !important;
  font: inherit !important;
}

.bf-modern-page input[type="submit"],
.bf-modern-page button[type="submit"] {
  border: 0 !important;
  border-radius: 8px !important;
  padding: 13px 18px !important;
  background: var(--blue) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

.bf-site-footer {
  border-top: 1px solid #d9e1e8;
  background: #f7fafc;
  color: #334453;
}

.bf-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding: 52px 0;
}

.bf-footer-brand img {
  width: 178px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.bf-footer-brand p {
  max-width: 330px;
  margin: 0;
  color: #5c6b78;
  font-size: 15px;
  line-height: 1.55;
}

.bf-site-footer h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bf-footer-links {
  display: grid;
  gap: 10px;
}

.bf-footer-links a {
  color: #4f6375;
  font-size: 14px;
  font-weight: 750;
}

.bf-footer-links a:hover,
.bf-footer-links a:focus {
  color: var(--blue);
}

.bf-footer-bottom {
  border-top: 1px solid #d9e1e8;
  padding: 18px 0;
  color: #6b7b88;
  font-size: 13px;
}

@media (max-width: 900px) {
  .bf-nav {
    align-items: flex-start;
    padding: 18px 0;
    flex-direction: column;
  }

  .bf-navlinks {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .bf-feature-dropdown {
    left: 0;
    transform: translate(0, -8px);
    grid-template-columns: 1fr;
  }

  .bf-nav-menu:hover .bf-feature-dropdown,
  .bf-nav-menu:focus-within .bf-feature-dropdown,
  .bf-nav-menu.open .bf-feature-dropdown {
    transform: translate(0, 0);
  }

  .bf-nav-actions {
    width: 100%;
  }

  .bf-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .bf-wrap {
    width: min(100% - 28px, 1160px);
  }

  .bf-brand img {
    width: 170px;
  }

  .bf-navlinks {
    gap: 14px;
    font-size: 13px;
  }

  .bf-btn {
    flex: 1;
    padding: 0 14px;
  }

  .bf-feature-dropdown {
    width: calc(100vw - 28px);
  }

  .bf-feature-dropdown-head,
  .bf-feature-dropdown-foot {
    display: grid;
  }

  .bf-modern-page h1 {
    font-size: 42px;
  }

  .bf-footer-grid {
    grid-template-columns: 1fr;
  }
}
