/* Flavor theme — supplemental CSS */

/* Page loader overlay */
.pace-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    transition: opacity 0.4s ease;
}
.pace-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Pace logo-3d loader */
.pace-logo-3d .pace-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pace-logo-3d .pace-overlay::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: flavor-spin3d 1.5s linear infinite;
}
@keyframes flavor-spin3d {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Back-to-top button */
.go-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}
.go-top.visible {
    opacity: 1;
}
.go-top.go-top-circle {
    border-radius: 50%;
}
.go-top-mobile {
    display: flex !important;
}

/* OS animations — hide until triggered */
.os-animation {
    opacity: 0;
}
.os-animation.animated {
    opacity: 1;
}

/* =============================================================
   Navbar sticky/fixed positioning
   ============================================================= */
#masthead.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    transition: all 0.3s ease;
}

#masthead.navbar-sticky ~ #content {
    margin-top: 120px;
}

#masthead.navbar-sticky.navbar-scrolled ~ #content {
    margin-top: 90px;
}

/* =============================================================
   Mobile menu styles
   ============================================================= */
@media (max-width: 991px) {
    .menu .navbar-collapse {
        box-shadow: inset 0 1px 0 rgba(0, 0, 0, .055);
        background: #fff !important;
    }

    .menu .navbar-nav > li > a {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .menu .navbar-nav > li > a:before {
        display: none;
    }

    .menu {
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .navbar-sticky .navbar-collapse {
        max-height: 340px;
        overflow-y: auto;
    }
}

/* =============================================================
   Mega Menu — Bootstrap navbar integration
   ============================================================= */

/* 1. Kill the mega-menu's own dark background strip; the Bootstrap
      navbar provides the container background. */
@media (min-width: 769px) {
    #mega-menu-wrap-primary {
        background: transparent !important;
    }
}

/* 2. Top-level links: match the Lambda navbar dimensions and
      colour scheme (padding mirrors stack-39.css .logo-navbar nav). */
@media (min-width: 769px) {
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        color: #080459 !important;
        text-transform: uppercase !important;
        font-size: 16px !important;
        line-height: 24px !important;
        height: auto !important;
        padding-top: 38px !important;
        padding-bottom: 38px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        background: none !important;
    }
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:focus,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-toggle-on > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-item > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-ancestor > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-page-ancestor > a.mega-menu-link {
        color: #080459 !important;
        background: none !important;
    }
}

/* 3. Scrolled navbar is 90 px tall — adjust padding to match. */
@media (min-width: 769px) {
    #masthead.navbar-scrolled #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        padding-top: 33px !important;
        padding-bottom: 33px !important;
    }
}

/* 4. Transparent header (homepage hero, before scroll): links are
      white, same as the regular Bootstrap nav items. */
@media (min-width: 992px) {
    .transparent-header #masthead:not(.navbar-scrolled) #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        color: #fff !important;
    }
    .transparent-header #masthead:not(.navbar-scrolled) #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover,
    .transparent-header #masthead:not(.navbar-scrolled) #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:focus,
    .transparent-header #masthead:not(.navbar-scrolled) #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link {
        color: #fff !important;
        background: none !important;
    }
}

/* 5. Mobile: suppress the duplicate mega-menu hamburger — Bootstrap's
      .navbar-toggle (in .navbar-header) handles the collapse. */
#mega-menu-wrap-primary .mega-menu-toggle {
    display: none !important;
}

/* 6. At ≤768 px the mega-menu hides #mega-menu-primary until its own
      toggle is clicked.  Override: show items when Bootstrap has
      expanded .main-navbar (class "in"). */
@media (max-width: 768px) {
    .navbar-collapse.in #mega-menu-wrap-primary .mega-menu-toggle + #mega-menu-primary {
        display: block !important;
        background-color: #fff;
    }
    /* Link colours inside the expanded (white) Bootstrap collapse */
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        color: #080459 !important;
        padding: 8px 15px !important;
        height: auto !important;
        line-height: 24px !important;
        text-transform: uppercase !important;
    }
}

/* 7. 769–991 px (Bootstrap mobile collapse, above mega-menu breakpoint):
      ensure link colours are correct for a white background. */
@media (min-width: 769px) and (max-width: 991px) {
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        color: #080459 !important;
        padding: 8px 15px !important;
        height: auto !important;
        line-height: 24px !important;
    }
}

/* =============================================================
   YouTube / oEmbed iframes — responsive 16 : 9
   ============================================================= */
.element-top-20 iframe,
.element-bottom-20 iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

/* =============================================================
   Magnific Popup — full styling from lambda theme
   ============================================================= */
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1101;
  overflow: hidden;
  position: fixed;
  background: #fff;
  opacity: 0.9;
  filter: alpha(opacity=80);
}

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1102;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden;
}

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
  display: none;
}

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045;
}

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto;
}

.mfp-ajax-cur {
  cursor: progress;
}

.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: zoom-out;
}

.mfp-zoom {
  cursor: pointer;
  cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
  cursor: auto;
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: 0;
}

.mfp-loading.mfp-figure {
  display: none;
}

.mfp-hide {
  display: none !important;
}

.mfp-preloader {
  color: #cccccc;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044;
}

.mfp-preloader a {
  color: #cccccc;
}

.mfp-preloader a:hover {
  color: white;
}

.mfp-s-ready .mfp-preloader {
  display: none;
}

.mfp-s-error .mfp-content {
  display: none;
}

button.mfp-close,
button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  padding: 0;
  z-index: 1046;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.mfp-close {
  width: 36px;
  height: 36px;
  line-height: 36px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 1;
  padding: 0 0 18px 10px;
  color: #222;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace;
}

.mfp-close:hover,
.mfp-close:focus {
  opacity: 1;
}

.mfp-close:active {
  top: 1px;
}

.mfp-close-btn-in .mfp-close {
  color: #222;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  font-size: 16px;
  text-align: center;
  right: 0px;
  top: 40px;
  position: absolute;
  display: block;
  padding: 0;
  font-weight: lighter;
  line-height: 1.1em;
}

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #cccccc;
  font-size: 12px;
  line-height: 18px;
}

.mfp-arrow {
  position: absolute;
  opacity: 1;
  margin: 0;
  top: 50%;
  margin-top: -18px;
  padding: 0;
  width: 36px;
  height: 36px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  -ms-transform: scale(1) !important;
  transform: scale(1) !important;
}

.mfp-arrow:active {
  margin-top: -18px;
}

.mfp-arrow:hover,
.mfp-arrow:focus {
  opacity: 1;
}

.mfp-arrow:before,
.mfp-arrow .mfp-b,
.mfp-arrow .mfp-a {
  display: inline-block;
  font-family: 'FontAwesome';
  font-size: 24px;
  line-height: 36px;
}

.mfp-arrow-left {
  left: 10px;
  margin-left: -4px;
}

.mfp-arrow-left:before {
  content: "\f104";
}

.mfp-arrow-right {
  right: 10px;
  margin-right: -4px;
}

.mfp-arrow-right:before {
  content: "\f105";
}

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px;
}

.mfp-iframe-holder .mfp-content {
  line-height: 0;
  width: 100%;
  max-width: 900px;
}

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%;
}

.mfp-iframe-scaler iframe {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
}

.mfp-iframe-holder .mfp-close {
  top: -40px;
}

img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto;
}

.mfp-figure:after {
  content: '';
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 40px;
  display: block;
  right: 0;
  width: auto;
  height: auto;
  z-index: -1;
  background: #444444;
}

.mfp-figure {
  line-height: 0;
}

.mfp-figure figure {
  margin-bottom: 0;
}

.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto;
}

.mfp-title {
  text-align: left;
  line-height: 24px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  color: #222;
  word-break: break-word;
  padding-right: 36px;
}

.mfp-figure small {
  color: #bdbdbd;
  display: block;
  font-size: 12px;
  line-height: 14px;
}

.mfp-image-holder .mfp-content {
  max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer;
}

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0;
  }
  .mfp-img-mobile img.mfp-img {
    padding: 0;
  }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0;
  }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    box-sizing: border-box;
  }
  .mfp-img-mobile .mfp-bottom-bar:empty {
    padding: 0;
  }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px;
  }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0;
  }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px;
  }
}

@media all and (max-width: 1300px) {
  .mfp-arrow {
    -ms-transform: scale(0.75);
    transform: scale(0.75);
  }
  .mfp-arrow-left {
    -ms-transform-origin: 0;
    transform-origin: 0;
  }
  .mfp-arrow-right {
    -ms-transform-origin: 100%;
    transform-origin: 100%;
  }
  .mfp-container {
    padding-left: 6px;
    padding-right: 6px;
  }
}

.mfp-ie7 .mfp-img {
  padding: 0;
}

.mfp-ie7 .mfp-bottom-bar {
  width: 600px;
  left: 50%;
  margin-left: -300px;
  margin-top: 5px;
  padding-bottom: 5px;
}

.mfp-ie7 .mfp-container {
  padding: 0;
}

.mfp-ie7 .mfp-content {
  padding-top: 44px;
}

.mfp-ie7 .mfp-close {
  top: 0;
  right: 0;
  padding-top: 0;
}

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: all 0.15s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.97;
}

.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  -ms-transform: scale(0.8, 0.8);
  transform: scale(0.8, 0.8);
  transition: all 0.15s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  -ms-transform: scale(1, 1);
  transform: scale(1, 1);
  opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
  -ms-transform: scale(0.8, 0.8);
  transform: scale(0.8, 0.8);
}

/* Magnific Popup color overrides from stack */
.mfp-bg {
  background: rgba(48, 40, 64, .9);
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  background-color: rgba(48, 40, 64, .9) !important;
  color: #fff;
}

.mfp-counter,
.mfp-preloader {
  color: rgba(48, 40, 64, .9);
}

.mfp-arrow {
  background: rgba(48, 40, 64, .9) !important;
}

.mfp-title {
  color: rgba(207, 215, 191, .9);
}

.mfp-arrow:before {
  color: #fff;
}
.wpcf7-form-control-wrap input, .wpcf7-form-control-wrap textarea{
    max-width: 100%;
}
.wpcf7-spinner{
    position: absolute;
}