/*
 * The original site's global rules, scoped so they cannot change the theme's content,
 * plus resets that stop common theme rules from changing the header and footer.
 */
body {
  margin: 0;
}

#top-header,
#header,
.site-footer {
  font-family: var(--font-family-base);
  line-height: normal;
  text-align: left;
  letter-spacing: normal;
  margin: 0 !important;
  max-width: none;
}

.site-header,
.site-footer {
  padding: 0;
  display: block;
}

#top-header *,
#header *,
.site-footer * {
  box-sizing: border-box;
}

#top-header a,
#header a,
.site-footer a {
  text-decoration: none;
  box-shadow: none;
}

/* Browser defaults the original layout depends on */
.desktop-menu-list {
  padding: 0 0 0 40px;
}
.desktop-menu-list li,
.mobile-nav ul li {
  margin: 0;
  list-style: none;
}
.footer-div ul {
  margin: 1em 0;
}
.footer-div ul li {
  list-style: none;
}
.footer-title,
.footer-sub-title,
.mega-tab-content h3 {
  font-family: inherit;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
}
.footer-title {
  margin-top: 1em;
}
.copyright-div p {
  margin: 1em 0;
  color: inherit;
}
.footer-para,
.copyright-div p {
  line-height: normal;
}
.mega-tab-content h3,
.mega-tab-content p {
  color: inherit;
  line-height: normal;
}
.about-mega-container:hover,
.about-mega-container:focus {
  color: var(--text-color-white);
}
.main-nav {
  margin: 0;
  padding: 0;
}

/* Theme button and input styles */
.desktop-menu-list .menu-link,
.desktop-menu-list .menu-link:hover,
.desktop-menu-list .menu-link:focus {
  color: var(--text-color-dark);
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  text-transform: none;
  letter-spacing: normal;
}
.newsletter-container .input-container {
  flex: 3;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 12px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  color: var(--text-color-dark);
  background-color: var(--text-color-white);
}

/*
 * Reconstructed from the site's look and colors. These classes are used by the
 * header and footer, but their original rules live in a stylesheet that wasn't supplied.
 */
.medium-bold-text {
  font-weight: var(--font-weight-medium);
}
.small-text {
  font-size: var(--font-size-small);
}
.text-color-dark {
  color: var(--text-color-dark);
}
.light-btn,
.light-btn:hover,
.light-btn:focus {
  position: relative;
  padding: 8px 18px;
  border: 0;
  border-radius: 30px;
  background: var(--text-color-white);
  box-shadow: none;
  font-family: var(--font-family-base);
  font-size: var(--font-size-normal);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-theme-color), var(--secondary-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.gradient-text {
  background: linear-gradient(90deg, var(--primary-theme-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Keep the sticky header and mobile menu below the WordPress admin bar */
.admin-bar #header {
  top: 32px;
}
.admin-bar .mobile-nav,
.admin-bar .mobile-nav-overlay {
  top: 32px;
  height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
  .admin-bar #header {
    top: 46px;
  }
  .admin-bar .mobile-nav,
  .admin-bar .mobile-nav-overlay {
    top: 46px;
    height: calc(100% - 46px);
  }
}
@media screen and (max-width: 600px) {
  .admin-bar #header {
    top: 0;
  }
}

/* Offer bar */
#cybro-offer-bar {
  position: relative;
  z-index: 101;
  margin: 0 !important;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  font-family: var(--font-family-base);
  line-height: normal;
  letter-spacing: normal;
}
#cybro-offer-bar * {
  box-sizing: border-box;
}
#cybro-offer-bar .offer-bar-link,
#cybro-offer-bar .offer-bar-link:hover,
#cybro-offer-bar .offer-bar-link:focus,
#cybro-offer-bar .offer-bar-link:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 44px;
  padding: 6px 56px;
  color: var(--text-color-white);
  text-decoration: none;
  box-shadow: none;
}
#cybro-offer-bar .offer-bar-link:focus-visible,
#cybro-offer-bar .offer-bar-close:focus-visible {
  outline: 2px solid var(--text-color-white);
  outline-offset: -3px;
}
.offer-bar-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 13px;
  border-radius: 12px;
  background: #ffaa00;
  color: var(--text-color-white);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.offer-bar-text {
  font-size: 15px;
  font-weight: var(--font-weight-medium);
}
#cybro-offer-bar .offer-bar-close,
#cybro-offer-bar .offer-bar-close:hover,
#cybro-offer-bar .offer-bar-close:focus {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--text-color-white);
  cursor: pointer;
  transform: translateY(-50%);
}
.offer-bar-close svg {
  display: block;
  opacity: 0.8;
}
.offer-bar-close:hover svg,
.offer-bar-close:focus-visible svg {
  opacity: 1;
}
@media screen and (max-width: 600px) {
  #cybro-offer-bar .offer-bar-link,
  #cybro-offer-bar .offer-bar-link:hover,
  #cybro-offer-bar .offer-bar-link:focus,
  #cybro-offer-bar .offer-bar-link:visited {
    flex-direction: column;
    gap: 4px;
    padding: 8px 48px 8px 16px;
    text-align: center;
  }
  .offer-bar-text {
    font-size: var(--font-size-small);
  }
  #cybro-offer-bar .offer-bar-close,
  #cybro-offer-bar .offer-bar-close:hover,
  #cybro-offer-bar .offer-bar-close:focus {
    right: 0;
  }
}
