:root {
  --789-bg: #eef7fb;
  --789-surface: #ffffff;
  --789-navy: #06253d;
  --789-blue: #0c547a;
  --789-cyan: #00bfd1;
  --789-orange: #ff9f1c;
  --789-orange-hover: #ffb543;
  --789-text: #102a3a;
  --789-muted: #5e7483;
  --789-border: #c9e1ea;
  --789-shadow: 0 14px 34px rgba(6, 37, 61, .12);
}

html { scroll-behavior: smooth; }
body {
  background: var(--789-bg) !important;
  color: var(--789-text) !important;
  font-size: 16px;
}
#wrapper,
#main,
.page-wrapper,
.blog-wrapper {
  background: var(--789-bg) !important;
  color: var(--789-text) !important;
}
::selection { background: var(--789-cyan); color: var(--789-navy); }

#header .header-main,
.header-main,
.stuck .header-main {
  background: linear-gradient(115deg, #041c30 0%, var(--789-navy) 54%, #0b4868 100%) !important;
  border-bottom: 3px solid var(--789-cyan) !important;
  box-shadow: 0 8px 24px rgba(4, 28, 48, .28) !important;
}
.header-main .nav > li > a,
.header-main .nav > li > span,
.header-main .nav-icon a { color: #fff !important; }
.header-main .nav > li > a:hover,
.header-main .nav > li.active > a { color: var(--789-cyan) !important; }
.nav-dropdown {
  background: #fff !important;
  border: 1px solid var(--789-border) !important;
  box-shadow: var(--789-shadow) !important;
}

a { color: #087b99; }
a:hover { color: #04536d; }
h1, h2, h3, h4, h5, h6 { color: var(--789-navy) !important; }
.section-title b { background-color: var(--789-cyan) !important; }
.section-title-main { border-color: var(--789-cyan) !important; }

.button,
button,
input[type="submit"],
.mll-btn {
  border-radius: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px rgba(6, 37, 61, .16) !important;
  text-decoration: none !important;
}
.button.primary,
input[type="submit"],
.mll-login-btn {
  background: linear-gradient(135deg, var(--789-orange), #ff7a18) !important;
  border-color: transparent !important;
  color: #102335 !important;
}
.button.primary:hover,
input[type="submit"]:hover,
.mll-login-btn:hover { background: linear-gradient(135deg, var(--789-orange-hover), #ff8d24) !important; }
.button.secondary,
.mll-register-btn {
  background: linear-gradient(135deg, var(--789-cyan), #0099bb) !important;
  border-color: transparent !important;
  color: #042337 !important;
}

.box,
.post-item .col-inner,
.article-inner,
.widget,
.accordion-item {
  border-color: var(--789-border) !important;
}
.post-item .col-inner,
.box-blog-post,
.article-inner {
  background: var(--789-surface);
  border-radius: 14px;
  box-shadow: var(--789-shadow);
  overflow: hidden;
}
.box-text { color: var(--789-text) !important; }
.box-text p, .entry-content p, .entry-content li { color: var(--789-text); }

#footer,
.footer-wrapper {
  background: linear-gradient(155deg, #031827 0%, #062b43 100%) !important;
  color: #dcecf3 !important;
}
#footer h1, #footer h2, #footer h3, #footer h4,
#footer h5, #footer h6, #footer p, #footer li,
#footer span:not(.icon-inner), #footer a { color: #eefaff !important; }
#footer a:hover { color: var(--789-cyan) !important; }
#footer .is-divider { background: rgba(0, 191, 209, .5) !important; }

.mll-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 132px !important;
  width: 126px !important;
  margin: 4px 6px !important;
  padding: 9px 12px !important;
}
.contact-email { color: #eefaff; font-weight: 700; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--789-orange) !important;
  outline-offset: 3px;
}

@media (max-width: 849px) {
  .mobile-sidebar .sidebar-menu,
  .mfp-content .mobile-sidebar { background: var(--789-navy) !important; }
  .mobile-sidebar .nav > li > a { color: #fff !important; }
  .mll-btn { width: 112px !important; max-width: 112px !important; }

  body.codex-menu-open { overflow: hidden !important; }
  #main-menu.codex-mobile-menu-open {
    display: block !important;
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 100001;
    width: min(86vw, 360px);
    height: 100vh;
    padding: 58px 22px 24px;
    overflow-y: auto;
    background: linear-gradient(165deg, #031827 0%, #073b59 100%) !important;
    box-shadow: 18px 0 44px rgba(1, 19, 31, .45);
  }
  #main-menu.codex-mobile-menu-open .sidebar-menu {
    background: transparent !important;
  }
  #main-menu.codex-mobile-menu-open .nav > li > a {
    display: block;
    padding: 13px 8px;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,.13);
  }
  #main-menu .codex-menu-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 0;
    border-radius: 50% !important;
    background: var(--789-orange) !important;
    color: #102335 !important;
    font-size: 30px;
    line-height: 36px;
  }
  #codex-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: rgba(1, 15, 25, .7) !important;
    box-shadow: none !important;
  }
  #codex-menu-overlay[hidden] { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
