/* AMGQS SITE SHELL — scoped to the active Panoramic WordPress theme. */
body.wp-theme-panoramic {
  --amgqs-shell-navy: #07111f;
  --amgqs-shell-blue: #0878c9;
  --amgqs-shell-cyan: #2ecdf3;
  --amgqs-shell-text: #15263b;
  --amgqs-shell-muted: #52657a;
  --amgqs-shell-line: rgba(16, 35, 58, .13);
  --amgqs-shell-soft: #f6f9fc;
}

/* Keep all original sliders and their native controls visible. */

body.wp-theme-panoramic .sticky-wrapper,
body.wp-theme-panoramic #masthead.site-header {
  overflow: visible;
  border-bottom: 1px solid rgba(16, 35, 58, .1);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 10px 30px rgba(7, 17, 31, .08) !important;
  backdrop-filter: blur(14px);
}

body.wp-theme-panoramic #masthead .custom-logo-link,
body.wp-theme-panoramic #masthead .custom-logo {
  display: block;
}

body.wp-theme-panoramic #masthead .custom-logo {
  width: 300px;
  max-width: 100%;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

body.wp-theme-panoramic #masthead .site-header-right {
  display: none !important;
}

body.wp-theme-panoramic #site-navigation,
body.wp-theme-panoramic #site-navigation .main-menu-container,
body.wp-theme-panoramic #site-navigation .main-navigation-inner {
  border: 0 !important;
  box-shadow: none !important;
}

body.wp-theme-panoramic #site-navigation {
  background: transparent !important;
}

body.wp-theme-panoramic #site-navigation ul.menu > li > a {
  color: #18354e !important;
  font-weight: 750;
  letter-spacing: .035em;
  text-decoration: none !important;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

body.wp-theme-panoramic #site-navigation ul.menu > li > a:hover,
body.wp-theme-panoramic #site-navigation ul.menu > li:hover > a,
body.wp-theme-panoramic #site-navigation ul.menu > li.current-menu-item > a,
body.wp-theme-panoramic #site-navigation ul.menu > li.current-menu-ancestor > a {
  color: var(--amgqs-shell-blue) !important;
  background: transparent !important;
}

body.wp-theme-panoramic #site-navigation ul.menu > li:not(#menu-item-201) > a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 17px;
  left: 10px;
  height: 2px;
  border-radius: 99px;
  background: #0b91e5;
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .2s ease, transform .2s ease;
}

body.wp-theme-panoramic #site-navigation ul.menu > li:not(#menu-item-201) > a:hover::after,
body.wp-theme-panoramic #site-navigation ul.menu > li:not(#menu-item-201).current-menu-item > a::after,
body.wp-theme-panoramic #site-navigation ul.menu > li:not(#menu-item-201).current-menu-ancestor > a::after {
  opacity: 1;
  transform: scaleX(1);
}

body.wp-theme-panoramic #site-navigation #menu-item-201 > a {
  color: #fff !important;
  border-radius: 999px;
  background: var(--amgqs-shell-blue) !important;
  box-shadow: 0 10px 24px rgba(8, 120, 201, .2);
}

body.wp-theme-panoramic #site-navigation #menu-item-201 > a:hover,
body.wp-theme-panoramic #site-navigation #menu-item-201.current-menu-item > a {
  color: #fff !important;
  background: #075f9f !important;
}

body.wp-theme-panoramic #site-navigation ul.sub-menu {
  width: 320px !important;
  min-width: 320px;
  padding: .55rem 0 !important;
  border: 1px solid rgba(16, 35, 58, .11) !important;
  border-radius: 14px;
  background: #fff !important;
  box-shadow: 0 22px 60px rgba(7, 17, 31, .16) !important;
}

body.wp-theme-panoramic #site-navigation ul.sub-menu ul.sub-menu {
  top: -.55rem !important;
  left: calc(100% + .35rem) !important;
}

body.wp-theme-panoramic #site-navigation ul.sub-menu li,
body.wp-theme-panoramic #site-navigation ul.sub-menu a {
  width: 100% !important;
}

body.wp-theme-panoramic #site-navigation ul.sub-menu a {
  height: auto !important;
  min-height: 42px;
  padding: .72rem 1rem !important;
  color: #203b53 !important;
  background: transparent !important;
  font-size: .79rem !important;
  font-weight: 650;
  line-height: 1.35 !important;
  text-transform: none;
}

body.wp-theme-panoramic #site-navigation ul.sub-menu a:hover,
body.wp-theme-panoramic #site-navigation ul.sub-menu li:hover > a {
  color: #075f9f !important;
  background: #eef7fc !important;
}

body.wp-theme-panoramic #site-navigation .menu-item-gtranslate > a {
  min-width: 40px;
  padding-right: 9px !important;
  padding-left: 9px !important;
}

body.wp-theme-panoramic #site-navigation .menu-item-gtranslate img {
  width: 19px;
  height: auto;
  margin: 0 !important;
}

/* Consistent internal-page presentation without overriding block layouts. */
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) #content.site-content {
  width: min(calc(100% - 2.5rem), 1180px) !important;
  max-width: none !important;
  padding: 0 22px !important;
  margin: 40px auto 0 !important;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) #primary.content-area.full-width {
  width: 100% !important;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content {
  color: var(--amgqs-shell-text);
  font-size: 1rem;
  line-height: 1.72;
}

.amgqs-page-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.8rem, 6vw, 5.2rem) clamp(1.4rem, 5vw, 4rem);
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 25%, rgba(46, 205, 243, .18), transparent 30%),
    linear-gradient(135deg, #07111f, #0b2038);
}

.amgqs-page-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 64px 64px;
}

.amgqs-page-heading__eyebrow {
  margin: 0 0 .8rem !important;
  color: var(--amgqs-shell-cyan) !important;
  font-size: .76rem !important;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.amgqs-page-heading h1 {
  max-width: 900px;
  margin: 0;
  color: #fff !important;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1.05;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content > h2,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content > h3,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content > h4,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content > p,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content > ul,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content > ol,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content > blockquote,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content > table {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content h2,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content h3,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content h4 {
  color: var(--amgqs-shell-navy);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.025em;
  line-height: 1.16;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content h3 {
  margin-top: 1.8rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content a {
  color: #076faf;
  text-underline-offset: .2em;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--amgqs-shell-blue);
  border-radius: 0 14px 14px 0;
  color: #294760;
  background: var(--amgqs-shell-soft);
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content th,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content td {
  padding: .8rem 1rem;
  border: 1px solid var(--amgqs-shell-line);
  text-align: left;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content th {
  color: #fff;
  background: #102c48;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wpforms-field input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wpforms-field select,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wpforms-field textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  border: 1px solid #c7d4df;
  border-radius: 10px;
  color: var(--amgqs-shell-text);
  background: #fff;
  font: inherit;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wpforms-field textarea {
  min-height: 140px;
  resize: vertical;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wpforms-field input:focus,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wpforms-field select:focus,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wpforms-field textarea:focus {
  border-color: var(--amgqs-shell-blue);
  outline: 3px solid rgba(11, 145, 229, .16);
  outline-offset: 1px;
}

body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wpforms-submit,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wp-block-button__link,
body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) .entry-content .wpforms-submit {
  min-height: 48px;
  padding: .8rem 1.2rem;
  border: 0;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--amgqs-shell-blue) !important;
  box-shadow: 0 10px 24px rgba(8, 120, 201, .18);
  font-weight: 750;
  text-decoration: none !important;
  cursor: pointer;
}

/* Footer */
body.wp-theme-panoramic #colophon.site-footer {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  color: #b9cad8;
  background: var(--amgqs-shell-navy);
}

body.wp-theme-panoramic #colophon .site-footer-widgets:not(:has(.widget)) {
  display: none;
}

body.wp-theme-panoramic #colophon .site-footer-bottom-bar {
  padding: 1.5rem 0;
  color: #a8bbcc;
  background: transparent;
}

body.wp-theme-panoramic #colophon .site-container {
  width: min(calc(100% - 2.5rem), 1240px) !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

body.wp-theme-panoramic #colophon a {
  color: #d8e7f4;
  text-underline-offset: .2em;
}

body.wp-theme-panoramic #colophon a:hover {
  color: var(--amgqs-shell-cyan);
}

body.wp-theme-panoramic #colophon #menu-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem 1.15rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

body.wp-theme-panoramic #colophon #menu-legal li {
  float: none;
  margin: 0;
}

body.wp-theme-panoramic #colophon #menu-legal a {
  font-size: .75rem;
  text-decoration: none;
}

@media (min-width: 1181px) {
  body.wp-theme-panoramic .sticky-wrapper,
  body.wp-theme-panoramic #masthead.site-header {
    height: 82px !important;
    min-height: 82px;
  }

  body.wp-theme-panoramic #masthead > .site-container {
    display: flex;
    width: min(calc(100% - 2.5rem), 1240px) !important;
    max-width: none !important;
    height: 82px !important;
    min-height: 82px;
    align-items: center;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  body.wp-theme-panoramic #masthead .branding {
    float: none !important;
    width: 310px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.wp-theme-panoramic #site-navigation {
    position: absolute !important;
    top: 0 !important;
    right: max(1.25rem, calc((100vw - 1240px) / 2)) !important;
    left: auto !important;
    width: min(900px, calc(100% - 370px)) !important;
    height: 82px !important;
  }

  body.wp-theme-panoramic #site-navigation .main-menu-container,
  body.wp-theme-panoramic #site-navigation .main-navigation-inner {
    width: 100% !important;
    max-width: none !important;
    height: 82px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.wp-theme-panoramic #site-navigation ul.menu {
    display: flex !important;
    width: 100% !important;
    height: 82px !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.wp-theme-panoramic #site-navigation ul.menu > li {
    display: flex !important;
    float: none !important;
    width: auto !important;
    height: 82px !important;
    flex: 0 0 auto;
    align-items: center;
  }

  body.wp-theme-panoramic #site-navigation ul.menu > li > a {
    position: relative;
    display: flex;
    width: auto !important;
    height: 82px !important;
    align-items: center;
    padding: 0 10px !important;
    font-size: .69rem !important;
    line-height: 1.15 !important;
    white-space: nowrap;
  }

  body.wp-theme-panoramic #site-navigation #menu-item-201 > a {
    height: 42px !important;
    padding: 0 15px !important;
    margin: 20px 4px 20px 5px;
  }

  body.wp-theme-panoramic #site-navigation ul.menu > li > ul.sub-menu {
    top: 72px !important;
  }

  body.wp-theme-panoramic.home #content.site-content {
    margin-top: 0 !important;
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  body.wp-theme-panoramic .sticky-wrapper,
  body.wp-theme-panoramic #masthead.site-header {
    height: 126px !important;
    min-height: 126px;
  }

  body.wp-theme-panoramic #masthead > .site-container {
    width: min(calc(100% - 2rem), 1100px) !important;
    max-width: none !important;
    height: 70px !important;
    min-height: 70px;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  body.wp-theme-panoramic #masthead .branding {
    float: none !important;
    width: 285px !important;
    height: 70px !important;
    padding: 9px 0 !important;
    margin: 0 auto !important;
  }

  body.wp-theme-panoramic #masthead .custom-logo {
    width: 285px;
    max-height: 52px;
  }

  body.wp-theme-panoramic #site-navigation,
  body.wp-theme-panoramic #site-navigation .main-menu-container,
  body.wp-theme-panoramic #site-navigation .main-navigation-inner {
    width: 100% !important;
    max-width: none !important;
    height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.wp-theme-panoramic #site-navigation ul.menu {
    display: flex !important;
    width: min(calc(100% - 2rem), 1100px) !important;
    height: 56px !important;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  body.wp-theme-panoramic #site-navigation ul.menu > li {
    display: flex !important;
    float: none !important;
    width: auto !important;
    height: 56px !important;
    flex: 0 0 auto;
    align-items: center;
  }

  body.wp-theme-panoramic #site-navigation ul.menu > li > a {
    position: relative;
    display: flex;
    width: auto !important;
    height: 56px !important;
    align-items: center;
    padding: 0 8px !important;
    font-size: .65rem !important;
    line-height: 1.1 !important;
    white-space: nowrap;
  }

  body.wp-theme-panoramic #site-navigation #menu-item-201 > a {
    height: 38px !important;
    padding: 0 13px !important;
    margin: 9px 3px;
  }

  body.wp-theme-panoramic #site-navigation ul.menu > li:not(#menu-item-201) > a::after {
    bottom: 8px;
  }

  body.wp-theme-panoramic #site-navigation ul.menu > li > ul.sub-menu {
    top: 52px !important;
  }

  body.wp-theme-panoramic.home #content.site-content {
    margin-top: 0 !important;
  }
}

@media (max-width: 960px) {
  body.wp-theme-panoramic .sticky-wrapper,
  body.wp-theme-panoramic #masthead.site-header {
    height: 72px !important;
    min-height: 72px;
  }

  body.wp-theme-panoramic #masthead > .site-container {
    width: 100% !important;
    max-width: none !important;
    height: 72px !important;
    min-height: 72px;
    padding: 0 72px 0 16px !important;
    margin: 0 !important;
  }

  body.wp-theme-panoramic #masthead .branding {
    float: none !important;
    width: min(260px, 100%) !important;
    height: 72px !important;
    padding: 11px 0 !important;
    margin: 0 !important;
  }

  body.wp-theme-panoramic #masthead .custom-logo {
    width: min(260px, 100%);
    max-height: 50px;
  }

  body.wp-theme-panoramic .header-menu-button {
    position: absolute !important;
    top: 0;
    right: 8px;
    display: flex !important;
    width: 56px !important;
    height: 72px !important;
    align-items: center;
    justify-content: center;
    color: #18354e !important;
  }

  body.wp-theme-panoramic #site-navigation {
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-height: 0;
  }

  /* Extra specificity keeps the shared mobile drawer authoritative on the
     homepage, where the component stylesheet also contains legacy overrides. */
  body.wp-theme-panoramic.home #site-navigation {
    position: static !important;
    right: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0;
  }

  body.wp-theme-panoramic #site-navigation .main-menu-container {
    top: 0;
    right: 0;
    width: min(88vw, 380px) !important;
    max-width: 380px !important;
    height: 100vh !important;
    padding: 76px 14px 24px !important;
    overflow-y: auto;
    background: #07111f !important;
    box-shadow: -24px 0 70px rgba(0, 0, 0, .25) !important;
  }

  body.wp-theme-panoramic #site-navigation .main-menu-close {
    top: 14px;
    right: 14px;
  }

  body.wp-theme-panoramic #site-navigation ul.menu,
  body.wp-theme-panoramic #site-navigation ul.menu > li,
  body.wp-theme-panoramic #site-navigation ul.menu > li > a {
    width: 100% !important;
    height: auto !important;
  }

  body.wp-theme-panoramic #site-navigation ul.menu > li > a {
    position: relative;
    padding: 14px 46px 14px 14px !important;
    color: #fff !important;
    font-size: .82rem !important;
    line-height: 1.25 !important;
  }

  body.wp-theme-panoramic #site-navigation ul.menu > li > a:hover,
  body.wp-theme-panoramic #site-navigation ul.menu > li.current-menu-item > a {
    color: var(--amgqs-shell-cyan) !important;
    background: rgba(255, 255, 255, .06) !important;
  }

  body.wp-theme-panoramic #site-navigation #menu-item-201 > a {
    justify-content: center;
    padding-right: 14px !important;
    margin-top: 8px;
  }

  body.wp-theme-panoramic #site-navigation ul.sub-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0;
    padding: 0 0 .4rem .65rem !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.wp-theme-panoramic #site-navigation ul.sub-menu a {
    color: #c1d3e2 !important;
    background: transparent !important;
  }

  body.wp-theme-panoramic #site-navigation .menu-dropdown-btn {
    right: 6px;
    display: block;
    width: 42px;
    height: 46px;
    color: #fff !important;
  }

  body.wp-theme-panoramic #site-navigation ul.menu > li:not(#menu-item-201) > a::after {
    display: none;
  }

  body.wp-theme-panoramic.home #content.site-content {
    margin-top: 0 !important;
  }

  body.wp-theme-panoramic:not(.home):not(.amgqs-embedded-app):not(.amgqs-redesign-page) #content.site-content {
    width: min(calc(100% - 1.5rem), 1180px) !important;
    padding: 0 !important;
    margin-top: 24px !important;
  }

  body.wp-theme-panoramic #colophon .site-container {
    width: min(calc(100% - 1.5rem), 1240px) !important;
  }
}

@media (max-width: 420px) {
  body.wp-theme-panoramic #masthead > .site-container {
    padding-right: 64px !important;
    padding-left: 12px !important;
  }

  body.wp-theme-panoramic #masthead .branding,
  body.wp-theme-panoramic #masthead .custom-logo {
    width: min(225px, 100%) !important;
  }

  .amgqs-page-heading {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wp-theme-panoramic #site-navigation *,
  body.wp-theme-panoramic #masthead * {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}
